1 #ifndef GEOM_VERTEXSOURCE_H
2 #define GEOM_VERTEXSOURCE_H
4 #include "GEOM_DeviceActor.h"
6 #include <TopoDS_Vertex.hxx>
7 #include <NCollection_Set.hxx>
9 typedef NCollection_Set<TopoDS_Vertex> TVertexSet;
11 #include <vtkPolyDataSource.h>
14 class VTK_EXPORT GEOM_VertexSource: public vtkPolyDataSource
17 vtkTypeMacro(GEOM_VertexSource,vtkPolyDataSource);
18 static GEOM_VertexSource* New();
20 void AddVertex(const TopoDS_Vertex& theVertex);
21 void Clear(){ myVertexSet.Clear();}
24 void OCC2VTK(const TopoDS_Vertex& theVertex,
25 vtkPolyData* thePolyData,
29 TVertexSet myVertexSet;
38 GEOM_VertexSource(const GEOM_VertexSource&);
39 void operator=(const GEOM_VertexSource&);
43 #endif //GEOM_VERTEXSOURCE_H