|
Blender V4.3
|
Inherits blender::ui::AbstractTreeViewItem.
Inherited by blender::ed::spreadsheet::InstanceReferenceViewItem, and blender::ed::spreadsheet::RootGeometryViewItem.
Definition at line 125 of file spreadsheet_dataset_draw.cc.
| void blender::ed::spreadsheet::InstancesTreeViewItem::get_parent_instance_ids | ( | Vector< SpreadsheetInstanceID > & | r_instance_ids | ) | const |
Definition at line 600 of file spreadsheet_dataset_draw.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::begin(), blender::Vector< T, InlineBufferCapacity, Allocator >::end(), and blender::ui::TreeViewItemContainer::foreach_parent().
Referenced by on_activate(), and should_be_active().
| GeometryInstancesTreeView & blender::ed::spreadsheet::InstancesTreeViewItem::get_tree | ( | ) | const |
Definition at line 595 of file spreadsheet_dataset_draw.cc.
References blender::ui::AbstractTreeViewItem::get_tree_view().
Referenced by should_be_active().
|
overridevirtual |
Called when the view changes an item's state from inactive to active. Will only be called if the state change is triggered through the view, not through external changes. E.g. a click on an item calls it, a change in the value returned by should_be_active() to reflect an external state change does not.
Reimplemented from blender::ui::AbstractViewItem.
Definition at line 634 of file spreadsheet_dataset_draw.cc.
References CTX_wm_space_spreadsheet(), blender::Vector< T, InlineBufferCapacity, Allocator >::data(), get_parent_instance_ids(), blender::initialized_copy_n(), SpaceSpreadsheet::instance_ids, SpaceSpreadsheet::instance_ids_num, MEM_SAFE_FREE, NC_SPACE, ND_SPACE_SPREADSHEET, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), and WM_main_add_notifier().
|
overridevirtual |
If the result is not empty, it controls whether the item should be active or not, usually depending on the data that the view represents. Note that since this is meant to reflect externally managed state changes, on_activate() will never be called if this returns true.
Reimplemented from blender::ui::AbstractViewItem.
Definition at line 614 of file spreadsheet_dataset_draw.cc.
References b, get_parent_instance_ids(), get_tree(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), SpaceSpreadsheet::instance_ids, SpaceSpreadsheet::instance_ids_num, and blender::Vector< T, InlineBufferCapacity, Allocator >::size().