DATAKIT SDK  V2026.2
Dtk_LayerInfosSet::Layer Struct Reference

Public Types

enum  Status { Status::Visible = 1, Status::Selectable = 2 }
 

Public Member Functions

void FlagAs (Status in)
 
Dtk_ID GetFatherID () const
 
Dtk_ID GetID () const
 
Dtk_string constGetName () const
 
bool IsFlaggedAs (Status in) const
 
 Layer ()
 
 Layer (Dtk_ID id, Dtk_string name=Dtk_string(), Dtk_ID fatherID=static_cast< Dtk_ID >(-1))
 
void Unflag (Status in)
 

Protected Attributes

Dtk_ID m_FatherID
 
Dtk_ID m_ID
 
Dtk_string m_Name
 
Dtk_UShort16 m_Status
 

Member Enumeration Documentation

◆ Status

Enumerator
Visible 
Selectable 
521  {
522  Visible = 1,//Describes the layer elements visibility : if set, the elements in the layer are visible, otherwise they are invisible.
523  Selectable = 2,//Describes the layer elements selectability: if set, the elements in the layer are selectable, otherwise they aren't.
524  };

Constructor & Destructor Documentation

◆ Layer() [1/2]

Dtk_LayerInfosSet::Layer::Layer ( )
534  : m_Name(), m_ID( static_cast< Dtk_ID >( -1 ) ), m_FatherID( static_cast< Dtk_ID >( -1 ) ), m_Status( 0 )
535  {
538  }

◆ Layer() [2/2]

Dtk_LayerInfosSet::Layer::Layer ( Dtk_ID  id,
Dtk_string  name = Dtk_string(),
Dtk_ID  fatherID = static_cast< Dtk_ID >( -1 ) 
)
539  : m_Name( std::move( name ) ), m_ID( id ), m_FatherID( fatherID ), m_Status( 0 )
540  {
543  }

Member Function Documentation

◆ FlagAs()

void Dtk_LayerInfosSet::Layer::FlagAs ( Status  in)
548 { m_Status |= 1 << static_cast< Dtk_UShort16 >( in ); }

◆ GetFatherID()

Dtk_ID Dtk_LayerInfosSet::Layer::GetFatherID ( ) const
546 { return m_FatherID; };

◆ GetID()

Dtk_ID Dtk_LayerInfosSet::Layer::GetID ( ) const
545 { return m_ID; };

◆ GetName()

Dtk_string const& Dtk_LayerInfosSet::Layer::GetName ( ) const
544 { return m_Name; };

◆ IsFlaggedAs()

bool Dtk_LayerInfosSet::Layer::IsFlaggedAs ( Status  in) const
547 { return m_Status & 1 << static_cast< Dtk_UShort16 >( in ); }

◆ Unflag()

void Dtk_LayerInfosSet::Layer::Unflag ( Status  in)
549 { m_Status &= ~( 1 << static_cast< Dtk_UShort16 >( in ) ); }

Field Documentation

◆ m_FatherID

Dtk_ID Dtk_LayerInfosSet::Layer::m_FatherID
protected

◆ m_ID

Dtk_ID Dtk_LayerInfosSet::Layer::m_ID
protected

◆ m_Name

Dtk_string Dtk_LayerInfosSet::Layer::m_Name
protected

◆ m_Status

Dtk_UShort16 Dtk_LayerInfosSet::Layer::m_Status
protected
Dtk_ID
uint32_t Dtk_ID
Definition: define.h:681
Dtk_LayerInfosSet::Layer::m_Name
Dtk_string m_Name
Definition: util_ent_dtk.hpp:527
Dtk_LayerInfosSet::Layer::m_Status
Dtk_UShort16 m_Status
Definition: util_ent_dtk.hpp:530
Dtk_LayerInfosSet::Layer::Status::Selectable
@ Selectable
Dtk_UShort16
uint16_t Dtk_UShort16
Definition: define.h:683
Dtk_LayerInfosSet::Layer::Status::Visible
@ Visible
Dtk_LayerInfosSet::Layer::FlagAs
void FlagAs(Status in)
Definition: util_ent_dtk.hpp:548
Dtk_LayerInfosSet::Layer::m_FatherID
Dtk_ID m_FatherID
Definition: util_ent_dtk.hpp:529
Dtk_LayerInfosSet::Layer::m_ID
Dtk_ID m_ID
Definition: util_ent_dtk.hpp:528