OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::ObjectList::dragged_item_data Struct Reference
Collaboration diagram for Slic3r::GUI::ObjectList::dragged_item_data:

Public Member Functions

void init (const int obj_idx, const int subobj_idx, const ItemType type)
void init (const int obj_idx, const ItemType type)
void clear ()
int obj_idx () const
int sub_obj_idx () const
ItemType type () const
std::set< int > & inst_idxs ()

Private Attributes

int m_obj_idx = -1
int m_vol_idx = -1
std::set< int > m_inst_idxs {}
ItemType m_type = itUndef

Detailed Description

Member Function Documentation

◆ clear()

void Slic3r::GUI::ObjectList::dragged_item_data::clear ( )
inline
157 {
158 m_obj_idx = -1;
159 m_vol_idx = -1;
160 m_inst_idxs.clear();
161 m_type = itUndef;
162 }
@ itUndef
Definition ObjectDataViewModel.hpp:35
int m_obj_idx
Definition GUI_ObjectList.hpp:170
int m_vol_idx
Definition GUI_ObjectList.hpp:171
ItemType m_type
Definition GUI_ObjectList.hpp:173
std::set< int > m_inst_idxs
Definition GUI_ObjectList.hpp:172

References Slic3r::GUI::itUndef, m_inst_idxs, m_obj_idx, m_type, and m_vol_idx.

◆ init() [1/2]

void Slic3r::GUI::ObjectList::dragged_item_data::init ( const int obj_idx,
const int subobj_idx,
const ItemType type )
inline
143 {
145 m_type = type;
146 if (m_type&itVolume)
147 m_vol_idx = subobj_idx;
148 else
149 m_inst_idxs.insert(subobj_idx);
150 }
@ itVolume
Definition ObjectDataViewModel.hpp:38
int obj_idx() const
Definition GUI_ObjectList.hpp:164
ItemType type() const
Definition GUI_ObjectList.hpp:166

References Slic3r::GUI::itVolume, m_inst_idxs, m_obj_idx, m_type, m_vol_idx, obj_idx(), and type().

Here is the call graph for this function:

◆ init() [2/2]

void Slic3r::GUI::ObjectList::dragged_item_data::init ( const int obj_idx,
const ItemType type )
inline
152 {
154 m_type = type;
155 }

References m_obj_idx, m_type, obj_idx(), and type().

Here is the call graph for this function:

◆ inst_idxs()

std::set< int > & Slic3r::GUI::ObjectList::dragged_item_data::inst_idxs ( )
inline
167{ return m_inst_idxs; }

References m_inst_idxs.

◆ obj_idx()

int Slic3r::GUI::ObjectList::dragged_item_data::obj_idx ( ) const
inline
164{ return m_obj_idx; }

References m_obj_idx.

Referenced by init(), and init().

Here is the caller graph for this function:

◆ sub_obj_idx()

int Slic3r::GUI::ObjectList::dragged_item_data::sub_obj_idx ( ) const
inline
165{ return m_vol_idx; }

References m_vol_idx.

◆ type()

ItemType Slic3r::GUI::ObjectList::dragged_item_data::type ( ) const
inline
166{ return m_type; }

References m_type.

Referenced by init(), and init().

Here is the caller graph for this function:

Member Data Documentation

◆ m_inst_idxs

std::set<int> Slic3r::GUI::ObjectList::dragged_item_data::m_inst_idxs {}
private
172{};

Referenced by clear(), init(), and inst_idxs().

◆ m_obj_idx

int Slic3r::GUI::ObjectList::dragged_item_data::m_obj_idx = -1
private

Referenced by clear(), init(), init(), and obj_idx().

◆ m_type

ItemType Slic3r::GUI::ObjectList::dragged_item_data::m_type = itUndef
private

Referenced by clear(), init(), init(), and type().

◆ m_vol_idx

int Slic3r::GUI::ObjectList::dragged_item_data::m_vol_idx = -1
private

Referenced by clear(), init(), and sub_obj_idx().


The documentation for this struct was generated from the following file: