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_WIREFRAME_FACE_H
23 #define GEOM_WIREFRAME_FACE_H
25 #include "GEOM_FaceSource.h"
27 #include <GeomAbs_IsoType.hxx>
28 #include <BRepAdaptor_Surface.hxx>
30 #include <vtkPolyDataSource.h>
33 class VTK_EXPORT GEOM_WireframeFace: public GEOM_FaceSource
36 vtkTypeMacro(GEOM_WireframeFace,GEOM_FaceSource);
37 static GEOM_WireframeFace* New();
39 /* vtkSetMacro(NbIso,int);
40 vtkGetMacro(NbIso,int);*/
42 vtkSetMacro(Discret,int);
43 vtkGetMacro(Discret,int);
46 void OCC2VTK(const TopoDS_Face& theFace,
47 vtkPolyData* thePolyData,
49 const int theNbIso[2],
50 const int theDiscret = 15);
52 //! IsoLines management
53 // theNb[0] - number of U lines
54 // theNb[1] - number of V lines
55 virtual void SetNbIso(const int theNb[2]);
56 virtual void GetNbIso(int &theNbU,int &theNbV);
59 int NbIso[2], Discret;
63 CreateIso(const TopoDS_Face& theFace,
64 const int theNbIso[2],
66 vtkPolyData* thePolyData,
71 CreateIso_(const TopoDS_Face& theFace,
72 GeomAbs_IsoType theIsoType,
77 vtkPolyData* thePolyData,
82 CreateIso__(const BRepAdaptor_Surface& theSurface,
83 GeomAbs_IsoType theIsoType,
86 Standard_Real theStep,
87 vtkPolyData* thePolyData,
93 ~GEOM_WireframeFace();
97 GEOM_WireframeFace(const GEOM_WireframeFace&);
98 void operator=(const GEOM_WireframeFace&);
102 #endif //GEOM_WFACEACTOR_H