1 // Copyright (C) 2007-2023 CEA, EDF, 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>
36 class OCC2VTK_EXPORT GEOM_WireframeFace: public GEOM_FaceSource
39 vtkTypeMacro(GEOM_WireframeFace,GEOM_FaceSource)
40 static GEOM_WireframeFace* New();
42 /* vtkSetMacro(NbIso,int);
43 vtkGetMacro(NbIso,int);*/
45 vtkSetMacro(Discret,int);
46 vtkGetMacro(Discret,int);
49 void OCC2VTK(const TopoDS_Face& theFace,
50 vtkPolyData* thePolyData,
52 const int theNbIso[2],
53 const int theDiscret = 15);
55 //! IsoLines management
56 // theNb[0] - number of U lines
57 // theNb[1] - number of V lines
58 virtual void SetNbIso(const int theNb[2]);
59 virtual void GetNbIso(int &theNbU,int &theNbV);
62 int NbIso[2], Discret;
66 CreateIso(const TopoDS_Face& theFace,
67 const int theNbIso[2],
69 vtkPolyData* thePolyData,
74 CreateIso(const GEOMUtils::Hatcher &theHatcher,
75 const Standard_Boolean IsUIso,
77 vtkPolyData *thePolyData,
82 CreateIso_(const TopoDS_Face& theFace,
83 GeomAbs_IsoType theIsoType,
88 vtkPolyData* thePolyData,
93 CreateIso__(const BRepAdaptor_Surface& theSurface,
94 GeomAbs_IsoType theIsoType,
97 Standard_Real theStep,
98 vtkPolyData* thePolyData,
101 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
103 GEOM_WireframeFace();
104 ~GEOM_WireframeFace();
108 GEOM_WireframeFace(const GEOM_WireframeFace&);
109 void operator=(const GEOM_WireframeFace&);
113 #endif //GEOM_WFACEACTOR_H