mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 08:17:51 -06:00
Deletion of instances and volumes from 3D scene
This commit is contained in:
parent
3858fecf0c
commit
3613a54e03
9 changed files with 95 additions and 7 deletions
|
@ -27,6 +27,10 @@ struct ItemForDelete
|
|||
ItemType type;
|
||||
int obj_idx;
|
||||
int sub_obj_idx;
|
||||
|
||||
ItemForDelete(ItemType type, int obj_idx, int sub_obj_idx)
|
||||
: type(type), obj_idx(obj_idx), sub_obj_idx(sub_obj_idx)
|
||||
{}
|
||||
};
|
||||
|
||||
class ObjectList : public wxDataViewCtrl
|
||||
|
@ -128,7 +132,7 @@ public:
|
|||
void delete_volume_from_list(const size_t obj_idx, const size_t vol_idx);
|
||||
void delete_instance_from_list(const size_t obj_idx, const size_t inst_idx);
|
||||
void delete_from_model_and_list(const ItemType type, const int obj_idx, const int sub_obj_idx);
|
||||
void delete_from_model_and_list(const std::vector<ItemForDelete> * items_for_delete);
|
||||
void delete_from_model_and_list(const std::vector<ItemForDelete>& items_for_delete);
|
||||
// Delete all objects from the list
|
||||
void delete_all_objects_from_list();
|
||||
// Increase instances count
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue