1 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef GEOM_WIREFRAME_FACE_H
21 #define GEOM_WIREFRAME_FACE_H
24 #include "GEOM_FaceSource.h"
26 #include <GeomAbs_IsoType.hxx>
27 #include <BRepAdaptor_Surface.hxx>
29 #include <vtkPolyDataSource.h>
31 class OCC2VTK_EXPORT GEOM_WireframeFace: public GEOM_FaceSource
34 vtkTypeMacro(GEOM_WireframeFace,GEOM_FaceSource);
35 static GEOM_WireframeFace* New();
37 /* vtkSetMacro(NbIso,int);
38 vtkGetMacro(NbIso,int);*/
40 vtkSetMacro(Discret,int);
41 vtkGetMacro(Discret,int);
44 void OCC2VTK(const TopoDS_Face& theFace,
45 vtkPolyData* thePolyData,
47 const int theNbIso[2],
48 const int theDiscret = 15);
50 //! IsoLines management
51 // theNb[0] - number of U lines
52 // theNb[1] - number of V lines
53 virtual void SetNbIso(const int theNb[2]);
54 virtual void GetNbIso(int &theNbU,int &theNbV);
57 int NbIso[2], Discret;
61 CreateIso(const TopoDS_Face& theFace,
62 const int theNbIso[2],
64 vtkPolyData* thePolyData,
69 CreateIso_(const TopoDS_Face& theFace,
70 GeomAbs_IsoType theIsoType,
75 vtkPolyData* thePolyData,
80 CreateIso__(const BRepAdaptor_Surface& theSurface,
81 GeomAbs_IsoType theIsoType,
84 Standard_Real theStep,
85 vtkPolyData* thePolyData,
91 ~GEOM_WireframeFace();
95 GEOM_WireframeFace(const GEOM_WireframeFace&);
96 void operator=(const GEOM_WireframeFace&);
100 #endif //GEOM_WFACEACTOR_H