Blender V5.0
blender::ed::outliner::TreeElementIDAction Class Referencefinal

#include <tree_element_id_action.hh>

Inherits blender::ed::outliner::TreeElementID.

Public Member Functions

 TreeElementIDAction (TreeElement &legacy_te, bAction &action)
void expand (SpaceOutliner &space_outliner) const override
Public Member Functions inherited from blender::ed::outliner::TreeElementID
 TreeElementID (TreeElement &legacy_te, ID &id)
bool expand_poll (const SpaceOutliner &) const override
IDget_ID ()
Public Member Functions inherited from blender::ed::outliner::AbstractTreeElement
virtual ~AbstractTreeElement ()=default
TreeElementget_legacy_element ()
virtual StringRefNull get_warning () const
virtual std::optional< BIFIconIDget_icon () const
void print_path ()

Additional Inherited Members

Static Public Member Functions inherited from blender::ed::outliner::TreeElementID
static std::unique_ptr< TreeElementIDcreate_from_id (TreeElement &legacy_te, ID &id)
Static Public Member Functions inherited from blender::ed::outliner::AbstractTreeElement
static std::unique_ptr< AbstractTreeElementcreate_from_type (int type, TreeElement &legacy_te, ID *owner_id, void *create_data)
static void uncollapse_by_default (TreeElement *legacy_te)
Protected Member Functions inherited from blender::ed::outliner::TreeElementID
void expand_animation_data (AnimData *) const
Protected Member Functions inherited from blender::ed::outliner::AbstractTreeElement
 AbstractTreeElement (TreeElement &legacy_te)
TreeElementadd_element (ListBase *lb, ID *owner_id, void *create_data, TreeElement *parent, short type, short index, const bool expand=true) const
Protected Attributes inherited from blender::ed::outliner::TreeElementID
IDid_
Protected Attributes inherited from blender::ed::outliner::AbstractTreeElement
TreeElementlegacy_te_
AbstractTreeDisplaydisplay_

Detailed Description

Definition at line 21 of file tree_element_id_action.hh.

Constructor & Destructor Documentation

◆ TreeElementIDAction()

Member Function Documentation

◆ expand()

void blender::ed::outliner::TreeElementIDAction::expand ( SpaceOutliner & space_outliner) const
overridevirtual

When displaying this tree element in a "flat" tree view (so each Action is only listed once, like in the Blender File outliner mode), this expands to show all the Action's slots Otherwise, when using a data-hierarchical tree view (like Scene or View Layer), only the assigned slot is shown.

Reimplemented from blender::ed::outliner::TreeElementID.

Definition at line 60 of file tree_element_id_action.cc.

References blender::ed::outliner::AbstractTreeElement::add_element(), blender::ed::outliner::AbstractTreeElement::legacy_te_, blender::animrig::Action::slot_for_handle(), blender::animrig::Action::slots(), and TSE_ACTION_SLOT.


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