Blender
V3.3
|
#include <tree_element_id.hh>
Public Member Functions | |
TreeElementID (TreeElement &legacy_te, ID &id) | |
bool | expandPoll (const SpaceOutliner &) const override |
bool | isExpandValid () const override |
ID & | get_ID () |
![]() | |
virtual | ~AbstractTreeElement ()=default |
TreeElement & | getLegacyElement () |
virtual StringRefNull | getWarning () const |
virtual std::optional< BIFIconID > | getIcon () const |
Static Public Member Functions | |
static std::unique_ptr< TreeElementID > | createFromID (TreeElement &legacy_te, ID &id) |
![]() | |
static std::unique_ptr< AbstractTreeElement > | createFromType (int type, TreeElement &legacy_te, void *idv) |
static void | uncollapse_by_default (TreeElement *legacy_te) |
Protected Member Functions | |
void | expand_animation_data (SpaceOutliner &, const AnimData *) const |
![]() | |
AbstractTreeElement (TreeElement &legacy_te) | |
virtual void | expand (SpaceOutliner &) const |
Protected Attributes | |
ID & | id_ |
![]() | |
TreeElement & | legacy_te_ |
Definition at line 18 of file tree_element_id.hh.
blender::ed::outliner::TreeElementID::TreeElementID | ( | TreeElement & | legacy_te, |
ID & | id | ||
) |
Definition at line 89 of file tree_element_id.cc.
References BLI_assert, GS, TreeElement::idcode, blender::ed::outliner::AbstractTreeElement::legacy_te_, TreeElement::name, TreeElement::store_elem, TSE_IS_REAL_ID, TSE_SOME_ID, and TreeStoreElem::type.
|
static |
Definition at line 28 of file tree_element_id.cc.
References BLI_assert_msg, BLI_assert_unreachable, GS, ID_AC, ID_AR, ID_BR, ID_CA, ID_CF, ID_CU_LEGACY, ID_CV, ID_GD, ID_GR, ID_IM, ID_IP, ID_KE, ID_LA, ID_LI, ID_LP, ID_LS, ID_LT, ID_MA, ID_MB, ID_MC, ID_ME, ID_MSK, ID_NT, ID_OB, ID_PA, ID_PAL, ID_PC, ID_PT, ID_SCE, ID_SCR, ID_SIM, ID_SO, ID_SPK, ID_TE, ID_TXT, ID_TYPE_IS_DEPRECATED, ID_VF, ID_VO, ID_WM, ID_WO, ID_WS, and type.
Referenced by blender::ed::outliner::AbstractTreeElement::createFromType().
|
protected |
Definition at line 106 of file tree_element_id.cc.
References id_, blender::ed::outliner::AbstractTreeElement::legacy_te_, blender::ed::outliner::outliner_add_element(), outliner_animdata_test(), TreeElement::subtree, and TSE_ANIM_DATA.
Referenced by blender::ed::outliner::TreeElementIDScene::expand().
|
overridevirtual |
Check if the type is expandable in current context.
Reimplemented from blender::ed::outliner::AbstractTreeElement.
Definition at line 100 of file tree_element_id.cc.
References SpaceOutliner::filter_id_type, blender::ed::outliner::AbstractTreeElement::legacy_te_, TreeElement::parent, TREESTORE, TSE_ID_BASE, and TreeStoreElem::type.
|
inline |
Definition at line 38 of file tree_element_id.hh.
References id_.
Referenced by outliner_draw_overrides_restrictbuts().
|
inlineoverridevirtual |
Expanding not implemented for all types yet. Once it is, this can be set to true or AbstractTreeElement::expandValid()
can be removed altogether.
Reimplemented from blender::ed::outliner::AbstractTreeElement.
Reimplemented in blender::ed::outliner::TreeElementIDScene, and blender::ed::outliner::TreeElementIDLibrary.
Definition at line 33 of file tree_element_id.hh.
|
protected |
Definition at line 20 of file tree_element_id.hh.
Referenced by expand_animation_data(), get_ID(), and blender::ed::outliner::TreeElementIDLibrary::getWarning().