DATAKIT API  V2025.1
DKOC_Body2OC.hpp
Go to the documentation of this file.
1 #ifndef DKOC_Body2OCC_H
3 #define DKOC_Body2OCC_H
4 #ifndef _UTIL_TYPE_DTK_HPP_
5 class Dtk_string;
6 //class Dtk_BodyPtr;
7 enum Dtk_ErrorStatus {
8  dtkNoError = 0,
9  dtkMaxError = 5000
10 };
11 #endif
12 
13 #ifdef DTK_LIB_OCC
14 namespace DTK_LIB_OCC_NS
15 {
16 #endif
17 
18  class DKOC_Body2OC {
19  public:
20  DKOC_Body2OC();
21  ~DKOC_Body2OC();
22 
23  SetAsDeprecated("2025.1 ", "Not usefull anymore")
24  Dtk_ErrorStatus InitFile(const Dtk_string& inFileName);
25 
28  void SetShapeFix(const int inMode);
29 
33  Dtk_ErrorStatus ConvertBody(const Dtk_BodyPtr& inBody);
34 
35 
38  TopoDS_Shape RootShape() const;
39 
42  int MaxID();
43 
47  int ShapeID(const TopoDS_Shape& inShape) const;
48 
52  const TopoDS_Shape IDShape(const int inID) const;
53 
57  int StartID(const int inID) const;
58 
62  TopoDS_Shape ShapeFromStartID(const int inDtkID);
63 
64 
65  SetAsDeprecated("2025.1 ", "InternalUse")
66  void StartFill();
67  SetAsDeprecated("2025.1 ", "InternalUse")
68  bool IsFilled(const int ID) const;
69  SetAsDeprecated("2025.1 ", "InternalUse")
70  void SetFilled(const int ID);
71  SetAsDeprecated("2025.1 ", "InternalUse")
72  void EndFill();
73 
74  private:
75  //InternalUse
76  int _shapefixmode;
77  int _computestart;
78  void* _dat;
79  unsigned char* _flags;
80  };
81 
82 #ifdef DTK_LIB_OCC
83 } // end namespace DTK_LIB_OCC_NS
84 #endif
85 #endif
86 
87 /// @endcond
Dtk_string
This is a high level string class.
Definition: dtk_string.hpp:58
Ugw::InitFile
Dtk_ErrorStatus InitFile(const Dtk_string &inFilename, int inVersiontowrite=45, int inUnitasmm=1, int inMultithread=0)
Initialize UG Writer.
Dtk_ErrorStatus
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
SetAsDeprecated
#define SetAsDeprecated(inFromVersion, inMessage)
Definition: define.h:762
Dtk_SmartPtr
Definition: util_ptr_dtk.hpp:37
dtkNoError
@ dtkNoError
Definition: error_dtk.hpp:140