1 #ifndef GEOM_EDGESOURCE_H
2 #define GEOM_EDGESOURCE_H
4 #include "GEOM_DeviceActor.h"
6 #include <TopoDS_Edge.hxx>
7 #include <NCollection_Set.hxx>
9 typedef NCollection_Set<TopoDS_Edge> TEdgeSet;
11 #include <vtkPolyDataSource.h>
14 class VTK_EXPORT GEOM_EdgeSource: public vtkPolyDataSource
17 vtkTypeMacro(GEOM_EdgeSource,vtkPolyDataSource);
18 static GEOM_EdgeSource* New();
20 void AddEdge(const TopoDS_Edge& theEdge);
21 void Clear(){ myEdgeSet.Clear();}
24 void OCC2VTK(const TopoDS_Edge& theEdge,
25 vtkPolyData* thePolyData,
38 GEOM_EdgeSource(const GEOM_EdgeSource&);
39 void operator=(const GEOM_EdgeSource&);
43 #endif //GEOM_EDGESOURCE_H