1 // Copyright (C) 2007-2014 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, or (at your option) any later version.
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>
30 class GEOMUtils_Hatcher;
32 class OCC2VTK_EXPORT GEOM_WireframeFace: public GEOM_FaceSource
35 vtkTypeMacro(GEOM_WireframeFace,GEOM_FaceSource);
36 static GEOM_WireframeFace* New();
38 /* vtkSetMacro(NbIso,int);
39 vtkGetMacro(NbIso,int);*/
41 vtkSetMacro(Discret,int);
42 vtkGetMacro(Discret,int);
45 void OCC2VTK(const TopoDS_Face& theFace,
46 vtkPolyData* thePolyData,
48 const int theNbIso[2],
49 const int theDiscret = 15);
51 //! IsoLines management
52 // theNb[0] - number of U lines
53 // theNb[1] - number of V lines
54 virtual void SetNbIso(const int theNb[2]);
55 virtual void GetNbIso(int &theNbU,int &theNbV);
58 int NbIso[2], Discret;
62 CreateIso(const TopoDS_Face& theFace,
63 const int theNbIso[2],
65 vtkPolyData* thePolyData,
70 CreateIso(const GEOMUtils_Hatcher &theHatcher,
71 const Standard_Boolean IsUIso,
73 vtkPolyData *thePolyData,
78 CreateIso_(const TopoDS_Face& theFace,
79 GeomAbs_IsoType theIsoType,
84 vtkPolyData* thePolyData,
89 CreateIso__(const BRepAdaptor_Surface& theSurface,
90 GeomAbs_IsoType theIsoType,
93 Standard_Real theStep,
94 vtkPolyData* thePolyData,
97 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
100 ~GEOM_WireframeFace();
104 GEOM_WireframeFace(const GEOM_WireframeFace&);
105 void operator=(const GEOM_WireframeFace&);
109 #endif //GEOM_WFACEACTOR_H