Salome HOME
Remove redundant code
[modules/geom.git] / src / OCC2VTK / GEOM_VertexSource.h
index d3e64c1c827ed00174a4c642d7faf0e195e670e5..6b06a34553f87da10413612c574392f9b7460e19 100755 (executable)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2015  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
 { 
@@ -37,7 +40,7 @@ public:
   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 *);