1 #ifndef GEOM_FACESOURCE_H
2 #define GEOM_FACESOURCE_H
4 #include "GEOM_DeviceActor.h"
7 #include <TopoDS_Face.hxx>
8 #include <NCollection_Set.hxx>
10 typedef NCollection_Set<TopoDS_Face> TFaceSet;
12 #include <vtkPolyDataSource.h>
14 class GEOM_FaceSource;
15 typedef GEOM_SmartPtr<GEOM_FaceSource> PFaceSource;
18 class VTK_EXPORT GEOM_FaceSource: public vtkPolyDataSource
21 vtkTypeMacro(GEOM_FaceSource,vtkPolyDataSource);
23 void AddFace(const TopoDS_Face& theFace);
24 void Clear(){ myFaceSet.Clear();}
30 void MoveTo(gp_Pnt thePnt,
33 void DrawTo(gp_Pnt thePnt,
34 vtkPolyData* thePolyData,
42 GEOM_FaceSource(const GEOM_FaceSource&);
43 void operator=(const GEOM_FaceSource&);
47 #endif //GEOM_FACESOURCE_H