1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 #ifndef GEOM_FACESOURCE_H
23 #define GEOM_FACESOURCE_H
25 #include "GEOM_DeviceActor.h"
28 #include <TopoDS_Face.hxx>
29 #include <NCollection_Set.hxx>
31 typedef NCollection_Set<TopoDS_Face> TFaceSet;
33 #include <vtkPolyDataSource.h>
35 class GEOM_FaceSource;
36 typedef GEOM_SmartPtr<GEOM_FaceSource> PFaceSource;
39 class VTK_EXPORT GEOM_FaceSource: public vtkPolyDataSource
42 vtkTypeMacro(GEOM_FaceSource,vtkPolyDataSource);
44 void AddFace(const TopoDS_Face& theFace);
45 void Clear(){ myFaceSet.Clear();}
46 bool IsEmpty(){return myFaceSet.IsEmpty();}
52 void MoveTo(gp_Pnt thePnt,
55 void DrawTo(gp_Pnt thePnt,
56 vtkPolyData* thePolyData,
64 GEOM_FaceSource(const GEOM_FaceSource&);
65 void operator=(const GEOM_FaceSource&);
69 #endif //GEOM_FACESOURCE_H