DATAKIT API  V2025.1
Dtk_mesh_asm_node Class Reference

This class gathers asm node related datas.
More...

Public Member Functions

int add_asm_instance (Dtk_mesh_asm_node *inMeshAsm, Dtk_transfo *inTransfo)
 Add an asm instance to the current asm node. More...
 
int add_axis_system (Dtk_AxisSystemPtr inAxisSystem)
 Add an Dtk_AxisSystemPtr in Dtk_mesh_asm_node in the current asm node. More...
 
int add_mesh (Dtk_MeshPtr mesh)
 Add an Dtk_mesh in Dtk_mesh_asm_node in the current asm node. More...
 
int add_mesh_instance (Dtk_mesh_part *inMeshPart, Dtk_transfo *inTransfo)
 Add a mesh instance (a part) to the current asm node. More...
 
int add_wireframe (Dtk_tab< Dtk_mesh_curve * > *inWireframe, Dtk_transfo *matrix)
 Add an Dtk_mesh_curve in Dtk_mesh_asm_node in the current asm node. More...
 
Dtk_status cgrw_ComputeBBs ()
 Compute Bounding Boxes. More...
 
 Dtk_mesh_asm_node ()
 Default constructor. More...
 
Dtk_RGB get_color ()
 get color on Dtk_mesh_asm_node More...
 
int get_id ()
 Get an Id. More...
 
Dtk_mesh_instanceget_instance (int i)
 Return the i-th instance. More...
 
Dtk_MaterialPtr get_material ()
 Get an material. More...
 
Dtk_Size_t get_nb_instances ()
 Return the nb of instances in the current node. More...
 
Dtk_RenderInfosPtr get_render_infos ()
 Get an material. More...
 
void set_color (Dtk_RGB &inColor)
 set color on Dtk_mesh_asm_node More...
 
void set_id (int inId)
 Set an Id. More...
 
void set_material (Dtk_MaterialPtr inMaterial)
 Set an material. More...
 
void set_render_infos (Dtk_RenderInfosPtr inRender)
 Set an render. More...
 
 ~Dtk_mesh_asm_node ()
 Default destructor. More...
 

Data Fields

Dtk_bounding_box BB
 Used to store global computed bounding box. More...
 

Detailed Description

This class gathers asm node related datas.

Constructor & Destructor Documentation

◆ Dtk_mesh_asm_node()

Dtk_mesh_asm_node::Dtk_mesh_asm_node ( )

Default constructor.

◆ ~Dtk_mesh_asm_node()

Dtk_mesh_asm_node::~Dtk_mesh_asm_node ( )

Default destructor.

Member Function Documentation

◆ add_asm_instance()

int Dtk_mesh_asm_node::add_asm_instance ( Dtk_mesh_asm_node inMeshAsm,
Dtk_transfo inTransfo 
)

Add an asm instance to the current asm node.

◆ add_axis_system()

int Dtk_mesh_asm_node::add_axis_system ( Dtk_AxisSystemPtr  inAxisSystem)

Add an Dtk_AxisSystemPtr in Dtk_mesh_asm_node in the current asm node.

◆ add_mesh()

int Dtk_mesh_asm_node::add_mesh ( Dtk_MeshPtr  mesh)

Add an Dtk_mesh in Dtk_mesh_asm_node in the current asm node.

◆ add_mesh_instance()

int Dtk_mesh_asm_node::add_mesh_instance ( Dtk_mesh_part inMeshPart,
Dtk_transfo inTransfo 
)

Add a mesh instance (a part) to the current asm node.

◆ add_wireframe()

int Dtk_mesh_asm_node::add_wireframe ( Dtk_tab< Dtk_mesh_curve * > *  inWireframe,
Dtk_transfo matrix 
)

Add an Dtk_mesh_curve in Dtk_mesh_asm_node in the current asm node.

◆ cgrw_ComputeBBs()

Dtk_status Dtk_mesh_asm_node::cgrw_ComputeBBs ( )

Compute Bounding Boxes.

◆ get_color()

Dtk_RGB Dtk_mesh_asm_node::get_color ( )

get color on Dtk_mesh_asm_node

◆ get_id()

int Dtk_mesh_asm_node::get_id ( )

Get an Id.

◆ get_instance()

Dtk_mesh_instance* Dtk_mesh_asm_node::get_instance ( int  i)

Return the i-th instance.

◆ get_material()

Dtk_MaterialPtr Dtk_mesh_asm_node::get_material ( )

Get an material.

◆ get_nb_instances()

Dtk_Size_t Dtk_mesh_asm_node::get_nb_instances ( )

Return the nb of instances in the current node.

◆ get_render_infos()

Dtk_RenderInfosPtr Dtk_mesh_asm_node::get_render_infos ( )

Get an material.

◆ set_color()

void Dtk_mesh_asm_node::set_color ( Dtk_RGB inColor)

set color on Dtk_mesh_asm_node

◆ set_id()

void Dtk_mesh_asm_node::set_id ( int  inId)

Set an Id.

◆ set_material()

void Dtk_mesh_asm_node::set_material ( Dtk_MaterialPtr  inMaterial)

Set an material.

◆ set_render_infos()

void Dtk_mesh_asm_node::set_render_infos ( Dtk_RenderInfosPtr  inRender)

Set an render.

Field Documentation

◆ BB

Dtk_bounding_box Dtk_mesh_asm_node::BB

Used to store global computed bounding box.