Deletion of instances and volumes from 3D scene

This commit is contained in:
Enrico Turri 2018-11-14 08:53:56 +01:00
parent 3858fecf0c
commit 3613a54e03
9 changed files with 95 additions and 7 deletions

View file

@ -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