Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
GEOM_WireframeFace.h
Go to the documentation of this file.
1 // Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
2 //
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.
7 //
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.
12 //
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
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 
20 #ifndef GEOM_WIREFRAME_FACE_H
21 #define GEOM_WIREFRAME_FACE_H
22 
23 #include "OCC2VTK.h"
24 #include "GEOM_FaceSource.h"
25 
26 #include <GeomAbs_IsoType.hxx>
27 #include <BRepAdaptor_Surface.hxx>
28 
29 class vtkPolyData;
30 
31 namespace GEOMUtils
32 {
33  class Hatcher;
34 }
35 
37 {
38 public:
40  static GEOM_WireframeFace* New();
41 
42  /* vtkSetMacro(NbIso,int);
43  vtkGetMacro(NbIso,int);*/
44 
45  vtkSetMacro(Discret,int);
46  vtkGetMacro(Discret,int);
47 
48  static
49  void OCC2VTK(const TopoDS_Face& theFace,
50  vtkPolyData* thePolyData,
51  vtkPoints* thePts,
52  const int theNbIso[2],
53  const int theDiscret = 15);
54 
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);
60 
61 protected:
62  int NbIso[2], Discret;
63 
64  static
65  void
66  CreateIso(const TopoDS_Face& theFace,
67  const int theNbIso[2],
68  const int theDiscret,
69  vtkPolyData* thePolyData,
70  vtkPoints* thePts);
71 
72  static
73  void
74  CreateIso(const GEOMUtils::Hatcher &theHatcher,
75  const Standard_Boolean IsUIso,
76  const int theDiscret,
77  vtkPolyData *thePolyData,
78  vtkPoints *thePts);
79 
80  static
81  void
82  CreateIso_(const TopoDS_Face& theFace,
83  GeomAbs_IsoType theIsoType,
84  Standard_Real Par,
85  Standard_Real T1,
86  Standard_Real T2,
87  const int theDiscret,
88  vtkPolyData* thePolyData,
89  vtkPoints* thePts);
90 
91  static
92  void
93  CreateIso__(const BRepAdaptor_Surface& theSurface,
94  GeomAbs_IsoType theIsoType,
95  Standard_Real& theU,
96  Standard_Real& theV,
97  Standard_Real theStep,
98  vtkPolyData* thePolyData,
99  vtkPoints* thePts);
100 
101  virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
102 
104  ~GEOM_WireframeFace();
105 
106 private:
107  // Not implememnted
109  void operator=(const GEOM_WireframeFace&);
110 };
111 
112 
113 #endif //GEOM_WFACEACTOR_H