Blender V5.3
blender::ui::bonecollections::BoneCollectionTreeView Class Reference

Inherits blender::ui::AbstractTreeView.

Public Member Functions

 BoneCollectionTreeView (bArmature &armature, Object *armature_object)
void build_tree () override
bool listen (const wmNotifier &notifier) const override
Public Member Functions inherited from blender::ui::AbstractTreeView
 ~AbstractTreeView () override=default
void draw_overlays (const ARegion &region, const Block &block) const override
void foreach_item (ItemIterFn iter_fn, IterOptions options=IterOptions::None) const
void foreach_root_item (ItemIterFn iter_fn) const
bool is_fully_visible () const override
void scroll (ViewScrollDirection direction) override
void set_default_rows (int default_rows)
TreeViewSortOrder invert_sort_type_get () const
void scroll_active_into_view (bContext *C, bool scroll_active_to_center=false) override
Public Member Functions inherited from blender::ui::AbstractView
virtual ~AbstractView ()=default
void register_item (AbstractViewItem &item)
virtual std::unique_ptr< DropTargetInterface > create_drop_target ()
virtual bool begin_filtering (const bContext &C) const
bool is_renaming () const
bool begin_renaming ()
void end_renaming ()
Span< char > get_rename_buffer () const
MutableSpan< char > get_rename_buffer ()
std::optional< rcti > get_bounds () const
std::string get_context_menu_title () const
void set_context_menu_title (const std::string &title)
bool get_popup_keep_open () const
void set_popup_keep_open ()
void clear_search_highlight ()
void allow_multiselect_items ()
bool is_multiselect_supported () const
Public Member Functions inherited from blender::ui::TreeViewItemContainer
template<class ItemT, typename... Args>
ItemT & add_tree_item (Args &&...args)
AbstractTreeViewItem & add_tree_item (std::unique_ptr< AbstractTreeViewItem > item)

Protected Attributes

bArmature & armature_
Object * armature_object_
Set< BoneCollection * > bcolls_with_selected_bones_
Protected Attributes inherited from blender::ui::TreeViewItemContainer
Vector< std::unique_ptr< AbstractTreeViewItem > > children_
TreeViewItemContainer * root_ = nullptr
AbstractTreeViewItem * parent_ = nullptr
bool is_flat_ = false

Additional Inherited Members

Public Types inherited from blender::ui::TreeViewItemContainer
enum class  IterOptions { None = 0 , SkipCollapsed = 1 << 0 , SkipFiltered = 1 << 1 }
using ItemIterFn = FunctionRef<void(AbstractTreeViewItem &)>
Protected Member Functions inherited from blender::ui::AbstractTreeView
std::optional< uiViewState > persistent_state () const override
void persistent_state_apply (const uiViewState &state) override
Protected Member Functions inherited from blender::ui::AbstractView
 AbstractView ()=default
virtual void change_state_delayed ()
void update_from_old (Block &new_block)
bool is_reconstructed () const
const AbstractViewItem * search_highlight_item () const
void filter (std::optional< StringRef > filter_str)
Protected Member Functions inherited from blender::ui::TreeViewItemContainer
void foreach_item_recursive (ItemIterFn iter_fn, IterOptions options=IterOptions::None) const
void foreach_parent (ItemIterFn iter_fn) const
void sort_alpha ()
void foreach_sort_invert (TreeViewSortOrder order)

Detailed Description

Definition at line 34 of file interface_template_bone_collection_tree.cc.

Constructor & Destructor Documentation

◆ BoneCollectionTreeView()

blender::ui::bonecollections::BoneCollectionTreeView::BoneCollectionTreeView ( bArmature & armature,
Object * armature_object )

armature_object can be a nullptr when the armature is pinned and the active object is not the one using it as data.

Definition at line 385 of file interface_template_bone_collection_tree.cc.

References armature_, and armature_object_.

Member Function Documentation

◆ build_tree()

void blender::ui::bonecollections::BoneCollectionTreeView::build_tree ( )
overridevirtual

◆ listen()

bool blender::ui::bonecollections::BoneCollectionTreeView::listen ( const wmNotifier & notifier) const
overridevirtual

Listen to a notifier, returning true if a redraw is needed.

Reimplemented from blender::ui::AbstractView.

Definition at line 413 of file interface_template_bone_collection_tree.cc.

References blender::wmNotifier::data, and ND_BONE_COLLECTION.

Member Data Documentation

◆ armature_

bArmature& blender::ui::bonecollections::BoneCollectionTreeView::armature_
protected

◆ armature_object_

Object* blender::ui::bonecollections::BoneCollectionTreeView::armature_object_
protected

Definition at line 37 of file interface_template_bone_collection_tree.cc.

Referenced by BoneCollectionTreeView().

◆ bcolls_with_selected_bones_

Set<BoneCollection *> blender::ui::bonecollections::BoneCollectionTreeView::bcolls_with_selected_bones_
protected

Definition at line 38 of file interface_template_bone_collection_tree.cc.


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