summaryrefslogtreecommitdiff
path: root/inc/TDataXtd_Geometry.hxx
blob: dcf42e75b0883e8a2062cbfc8b633bd35ee051a2 (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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
// 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 _TDataXtd_Geometry_HeaderFile
#define _TDataXtd_Geometry_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_TDataXtd_Geometry_HeaderFile
#include <Handle_TDataXtd_Geometry.hxx>
#endif

#ifndef _TDataXtd_GeometryEnum_HeaderFile
#include <TDataXtd_GeometryEnum.hxx>
#endif
#ifndef _TDF_Attribute_HeaderFile
#include <TDF_Attribute.hxx>
#endif
#ifndef _Handle_TNaming_NamedShape_HeaderFile
#include <Handle_TNaming_NamedShape.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Handle_TDF_Attribute_HeaderFile
#include <Handle_TDF_Attribute.hxx>
#endif
#ifndef _Handle_TDF_RelocationTable_HeaderFile
#include <Handle_TDF_RelocationTable.hxx>
#endif
#ifndef _Standard_OStream_HeaderFile
#include <Standard_OStream.hxx>
#endif
class TDF_Label;
class TNaming_NamedShape;
class gp_Pnt;
class gp_Ax1;
class gp_Lin;
class gp_Circ;
class gp_Elips;
class gp_Pln;
class gp_Cylinder;
class Standard_GUID;
class TDF_Attribute;
class TDF_RelocationTable;


//! This class is used to model construction geometry. <br>
//! The specific geometric construction of the <br>
//!  attribute is defined by an element of the <br>
//! enumeration TDataXtd_GeometryEnum. <br>
//!      This attribute may  also be used to qualify  underlying <br>
//!          geometry  of   the  associated NamedShape.     for <br>
//!          Constructuion element by example. <br>
class TDataXtd_Geometry : public TDF_Attribute {

public:

  //! API class methods <br>
//!         ================= <br>//! Finds, or  creates, a Geometry attribute  defined by the label label. <br>
//! The default type of geometry is the value <br>
//! ANY_GEOM of the enumeration TDataXtd_GeometryEnum. <br>
//! To specify another value of this enumeration, use <br>
//! the function SetType. <br>
  Standard_EXPORT   static  Handle_TDataXtd_Geometry Set(const TDF_Label& label) ;
  
//! Returns the label L used to define the type of <br>
//! geometric construction for the geometry attribute. <br>
  Standard_EXPORT   static  TDataXtd_GeometryEnum Type(const TDF_Label& L) ;
  //! Returns the topological attribute S used to define <br>
//! the type of geometric construction for the geometry attribute. <br>
  Standard_EXPORT   static  TDataXtd_GeometryEnum Type(const Handle(TNaming_NamedShape)& S) ;
  
//! Returns the point attribute defined by the label L and the point G. <br>
  Standard_EXPORT   static  Standard_Boolean Point(const TDF_Label& L,gp_Pnt& G) ;
  
//! Returns the point attribute defined by the topological attribute S and the point G. <br>
  Standard_EXPORT   static  Standard_Boolean Point(const Handle(TNaming_NamedShape)& S,gp_Pnt& G) ;
  
//! Returns the axis attribute defined by the label L and the axis G. <br>
  Standard_EXPORT   static  Standard_Boolean Axis(const TDF_Label& L,gp_Ax1& G) ;
  
//! Returns the axis attribute defined by the topological attribute S and the axis G. <br>
  Standard_EXPORT   static  Standard_Boolean Axis(const Handle(TNaming_NamedShape)& S,gp_Ax1& G) ;
  
//! Returns the line attribute defined by the label L and the line G. <br>
  Standard_EXPORT   static  Standard_Boolean Line(const TDF_Label& L,gp_Lin& G) ;
  
//! Returns the line attribute defined by the topological attribute S and the line G. <br>
  Standard_EXPORT   static  Standard_Boolean Line(const Handle(TNaming_NamedShape)& S,gp_Lin& G) ;
  
//! Returns the circle attribute defined by the label L and the circle G. <br>
  Standard_EXPORT   static  Standard_Boolean Circle(const TDF_Label& L,gp_Circ& G) ;
  
//! Returns the circle attribute defined by the topological attribute S and the circle G. <br>
  Standard_EXPORT   static  Standard_Boolean Circle(const Handle(TNaming_NamedShape)& S,gp_Circ& G) ;
  
//! Returns the ellipse attribute defined by the label L and the ellipse G. <br>
  Standard_EXPORT   static  Standard_Boolean Ellipse(const TDF_Label& L,gp_Elips& G) ;
  
//! Returns the ellipse attribute defined by the <br>
//! topological attribute S and the ellipse G. <br>
  Standard_EXPORT   static  Standard_Boolean Ellipse(const Handle(TNaming_NamedShape)& S,gp_Elips& G) ;
  
//! Returns the plane attribute defined by the label L and the plane G. <br>
  Standard_EXPORT   static  Standard_Boolean Plane(const TDF_Label& L,gp_Pln& G) ;
  
//! Returns the plane attribute defined by the <br>
//! topological attribute S and the plane G. <br>
  Standard_EXPORT   static  Standard_Boolean Plane(const Handle(TNaming_NamedShape)& S,gp_Pln& G) ;
  
//! Returns the cylinder attribute defined by the label L and the cylinder G. <br>
  Standard_EXPORT   static  Standard_Boolean Cylinder(const TDF_Label& L,gp_Cylinder& G) ;
  
//! Returns the cylinder attribute defined by the <br>
//! topological attribute S and the cylinder G. <br>
  Standard_EXPORT   static  Standard_Boolean Cylinder(const Handle(TNaming_NamedShape)& S,gp_Cylinder& G) ;
  //! Returns the GUID for geometry attributes. <br>
  Standard_EXPORT   static const Standard_GUID& GetID() ;
  //! This and the next methods are used to  retrieve  underlying geometry of  the <br>
//!           NamedShape, even   if  noone Geometry   Attribute  is <br>
//!          associated  .  if not  found or not compliant geometry return False. <br>
  Standard_EXPORT   TDataXtd_Geometry();
  //! Returns the type of geometric construction T of this attribute. <br>
//! T will be a value of the enumeration TDataXtd_GeometryEnum. <br>
  Standard_EXPORT     void SetType(const TDataXtd_GeometryEnum T) ;
  //! Returns the type of geometric construction. <br>
  Standard_EXPORT     TDataXtd_GeometryEnum GetType() const;
  
  Standard_EXPORT    const Standard_GUID& ID() const;
  
  Standard_EXPORT     void Restore(const Handle(TDF_Attribute)& with) ;
  
  Standard_EXPORT     Handle_TDF_Attribute NewEmpty() const;
  
  Standard_EXPORT     void Paste(const Handle(TDF_Attribute)& into,const Handle(TDF_RelocationTable)& RT) const;
  
  Standard_EXPORT   virtual  Standard_OStream& Dump(Standard_OStream& anOS) const;




  DEFINE_STANDARD_RTTI(TDataXtd_Geometry)

protected:




private: 


TDataXtd_GeometryEnum myType;


};





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


#endif