DATAKIT API  V2025.1
Dtk_feat_body Class Reference

Public Member Functions

 Dtk_feat_body ()
 Constructor of a body feature
More...
 
int get_inner_feat_nb (long *)
 Gets the number of direct inner features
More...
 
int get_inner_feat_tab (Dtk_tab< Dtk_FeaturePtr > &)
 Get the body array containing pointers to direct inner features
More...
 
int get_type (DTK_BODY_TYPE *)
 Get the body type (Solid or Surface)
More...
 
int get_visibility (Bool *)
 Get the body Visibility
More...
 
 ~Dtk_feat_body ()
 Destructor of a body feature
More...
 

Data Fields

Dtk_tab< Dtk_FeaturePtrdtk_inner_feat_tab
 
Bool isVisible
 
DTK_BODY_TYPE type
 

Constructor & Destructor Documentation

◆ Dtk_feat_body()

Dtk_feat_body::Dtk_feat_body ( )

Constructor of a body feature

Parameters
[in/out]
[out]<br>
Returns
Allocated body feature
Remarks

◆ ~Dtk_feat_body()

Dtk_feat_body::~Dtk_feat_body ( )

Destructor of a body feature

Parameters
[in]featurebody to destruct
[in/out]
[out]<br>
Returns
Free body
Remarks

Member Function Documentation

◆ get_inner_feat_nb()

int Dtk_feat_body::get_inner_feat_nb ( long *  )

Gets the number of direct inner features

Parameters
[in]Bodyfeature
[in/out]
[out]int
Returns
NOTOK if error, ISOK if ok
Remarks
You need to test the type to get the inner feature

◆ get_inner_feat_tab()

int Dtk_feat_body::get_inner_feat_tab ( Dtk_tab< Dtk_FeaturePtr > &  )

Get the body array containing pointers to direct inner features

Parameters
[in]Body
[in/out]
[out]Dtk_feat**
Returns
NOTOK if error, ISOK if ok
Remarks

◆ get_type()

int Dtk_feat_body::get_type ( DTK_BODY_TYPE )

Get the body type (Solid or Surface)

Parameters
[in]Body
[in/out]
[out]DTK_BODY_TYPE*
Returns
NOTOK if error, ISOK if ok
Remarks

◆ get_visibility()

int Dtk_feat_body::get_visibility ( Bool )

Get the body Visibility

Parameters
[in]Body
[in/out]
[out]Bool*
Returns
NOTOK if error, ISOK if ok
Remarks

Field Documentation

◆ dtk_inner_feat_tab

Dtk_tab<Dtk_FeaturePtr> Dtk_feat_body::dtk_inner_feat_tab

◆ isVisible

Bool Dtk_feat_body::isVisible

◆ type

DTK_BODY_TYPE Dtk_feat_body::type