Blender
V3.3
|
#include <tree_element_rna.hh>
Public Member Functions | |
TreeElementRNACommon (TreeElement &legacy_te, PointerRNA &rna_ptr) | |
bool | isExpandValid () const override |
bool | expandPoll (const SpaceOutliner &) const override |
const PointerRNA & | getPointerRNA () const |
virtual PropertyRNA * | getPropertyRNA () const |
bool | isRNAValid () const |
![]() | |
virtual | ~AbstractTreeElement ()=default |
TreeElement & | getLegacyElement () |
virtual StringRefNull | getWarning () const |
virtual std::optional< BIFIconID > | getIcon () const |
Protected Attributes | |
PointerRNA | rna_ptr_ |
![]() | |
TreeElement & | legacy_te_ |
Static Protected Attributes | |
constexpr static int | max_index = std::numeric_limits<short>::max() |
Additional Inherited Members | |
![]() | |
static std::unique_ptr< AbstractTreeElement > | createFromType (int type, TreeElement &legacy_te, void *idv) |
static void | uncollapse_by_default (TreeElement *legacy_te) |
![]() | |
AbstractTreeElement (TreeElement &legacy_te) | |
virtual void | expand (SpaceOutliner &) const |
Base class for common behavior of RNA tree elements.
Definition at line 22 of file tree_element_rna.hh.
blender::ed::outliner::TreeElementRNACommon::TreeElementRNACommon | ( | TreeElement & | legacy_te, |
PointerRNA & | rna_ptr | ||
) |
Definition at line 35 of file tree_element_rna.cc.
References IFACE_.
|
overridevirtual |
Check if the type is expandable in current context.
Reimplemented from blender::ed::outliner::AbstractTreeElement.
Definition at line 55 of file tree_element_rna.cc.
References isRNAValid().
const PointerRNA & blender::ed::outliner::TreeElementRNACommon::getPointerRNA | ( | ) | const |
Definition at line 60 of file tree_element_rna.cc.
References rna_ptr_.
Referenced by data_select_linked_fn(), do_outliner_drivers_editop(), do_outliner_keyingset_editop(), outliner_draw_tree_element(), and tree_element_get_icon().
|
virtual |
If this element represents a property or is part of a property (array element), this returns the property. Otherwise nullptr.
Reimplemented in blender::ed::outliner::TreeElementRNAArrayElement, and blender::ed::outliner::TreeElementRNAProperty.
Definition at line 65 of file tree_element_rna.cc.
Referenced by do_outliner_drivers_editop(), and do_outliner_keyingset_editop().
|
overridevirtual |
Just while transitioning to the new tree-element design: Some types are only partially ported, and the expanding isn't done yet.
Reimplemented from blender::ed::outliner::AbstractTreeElement.
Definition at line 45 of file tree_element_rna.cc.
bool blender::ed::outliner::TreeElementRNACommon::isRNAValid | ( | ) | const |
Definition at line 50 of file tree_element_rna.cc.
References PointerRNA::data, and rna_ptr_.
Referenced by expandPoll(), blender::ed::outliner::TreeElementRNAProperty::TreeElementRNAProperty(), and blender::ed::outliner::TreeElementRNAStruct::TreeElementRNAStruct().
|
staticconstexprprotected |
Definition at line 24 of file tree_element_rna.hh.
Referenced by blender::ed::outliner::TreeElementRNAStruct::expand(), and blender::ed::outliner::TreeElementRNAProperty::expand().
|
protected |
Definition at line 25 of file tree_element_rna.hh.
Referenced by blender::ed::outliner::TreeElementRNAStruct::expand(), blender::ed::outliner::TreeElementRNAProperty::expand(), getPointerRNA(), and isRNAValid().