DATAKIT API  V2025.1
ugw.hpp
Go to the documentation of this file.
1 /**********************************************************
2 UGW.H
3 ***********************************************************/
4 #ifndef _UGW_H
5 #define _UGW_H
6 
7 #define DTK_UGW_VERSION_NX5 45
8 #define DTK_UGW_VERSION_NX1980 60
9 #define DTK_UGW_VERSION_NX2212 63
10 
11 namespace Ugw
12 {
20  Dtk_ErrorStatus InitFile(const Dtk_string& inFilename,
21  int inVersiontowrite = DTK_UGW_VERSION_NX5, int inUnitasmm=1,
22  int inMultithread=0);
23 
30 
36 
37 
44 
51 
59 
70 
74  const Dtk_string& inProtoFileName,
75  Dtk_bool& outWasAlreadyInstancied,
76  const Dtk_transfo& inTrans,
77  const Dtk_RGB& inRgb);
88  Dtk_ErrorStatus OpenInstance(const Dtk_string& inProtoFileName,
89  const Dtk_transfo& inTrans, Dtk_InfoPtr inInfos);
90 
98  const Dtk_transfo& inTrans, Dtk_InfoPtr inInfos, void(*innxread_getdata)(const Dtk_string&, void*&));
99 
106  Dtk_ErrorStatus GetColorInTable(size_t inIth, Dtk_RGB& outColor, Dtk_string& outColorname);
107 
114  Dtk_ErrorStatus SetColorInTable(size_t inIth, const Dtk_RGB& inColor, const Dtk_string& inColorname);
115 
121 
129  const Dtk_tab<Dtk_Int32> & inSelectables = Dtk_tab<Dtk_Int32>());
130 
132  Dtk_ErrorStatus SetGroupVisibility(const Dtk_string& inGroupName, Dtk_bool inVisible);
133 
141  Dtk_ErrorStatus SetGroupDatas(const Dtk_string& inGroupName, Dtk_InfoPtr inInfos);
142 
149  Dtk_ErrorStatus WriteExternParasolidBody(const char* inFlux, size_t inSize, const Dtk_InfoPtr& inInf);
150 
157  Dtk_ErrorStatus WriteExternJtMesh(const char* inFlux, size_t inSize, const Dtk_InfoPtr& inInf);
158 
163 
168 
169 }
170 
171 #endif
172 
Dtk_transfo
This is the Transformation dedicated class.
Definition: dtk_transfo.hpp:19
Ugw::ImportCdfColorfile
Dtk_ErrorStatus ImportCdfColorfile(const Dtk_string &InCdfFile)
Import a color palette.
Ugw::WriteAxisSystem
Dtk_ErrorStatus WriteAxisSystem(const Dtk_AxisSystemPtr &inAxisSystem)
Add an axis system into the current node.
Ugw::SetColorInTable
Dtk_ErrorStatus SetColorInTable(size_t inIth, const Dtk_RGB &inColor, const Dtk_string &inColorname)
Replace color value and color name on the palette.
Ugw::AddExternInstance
Dtk_ErrorStatus AddExternInstance(const Dtk_string &inProtoFileName, const Dtk_transfo &inTrans, Dtk_InfoPtr inInfos, void(*innxread_getdata)(const Dtk_string &, void *&))
Open an extern file to add as instance in current assembly, inProtoFileName must be in the output dir...
DTK_UGW_VERSION_NX5
#define DTK_UGW_VERSION_NX5
Definition: ugw.hpp:7
Dtk_string
This is a high level string class.
Definition: dtk_string.hpp:58
Ugw::WriteReferenceGeometry
Dtk_ErrorStatus WriteReferenceGeometry(const Dtk_BodyPtr &inRefgeom)
Add a reference geometry into the current node.
Ugw::WriteExternJtMesh
Dtk_ErrorStatus WriteExternJtMesh(const char *inFlux, size_t inSize, const Dtk_InfoPtr &inInf)
Add a JT file as lightweight body inside the file.
Ugw::WriteBody
Dtk_ErrorStatus WriteBody(const Dtk_BodyPtr &inBody)
Add a body inside the file.
Dtk_bool
char Dtk_bool
Definition: define.h:725
Ugw::SetLayerData
Dtk_ErrorStatus SetLayerData(const Dtk_LayerInfosSetPtr &inLayerDataSet, const Dtk_tab< Dtk_Int32 > &inVisibles=Dtk_tab< Dtk_Int32 >(), const Dtk_tab< Dtk_Int32 > &inSelectables=Dtk_tab< Dtk_Int32 >())
define Data for layers
Ugw::InitFile
Dtk_ErrorStatus InitFile(const Dtk_string &inFilename, int inVersiontowrite=45, int inUnitasmm=1, int inMultithread=0)
Initialize UG Writer.
Ugw::WritePMI
Dtk_ErrorStatus WritePMI(const Dtk_FdtPtr &inPmi)
Add a pmi inside the file.
Ugw::WriteExternParasolidBody
Dtk_ErrorStatus WriteExternParasolidBody(const char *inFlux, size_t inSize, const Dtk_InfoPtr &inInf)
Add a Parasolid file as body inside the file.
Ugw::CloseLastInstance
Dtk_ErrorStatus CloseLastInstance()
Close the last instance.
Ugw::SetGroupDatas
Dtk_ErrorStatus SetGroupDatas(const Dtk_string &inGroupName, Dtk_InfoPtr inInfos)
define Visibility for a specific group
Dtk_ErrorStatus
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
Ugw::SetGroupVisibility
Dtk_ErrorStatus SetGroupVisibility(const Dtk_string &inGroupName, Dtk_bool inVisible)
Dtk_SmartPtr
Definition: util_ptr_dtk.hpp:37
Ugw::GetColorInTable
Dtk_ErrorStatus GetColorInTable(size_t inIth, Dtk_RGB &outColor, Dtk_string &outColorname)
Get color value and color name from the palette.
Dtk_tab< Dtk_Int32 >
Ugw::WriteMesh
Dtk_ErrorStatus WriteMesh(const Dtk_MeshPtr &inMesh)
Add a mesh inside the file.
Ugw::AddMetaData
Dtk_ErrorStatus AddMetaData(const Dtk_MetaDataPtr &inMeta)
Add a MetaData in the current component.
Ugw::OpenInstance
Dtk_ErrorStatus OpenInstance(const Dtk_string &inInstanceName, const Dtk_string &inProtoFileName, Dtk_bool &outWasAlreadyInstancied, const Dtk_transfo &inTrans, const Dtk_RGB &inRgb)
deprecated
Ugw
Definition: ugw.hpp:12
catiav5w::inInstanceName
const Dtk_string & inInstanceName
Definition: catiav5w.hpp:618
Dtk_RGB
Definition: dtk_rgb.hpp:7
Ugw::EndFile
Dtk_ErrorStatus EndFile()
Close the UG file.