DATAKIT API  V2025.1
ugw.hpp File Reference

Go to the source code of this file.

Namespaces

 Ugw
 

Macros

#define DTK_UGW_VERSION_NX1980   60
 
#define DTK_UGW_VERSION_NX2212   63
 
#define DTK_UGW_VERSION_NX5   45
 

Functions

Dtk_ErrorStatus Ugw::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 directory. Just give name without path and extension. More...
 
Dtk_ErrorStatus Ugw::AddMetaData (const Dtk_MetaDataPtr &inMeta)
 Add a MetaData in the current component. More...
 
Dtk_ErrorStatus Ugw::CloseLastInstance ()
 Close the last instance. More...
 
Dtk_ErrorStatus Ugw::EndFile ()
 Close the UG file. More...
 
Dtk_ErrorStatus Ugw::GetColorInTable (size_t inIth, Dtk_RGB &outColor, Dtk_string &outColorname)
 Get color value and color name from the palette. More...
 
Dtk_ErrorStatus Ugw::ImportCdfColorfile (const Dtk_string &InCdfFile)
 Import a color palette. More...
 
Dtk_ErrorStatus Ugw::InitFile (const Dtk_string &inFilename, int inVersiontowrite=45, int inUnitasmm=1, int inMultithread=0)
 Initialize UG Writer. More...
 
Dtk_ErrorStatus Ugw::OpenInstance (const Dtk_string &inInstanceName, const Dtk_string &inProtoFileName, Dtk_bool &outWasAlreadyInstancied, const Dtk_transfo &inTrans, const Dtk_RGB &inRgb)
 deprecated More...
 
Dtk_ErrorStatus Ugw::OpenInstance (const Dtk_string &inProtoFileName, const Dtk_transfo &inTrans, Dtk_InfoPtr inInfos)
 Open an child instance to write an assembly. More...
 
Dtk_ErrorStatus Ugw::SetColorInTable (size_t inIth, const Dtk_RGB &inColor, const Dtk_string &inColorname)
 Replace color value and color name on the palette. More...
 
Dtk_ErrorStatus Ugw::SetGroupDatas (const Dtk_string &inGroupName, Dtk_InfoPtr inInfos)
 define Visibility for a specific group More...
 
Dtk_ErrorStatus Ugw::SetGroupVisibility (const Dtk_string &inGroupName, Dtk_bool inVisible)
 
Dtk_ErrorStatus Ugw::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 More...
 
Dtk_ErrorStatus Ugw::WriteAxisSystem (const Dtk_AxisSystemPtr &inAxisSystem)
 Add an axis system into the current node. More...
 
Dtk_ErrorStatus Ugw::WriteBody (const Dtk_BodyPtr &inBody)
 Add a body inside the file. More...
 
Dtk_ErrorStatus Ugw::WriteExternJtMesh (const char *inFlux, size_t inSize, const Dtk_InfoPtr &inInf)
 Add a JT file as lightweight body inside the file. More...
 
Dtk_ErrorStatus Ugw::WriteExternParasolidBody (const char *inFlux, size_t inSize, const Dtk_InfoPtr &inInf)
 Add a Parasolid file as body inside the file. More...
 
Dtk_ErrorStatus Ugw::WriteMesh (const Dtk_MeshPtr &inMesh)
 Add a mesh inside the file. More...
 
Dtk_ErrorStatus Ugw::WritePMI (const Dtk_FdtPtr &inPmi)
 Add a pmi inside the file. More...
 
Dtk_ErrorStatus Ugw::WriteReferenceGeometry (const Dtk_BodyPtr &inRefgeom)
 Add a reference geometry into the current node. More...
 

Macro Definition Documentation

◆ DTK_UGW_VERSION_NX1980

#define DTK_UGW_VERSION_NX1980   60

◆ DTK_UGW_VERSION_NX2212

#define DTK_UGW_VERSION_NX2212   63

◆ DTK_UGW_VERSION_NX5

#define DTK_UGW_VERSION_NX5   45