DATAKIT API  V2025.1
Attributes sample

You can retrieve attributes for many classes : Dtk_Component, Dtk_Node, Dtk_Body, and all classes inherited from Dtk_Entity ...

/* Get Dtk_InfoPtr class */
Dtk_InfoPtr infos = inNode->GetInfos();
/* BlankedStatus : -1 = undefined, 0 = Visible, 1=Invisible, 2=Construction Geometry */
int NodeBlankedStatus = infos->GetBlankedStatus();
/* Name */
Dtk_string name = infos->GetName();
/* Color RGB */
Dtk_RGB color = infos->GetColor();
/* Layer */
int layer = infos->GetLayer();
/* Render Information (Lights, texture.....) */
Dtk_Info::GetName
Dtk_string GetName() const
Retrieves the entity name.
Dtk_Info::GetBlankedStatus
int GetBlankedStatus() const
Retrieves the entity Blanked Status.
Dtk_string
This is a high level string class.
Definition: dtk_string.hpp:58
Dtk_Info::GetColor
Dtk_RGB GetColor() const
Retrieves the entity color as Dtk_RGBA values.
Dtk_DocElement::GetInfos
Dtk_InfoPtr GetInfos() const
Retrieves the Dtk_DocElement Dtk_InfoPtr - read only -.
Dtk_Info::GetLayer
int GetLayer() const
Retrieves the entity layer.
Dtk_Info::GetRenderInfos
Dtk_RenderInfosPtr GetRenderInfos() const
Retrieves the entity RenderInfos of the entity.
Dtk_SmartPtr< Dtk_Info >
Dtk_DumpXml_Dtk_RenderInfos
Dtk_ErrorStatus Dtk_DumpXml_Dtk_RenderInfos(FILE *F, const Dtk_RenderInfosPtr &inRender)
Definition: util_xml_dtk.cpp:3557
Dtk_RGB
Definition: dtk_rgb.hpp:7