Functions | |
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 directory. Just give name without path and extension. More... | |
Dtk_ErrorStatus | AddMetaData (const Dtk_MetaDataPtr &inMeta) |
Add a MetaData in the current component. More... | |
Dtk_ErrorStatus | CloseLastInstance () |
Close the last instance. More... | |
Dtk_ErrorStatus | EndFile () |
Close the UG file. More... | |
Dtk_ErrorStatus | GetColorInTable (size_t inIth, Dtk_RGB &outColor, Dtk_string &outColorname) |
Get color value and color name from the palette. More... | |
Dtk_ErrorStatus | ImportCdfColorfile (const Dtk_string &InCdfFile) |
Import a color palette. More... | |
Dtk_ErrorStatus | InitFile (const Dtk_string &inFilename, int inVersiontowrite=45, int inUnitasmm=1, int inMultithread=0) |
Initialize UG Writer. More... | |
Dtk_ErrorStatus | OpenInstance (const Dtk_string &inInstanceName, const Dtk_string &inProtoFileName, Dtk_bool &outWasAlreadyInstancied, const Dtk_transfo &inTrans, const Dtk_RGB &inRgb) |
deprecated More... | |
Dtk_ErrorStatus | OpenInstance (const Dtk_string &inProtoFileName, const Dtk_transfo &inTrans, Dtk_InfoPtr inInfos) |
Open an child instance to write an assembly. More... | |
Dtk_ErrorStatus | SetColorInTable (size_t inIth, const Dtk_RGB &inColor, const Dtk_string &inColorname) |
Replace color value and color name on the palette. More... | |
Dtk_ErrorStatus | SetGroupDatas (const Dtk_string &inGroupName, Dtk_InfoPtr inInfos) |
define Visibility for a specific group More... | |
Dtk_ErrorStatus | SetGroupVisibility (const Dtk_string &inGroupName, Dtk_bool inVisible) |
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 More... | |
Dtk_ErrorStatus | WriteAxisSystem (const Dtk_AxisSystemPtr &inAxisSystem) |
Add an axis system into the current node. More... | |
Dtk_ErrorStatus | WriteBody (const Dtk_BodyPtr &inBody) |
Add a body inside the file. More... | |
Dtk_ErrorStatus | WriteExternJtMesh (const char *inFlux, size_t inSize, const Dtk_InfoPtr &inInf) |
Add a JT file as lightweight body inside the file. More... | |
Dtk_ErrorStatus | WriteExternParasolidBody (const char *inFlux, size_t inSize, const Dtk_InfoPtr &inInf) |
Add a Parasolid file as body inside the file. More... | |
Dtk_ErrorStatus | WriteMesh (const Dtk_MeshPtr &inMesh) |
Add a mesh inside the file. More... | |
Dtk_ErrorStatus | WritePMI (const Dtk_FdtPtr &inPmi) |
Add a pmi inside the file. More... | |
Dtk_ErrorStatus | WriteReferenceGeometry (const Dtk_BodyPtr &inRefgeom) |
Add a reference geometry into the current node. More... | |
Dtk_ErrorStatus Ugw::AddExternInstance | ( | const Dtk_string & | inProtoFileName, |
const Dtk_transfo & | inTrans, | ||
Dtk_InfoPtr | inInfos, | ||
void(*)(const Dtk_string &, void *&) | innxread_getdata | ||
) |
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.
[in] | inProtoFileName | : Prototypename, also file name : for a subassembly reinstancied, this name must be the same for all instances |
[in] | inTrans | : Matrix of this instance. Dtk_transfo() for identity Matrix |
[in] | inInfos | : Additional informations, see options supported; same as OpenInstance |
[in] | innxread_getdata | : Function nxread_getdata of Datakit NXReader, retrieving subassemblies from extern, can be NULL. |
Dtk_ErrorStatus Ugw::AddMetaData | ( | const Dtk_MetaDataPtr & | inMeta | ) |
Add a MetaData in the current component.
[in] | inMeta | : Metadata to add. |
Dtk_ErrorStatus Ugw::CloseLastInstance | ( | ) |
Close the last instance.
Dtk_ErrorStatus Ugw::EndFile | ( | ) |
Close the UG file.
Dtk_ErrorStatus Ugw::GetColorInTable | ( | size_t | inIth, |
Dtk_RGB & | outColor, | ||
Dtk_string & | outColorname | ||
) |
Get color value and color name from the palette.
[in] | inIth | : Color index, from 0 (background) to 216 (max color index) |
[out] | outColor | : Color to retrieve |
[out] | outColorname | : Color name to retrieve |
Dtk_ErrorStatus Ugw::ImportCdfColorfile | ( | const Dtk_string & | InCdfFile | ) |
Import a color palette.
[in] | InCdfFile | : Cdf file to import |
Dtk_ErrorStatus Ugw::InitFile | ( | const Dtk_string & | inFilename, |
int | inVersiontowrite = 45 , |
||
int | inUnitasmm = 1 , |
||
int | inMultithread = 0 |
||
) |
Initialize UG Writer.
[in] | inFilename | : Name of output file to write. |
[in] | inVersiontowrite | : Version to write, only UGW_VERSION_NX5 available for now |
[in] | inUnitasmm | : Unit, default in millimeters, set 0 for inches. |
[in] | inMultithread | : Enable multithreading (efficiency in assemblies with lot of parts) |
Dtk_ErrorStatus Ugw::OpenInstance | ( | const Dtk_string & | inInstanceName, |
const Dtk_string & | inProtoFileName, | ||
Dtk_bool & | outWasAlreadyInstancied, | ||
const Dtk_transfo & | inTrans, | ||
const Dtk_RGB & | inRgb | ||
) |
deprecated
Dtk_ErrorStatus Ugw::OpenInstance | ( | const Dtk_string & | inProtoFileName, |
const Dtk_transfo & | inTrans, | ||
Dtk_InfoPtr | inInfos | ||
) |
Open an child instance to write an assembly.
[in] | inProtoFileName | : Prototypename, also file name : for a subassembly reinstancied, this name must be the same for all instances |
[in] | inTrans | : Matrix of this instance. Dtk_transfo() for identity Matrix |
[in] | inInfos | : Additional informations, see options supported |
Dtk_ErrorStatus Ugw::SetColorInTable | ( | size_t | inIth, |
const Dtk_RGB & | inColor, | ||
const Dtk_string & | inColorname | ||
) |
Replace color value and color name on the palette.
[in] | inIth | : Color index, from 0 (background) to 216 included (max color index) |
[in] | inColor | : Color to set |
[in] | inColorname | : Color name to set |
Dtk_ErrorStatus Ugw::SetGroupDatas | ( | const Dtk_string & | inGroupName, |
Dtk_InfoPtr | inInfos | ||
) |
define Visibility for a specific group
[in] | inGroupName | : Name of group |
[in] | inInfos | : Additional informations, see options supported |
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
[in] | inLayerDataSet | : LayerDataSet, see example |
[in] | inVisibles | : Array of visiblity for layers |
[in] | inSelectables | : Array of selectability for layers |
Dtk_ErrorStatus Ugw::WriteAxisSystem | ( | const Dtk_AxisSystemPtr & | inAxisSystem | ) |
Add an axis system into the current node.
[in] | inAxisSystem | : axis system to Write. |
Dtk_ErrorStatus Ugw::WriteBody | ( | const Dtk_BodyPtr & | inBody | ) |
Add a body inside the file.
[in] | inBody | : Body to add. |
Dtk_ErrorStatus Ugw::WriteExternJtMesh | ( | const char * | inFlux, |
size_t | inSize, | ||
const Dtk_InfoPtr & | inInf | ||
) |
Add a JT file as lightweight body inside the file.
[in] | inFlux | : Raw JT file to add. |
[in] | inSize | : Size of flux. |
[in] | inInf | : Additionnal informations. (name, visibility, default colors) |
Dtk_ErrorStatus Ugw::WriteExternParasolidBody | ( | const char * | inFlux, |
size_t | inSize, | ||
const Dtk_InfoPtr & | inInf | ||
) |
Add a Parasolid file as body inside the file.
[in] | inFlux | : Raw parasolid file to add. |
[in] | inSize | : Size of flux. |
[in] | inInf | : Additionnal informations. (name, visibility, default colors) |
Dtk_ErrorStatus Ugw::WriteMesh | ( | const Dtk_MeshPtr & | inMesh | ) |
Add a mesh inside the file.
[in] | inMesh | : Mesh to add. |
Dtk_ErrorStatus Ugw::WritePMI | ( | const Dtk_FdtPtr & | inPmi | ) |
Add a pmi inside the file.
[in] | inPmi | : Pmi to add. |
Dtk_ErrorStatus Ugw::WriteReferenceGeometry | ( | const Dtk_BodyPtr & | inRefgeom | ) |
Add a reference geometry into the current node.
[in] | inRefgeom | : reference geometry to Write. |