|
Blender V5.0
|
Inherits blender::ui::AbstractTreeViewItem.
Inherited by blender::ed::spreadsheet::InstanceReferenceViewItem, and blender::ed::spreadsheet::RootGeometryViewItem.
Definition at line 130 of file spreadsheet_dataset_draw.cc.
| void blender::ed::spreadsheet::InstancesTreeViewItem::get_parent_instance_ids | ( | Vector< SpreadsheetInstanceID > & | r_instance_ids | ) | const |
Definition at line 651 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 646 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 685 of file spreadsheet_dataset_draw.cc.
References C, CTX_wm_space_spreadsheet(), blender::Vector< T, InlineBufferCapacity, Allocator >::data(), SpaceSpreadsheet::geometry_id, get_parent_instance_ids(), blender::initialized_copy_n(), SpreadsheetTableIDGeometry::instance_ids, SpreadsheetTableIDGeometry::instance_ids_num, MEM_calloc_arrayN(), 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 665 of file spreadsheet_dataset_draw.cc.
References b, SpaceSpreadsheet::geometry_id, get_parent_instance_ids(), get_tree(), i, blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), SpreadsheetTableIDGeometry::instance_ids, SpreadsheetTableIDGeometry::instance_ids_num, SpreadsheetInstanceID::reference_index, and blender::Vector< T, InlineBufferCapacity, Allocator >::size().