]> SALOME platform Git repositories - modules/geom.git/blobdiff - src/OCC2VTK/GEOM_VertexSource.h
Salome HOME
Copyright update 2022
[modules/geom.git] / src / OCC2VTK / GEOM_VertexSource.h
old mode 100755 (executable)
new mode 100644 (file)
index d3e64c1..56bc223
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2022  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 #include "OCC2VTK.h" 
  
 #include <TopoDS_Vertex.hxx> 
+#include <TopTools_ShapeMapHasher.hxx>
+#include <NCollection_Map.hxx> 
+typedef NCollection_Map<TopoDS_Vertex, TopTools_ShapeMapHasher> TVertexSet; 
  
 #include <vtkPoints.h> 
 #include <vtkPolyDataAlgorithm.h> 
 
 class vtkPolyData;
-class VertexSourceInternal;
 
 class OCC2VTK_EXPORT GEOM_VertexSource: public vtkPolyDataAlgorithm
 { 
 public: 
-  vtkTypeMacro(GEOM_VertexSource,vtkPolyDataAlgorithm)
+  vtkTypeMacro(GEOM_VertexSource,vtkPolyDataAlgorithm)
   static GEOM_VertexSource* New(); 
  
   void AddVertex(const TopoDS_Vertex& theVertex); 
-  void Clear();
+  void Clear(){ myVertexSet.Clear();} 
  
   static  
   void OCC2VTK(const TopoDS_Vertex& theVertex,  
@@ -45,7 +48,7 @@ public:
                vtkPoints* thePts); 
  
 protected: 
-  VertexSourceInternal* myData;
+  TVertexSet myVertexSet; 
  
   virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);