Salome HOME
OCCT dev version porting (6.7.2)
[modules/geom.git] / src / OCC2VTK / GEOM_EdgeSource.h
index 5dd753c2135de70cc7960395012eaff176ba45b4..da64b0a5223111b692417666d218474da4ba0565 100755 (executable)
 #include "OCC2VTK.h" 
  
 #include <TopoDS_Edge.hxx> 
-#include <NCollection_Set.hxx> 
-typedef NCollection_Set<TopoDS_Edge> TEdgeSet; 
  
 #include <vtkPoints.h> 
 #include <vtkPolyDataAlgorithm.h> 
 
 class vtkPolyData;
+class EdgeSourceInternal;
 
 class OCC2VTK_EXPORT GEOM_EdgeSource: public vtkPolyDataAlgorithm 
 { 
 public: 
-  vtkTypeMacro(GEOM_EdgeSource,vtkPolyDataAlgorithm); 
+  vtkTypeMacro(GEOM_EdgeSource, vtkPolyDataAlgorithm); 
+
   static GEOM_EdgeSource* New(); 
  
   void AddEdge (const TopoDS_Edge& theEdge,
                 bool theIsVector = false);
-  void Clear(){ myEdgeSet.Clear();}
+  void Clear();
   
+  bool IsEmpty();
+
   void SetVectorMode(bool);
 
   bool GetVectorMode();
@@ -51,17 +52,14 @@ public:
                vtkPolyData* thePolyData, 
                vtkPoints* thePts,
                bool theIsVector = false); 
-
-  bool IsEmpty(){return myEdgeSet.IsEmpty();}
-
  
 protected: 
-  TEdgeSet myEdgeSet;
+  EdgeSourceInternal* myData;
   // The <myIsVector> flag is common for all edges, because the shape,
   // representing a vector, can have only one edge.
   bool myIsVector, myIsVectorMode;
  
-  virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
+  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
  
   GEOM_EdgeSource(); 
   ~GEOM_EdgeSource(); 
@@ -72,5 +70,4 @@ private:
   void operator=(const GEOM_EdgeSource&); 
 }; 
  
 #endif //GEOM_EDGESOURCE_H