summaryrefslogtreecommitdiff
path: root/inc/DNaming.hxx
blob: e8c8ddfe9db819d0455458daec95d8b2c4291906 (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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
// 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 _DNaming_HeaderFile
#define _DNaming_HeaderFile

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

#ifndef _Handle_TDataStd_Real_HeaderFile
#include <Handle_TDataStd_Real.hxx>
#endif
#ifndef _Handle_TFunction_Function_HeaderFile
#include <Handle_TFunction_Function.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Handle_TDataStd_Integer_HeaderFile
#include <Handle_TDataStd_Integer.hxx>
#endif
#ifndef _Handle_TDataStd_Name_HeaderFile
#include <Handle_TDataStd_Name.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Handle_TNaming_NamedShape_HeaderFile
#include <Handle_TNaming_NamedShape.hxx>
#endif
#ifndef _Handle_TDataStd_UAttribute_HeaderFile
#include <Handle_TDataStd_UAttribute.hxx>
#endif
#ifndef _TopAbs_ShapeEnum_HeaderFile
#include <TopAbs_ShapeEnum.hxx>
#endif
#ifndef _Standard_CString_HeaderFile
#include <Standard_CString.hxx>
#endif
#ifndef _Handle_TDF_Data_HeaderFile
#include <Handle_TDF_Data.hxx>
#endif
class TDataStd_Real;
class TFunction_Function;
class TDataStd_Integer;
class TDataStd_Name;
class TNaming_NamedShape;
class gp_Ax1;
class TDataStd_UAttribute;
class TopoDS_Shape;
class BRepBuilderAPI_MakeShape;
class TNaming_Builder;
class TopTools_DataMapOfShapeShape;
class TDF_Label;
class BRepAlgoAPI_BooleanOperation;
class TDF_Data;
class TopTools_ListOfShape;
class TCollection_AsciiString;
class Draw_Interpretor;
class DNaming_BoxDriver;
class DNaming_CylinderDriver;
class DNaming_SphereDriver;
class DNaming_SelectionDriver;
class DNaming_BooleanOperationDriver;
class DNaming_FilletDriver;
class DNaming_TransformationDriver;
class DNaming_PrismDriver;
class DNaming_RevolutionDriver;
class DNaming_PointDriver;
class DNaming_Line3DDriver;
class DNaming_DataMapOfShapeOfName;
class DNaming_DataMapNodeOfDataMapOfShapeOfName;
class DNaming_DataMapIteratorOfDataMapOfShapeOfName;



class DNaming  {
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); 
  }

  
  Standard_EXPORT   static  Handle_TDataStd_Real GetReal(const Handle(TFunction_Function)& theFunction,const Standard_Integer thePosition) ;
  
  Standard_EXPORT   static  Handle_TDataStd_Integer GetInteger(const Handle(TFunction_Function)& theFunction,const Standard_Integer thePosition) ;
  
  Standard_EXPORT   static  Handle_TDataStd_Name GetString(const Handle(TFunction_Function)& theFunction,const Standard_Integer thePosition) ;
  
  Standard_EXPORT   static  Standard_Boolean ComputeAxis(const Handle(TNaming_NamedShape)& theNS,gp_Ax1& theAx1) ;
  
  Standard_EXPORT   static  Handle_TNaming_NamedShape GetFunctionResult(const Handle(TFunction_Function)& theFunction) ;
  
  Standard_EXPORT   static  Handle_TDataStd_UAttribute GetObjectArg(const Handle(TFunction_Function)& theFunction,const Standard_Integer thePosition) ;
  
  Standard_EXPORT   static  void SetObjectArg(const Handle(TFunction_Function)& theFunction,const Standard_Integer thePosition,const Handle(TDataStd_UAttribute)& theNewValue) ;
  
  Standard_EXPORT   static  Handle_TNaming_NamedShape GetObjectValue(const Handle(TDataStd_UAttribute)& theObject) ;
  
  Standard_EXPORT   static  Handle_TFunction_Function GetLastFunction(const Handle(TDataStd_UAttribute)& theObject) ;
  
  Standard_EXPORT   static  Handle_TFunction_Function GetFirstFunction(const Handle(TDataStd_UAttribute)& theObject) ;
  
  Standard_EXPORT   static  Handle_TFunction_Function GetPrevFunction(const Handle(TFunction_Function)& theFunction) ;
  
  Standard_EXPORT   static  Handle_TDataStd_UAttribute GetObjectFromFunction(const Handle(TFunction_Function)& theFunction) ;
  
  Standard_EXPORT   static  Standard_Boolean IsAttachment(const Handle(TDataStd_UAttribute)& theObject) ;
  
  Standard_EXPORT   static  Handle_TNaming_NamedShape GetAttachmentsContext(const Handle(TDataStd_UAttribute)& theObject) ;
  
  Standard_EXPORT   static  Standard_Boolean ComputeSweepDir(const TopoDS_Shape& theShape,gp_Ax1& theAxis) ;
  
  Standard_EXPORT   static  void LoadAndOrientModifiedShapes(BRepBuilderAPI_MakeShape& MakeShape,const TopoDS_Shape& ShapeIn,const TopAbs_ShapeEnum GeneratedFrom,TNaming_Builder& Buider,const TopTools_DataMapOfShapeShape& SubShapesOfResult) ;
  
  Standard_EXPORT   static  void LoadAndOrientGeneratedShapes(BRepBuilderAPI_MakeShape& MakeShape,const TopoDS_Shape& ShapeIn,const TopAbs_ShapeEnum GeneratedFrom,TNaming_Builder& Buider,const TopTools_DataMapOfShapeShape& SubShapesOfResult) ;
  
  Standard_EXPORT   static  void LoadDeletedShapes(BRepBuilderAPI_MakeShape& MakeShape,const TopoDS_Shape& ShapeIn,const TopAbs_ShapeEnum KindOfDeletedShape,TNaming_Builder& Buider) ;
  
  Standard_EXPORT   static  void LoadResult(const TDF_Label& theLabel,BRepAlgoAPI_BooleanOperation& MS) ;
  
  Standard_EXPORT   static  TopoDS_Shape CurrentShape(const Standard_CString ShapeEntry,const Handle(TDF_Data)& Data) ;
  
  Standard_EXPORT   static  void GetShape(const Standard_CString ShapeEntry,const Handle(TDF_Data)& Data,TopTools_ListOfShape& Shapes) ;
  
  Standard_EXPORT   static  TCollection_AsciiString GetEntry(const TopoDS_Shape& Shape,const Handle(TDF_Data)& Data,Standard_Integer& Status) ;
  //! Loads the Shape to DF <br>
  Standard_EXPORT   static  void LoadImportedShape(const TDF_Label& theResultLabel,const TopoDS_Shape& theShape) ;
  //! Reloads sub-shapes of the Shape to DF <br>
  Standard_EXPORT   static  void LoadPrime(const TDF_Label& theResultLabel,const TopoDS_Shape& theShape) ;
  
  Standard_EXPORT   static  void AllCommands(Draw_Interpretor& DI) ;
  //! commands relatives to NamedShape <br>
  Standard_EXPORT   static  void BasicCommands(Draw_Interpretor& DI) ;
  
  Standard_EXPORT   static  void ToolsCommands(Draw_Interpretor& DI) ;
  //! commands relatives to Naming <br>
  Standard_EXPORT   static  void SelectionCommands(Draw_Interpretor& DI) ;
  //! commands for  testing Naming <br>
  Standard_EXPORT   static  void ModelingCommands(Draw_Interpretor& DI) ;





protected:





private:




friend class DNaming_BoxDriver;
friend class DNaming_CylinderDriver;
friend class DNaming_SphereDriver;
friend class DNaming_SelectionDriver;
friend class DNaming_BooleanOperationDriver;
friend class DNaming_FilletDriver;
friend class DNaming_TransformationDriver;
friend class DNaming_PrismDriver;
friend class DNaming_RevolutionDriver;
friend class DNaming_PointDriver;
friend class DNaming_Line3DDriver;
friend class DNaming_DataMapOfShapeOfName;
friend class DNaming_DataMapNodeOfDataMapOfShapeOfName;
friend class DNaming_DataMapIteratorOfDataMapOfShapeOfName;

};





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


#endif