summaryrefslogtreecommitdiff
path: root/inc/DBRep.hxx
blob: 99ac3797532670dbc2da14abbcadddd2e29603f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _DBRep_HeaderFile
#define _DBRep_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif

#ifndef _Standard_CString_HeaderFile
#include <Standard_CString.hxx>
#endif
#ifndef _TopAbs_ShapeEnum_HeaderFile
#include <TopAbs_ShapeEnum.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
class TopoDS_Shape;
class Draw_Interpretor;
class DBRep_Edge;
class DBRep_ListOfEdge;
class DBRep_Face;
class DBRep_ListOfFace;
class DBRep_HideData;
class DBRep_ListOfHideData;
class DBRep_DrawableShape;
class DBRep_IsoBuilder;
class DBRep_ListNodeOfListOfEdge;
class DBRep_ListIteratorOfListOfEdge;
class DBRep_ListNodeOfListOfFace;
class DBRep_ListIteratorOfListOfFace;
class DBRep_ListNodeOfListOfHideData;
class DBRep_ListIteratorOfListOfHideData;


//! Used to display BRep objects  using the DrawTrSurf <br>
//!          package. <br>
//!  The DrawableShape is a Display object build from a <br>
//!          Shape. <br>
//!  Provides methods to manage a directory of named shapes. <br>
//!          Provides a set of Draw commands for Shapes. <br>
class DBRep  {
public:

  void* operator new(size_t,void* anAddress) 
  {
    return anAddress;
  }
  void* operator new(size_t size) 
  {
    return Standard::Allocate(size); 
  }
  void  operator delete(void *anAddress) 
  {
    if (anAddress) Standard::Free((Standard_Address&)anAddress); 
  }

  //! Sets  <S> in the  variable  <Name>.  Overwrite the <br>
//!          variable if already set. <br>
  Standard_EXPORT   static  void Set(const Standard_CString Name,const TopoDS_Shape& S) ;
  //! Returns the shape in the variable  <Name>. Returns <br>
//!          a null shape if the variable is not set or  not of <br>
//!          the given <Typ>.  If <Complain> is  True a message <br>
//!          is printed on cout if the variable is not set. <br>
  Standard_EXPORT   static  TopoDS_Shape Get(Standard_CString& Name,const TopAbs_ShapeEnum Typ = TopAbs_SHAPE,const Standard_Boolean Complain = Standard_False) ;
  //! Defines the basic commands. <br>
  Standard_EXPORT   static  void BasicCommands(Draw_Interpretor& theCommands) ;
  //! True if HLR, False if wireframe. <br>
  Standard_EXPORT   static  Standard_Boolean HLRMode() ;
  //! True if display Rg1Lines. <br>
  Standard_EXPORT   static  Standard_Boolean Rg1Mode() ;
  //! True if display RgNLines. <br>
  Standard_EXPORT   static  Standard_Boolean RgNMode() ;
  //! True if display HiddenLines. <br>
  Standard_EXPORT   static  Standard_Boolean HidMode() ;
  //! discretisation angle for edges. <br>
  Standard_EXPORT   static  Standard_Real HLRAngle() ;
  //! number of iso in U and V <br>
  Standard_EXPORT   static  Standard_Integer NbIsos() ;
  //! discretisation number of points for curves <br>//! set progress indicator <br>//! get progress indicator <br>
  Standard_EXPORT   static  Standard_Integer Discretisation() ;





protected:





private:




friend class DBRep_Edge;
friend class DBRep_ListOfEdge;
friend class DBRep_Face;
friend class DBRep_ListOfFace;
friend class DBRep_HideData;
friend class DBRep_ListOfHideData;
friend class DBRep_DrawableShape;
friend class DBRep_IsoBuilder;
friend class DBRep_ListNodeOfListOfEdge;
friend class DBRep_ListIteratorOfListOfEdge;
friend class DBRep_ListNodeOfListOfFace;
friend class DBRep_ListIteratorOfListOfFace;
friend class DBRep_ListNodeOfListOfHideData;
friend class DBRep_ListIteratorOfListOfHideData;

};





// other Inline functions and methods (like "C++: function call" methods)


#endif