summaryrefslogtreecommitdiff
path: root/inc/TopoDS_TShape.hxx
blob: 9297bb1b3389832fd81230a6762cb1e21db846d1 (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
136
137
138
139
140
141
142
// 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 _TopoDS_TShape_HeaderFile
#define _TopoDS_TShape_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_TopoDS_TShape_HeaderFile
#include <Handle_TopoDS_TShape.hxx>
#endif

#ifndef _TopoDS_ListOfShape_HeaderFile
#include <TopoDS_ListOfShape.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _MMgt_TShared_HeaderFile
#include <MMgt_TShared.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _TopAbs_ShapeEnum_HeaderFile
#include <TopAbs_ShapeEnum.hxx>
#endif
class Standard_ConstructionError;
class TopoDS_Iterator;
class TopoDS_Builder;
class TopoDS_ListOfShape;


//! A TShape  is a topological  structure describing a <br>
//!          set of points in a 2D or 3D space. <br>
//! <br>
//!          TShapes are   defined   by  their  optional domain <br>
//!          (geometry)  and  their  components  (other TShapes <br>
//!          with  Locations and Orientations).  The components <br>
//!          are stored in a List of Shapes. <br>
//! <br>
//!          A   TShape contains  the   following boolean flags : <br>
//! <br>
//!           - Free       : Free or Frozen. <br>
//!           - Modified   : Has been modified. <br>
//!           - Checked    : Has been checked. <br>
//!           - Orientable : Can be oriented. <br>
//!           - Closed     : Is closed. <br>
//!           - Infinite   : Is infinite. <br>
//!           - Convex     : Is convex. <br>
//! <br>
//! <br>
//!          Users have no direct access to the classes derived <br>
//!          from TShape.  They  handle them with   the classes <br>
//!          derived from Shape. <br>
class TopoDS_TShape : public MMgt_TShared {

public:

  //! Returns the free flag. <br>
        Standard_Boolean Free() const;
  //! Sets the free flag. <br>
        void Free(const Standard_Boolean F) ;
  //! Returns the modification flag. <br>
        Standard_Boolean Modified() const;
  //! Sets the modification flag. <br>
        void Modified(const Standard_Boolean M) ;
  //! Returns the checked flag. <br>
        Standard_Boolean Checked() const;
  //! Sets the checked flag. <br>
        void Checked(const Standard_Boolean C) ;
  //! Returns the orientability flag. <br>
        Standard_Boolean Orientable() const;
  //! Sets the orientability flag. <br>
        void Orientable(const Standard_Boolean C) ;
  //! Returns the closedness flag. <br>
        Standard_Boolean Closed() const;
  //! Sets the closedness flag. <br>
        void Closed(const Standard_Boolean C) ;
  //! Returns the infinity flag. <br>
        Standard_Boolean Infinite() const;
  //! Sets the infinity flag. <br>
        void Infinite(const Standard_Boolean C) ;
  //! Returns the convexness flag. <br>
        Standard_Boolean Convex() const;
  //! Sets the convexness flag. <br>
        void Convex(const Standard_Boolean C) ;
  //! Returns the type as a term of the ShapeEnum enum : <br>
//!          VERTEX, EDGE, WIRE, FACE, .... <br>
  Standard_EXPORT   virtual  TopAbs_ShapeEnum ShapeType() const = 0;
  //! Returns a copy  of the  TShape  with no sub-shapes. <br>
  Standard_EXPORT   virtual  Handle_TopoDS_TShape EmptyCopy() const = 0;


friend class TopoDS_Iterator;
friend class TopoDS_Builder;


  DEFINE_STANDARD_RTTI(TopoDS_TShape)

protected:

  //! Constructs an empty TShape. <br>
//!          Free       : True <br>
//!          Modified   : True <br>
//!          Checked    : False <br>
//!          Orientable : True <br>
//!          Closed     : False <br>
//!          Infinite   : False <br>
//!          Convex     : False <br>
      TopoDS_TShape();



private: 

  
       const TopoDS_ListOfShape& Shapes() const;
  
        TopoDS_ListOfShape& ChangeShapes() ;

TopoDS_ListOfShape myShapes;
Standard_Integer myFlags;


};


#include <TopoDS_TShape.lxx>



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


#endif