Blender V5.3
blender::ed::outliner::TreeElementGreasePencilNode Class Referencefinal

#include <tree_element_grease_pencil_node.hh>

Inherits blender::ed::outliner::AbstractTreeElement.

Public Member Functions

 TreeElementGreasePencilNode (TreeElement &legacy_te, GreasePencil &owner_grease_pencil, bke::greasepencil::TreeNode &node)
void expand (SpaceOutliner &) const override
bke::greasepencil::TreeNode & node () const
std::optional< BIFIconID > get_icon () const override
Public Member Functions inherited from blender::ed::outliner::AbstractTreeElement
virtual ~AbstractTreeElement ()=default
virtual bool expand_poll (const SpaceOutliner &) const
TreeElement & get_legacy_element ()
virtual StringRefNull get_warning () const
void print_path ()

Static Public Member Functions

static ID * owner_id (GreasePencil &owner_grease_pencil, bke::greasepencil::TreeNode &node)
Static Public Member Functions inherited from blender::ed::outliner::AbstractTreeElement
static void uncollapse_by_default (TreeElement *legacy_te)

Static Public Attributes

static constexpr eTreeStoreElemType element_type = TSE_GREASE_PENCIL_NODE

Additional Inherited Members

Protected Member Functions inherited from blender::ed::outliner::AbstractTreeElement
 AbstractTreeElement (TreeElement &legacy_te)
template<typename ElementType, typename... Args>
TreeElement * add_element (const TreeElementAddParams &params, Args &&...args) const
TreeElement * add_id_element (const TreeElementAddParams &params, ID *id) const
Protected Attributes inherited from blender::ed::outliner::AbstractTreeElement
TreeElement & legacy_te_
AbstractTreeDisplay * display_

Detailed Description

Definition at line 24 of file tree_element_grease_pencil_node.hh.

Constructor & Destructor Documentation

◆ TreeElementGreasePencilNode()

Member Function Documentation

◆ expand()

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

Let the type add its own children.

Reimplemented from blender::ed::outliner::AbstractTreeElement.

Definition at line 31 of file tree_element_grease_pencil_node.cc.

References blender::ed::outliner::AbstractTreeElement::add_element().

◆ get_icon()

std::optional< BIFIconID > blender::ed::outliner::TreeElementGreasePencilNode::get_icon ( ) const
overridevirtual

Define the icon to be displayed for this element. If this returns an icon, this will be displayed. Otherwise, tree_element_get_icon() may still determine an icon. By default no value is returned (#std::nullopt).

All elements should be ported to use this over tree_element_get_icon().

Reimplemented from blender::ed::outliner::AbstractTreeElement.

Definition at line 54 of file tree_element_grease_pencil_node.cc.

References blender::GreasePencilLayerTreeGroup::color_tag, and blender::LAYERGROUP_COLOR_NONE.

◆ node()

bke::greasepencil::TreeNode & blender::ed::outliner::TreeElementGreasePencilNode::node ( ) const

Definition at line 49 of file tree_element_grease_pencil_node.cc.

Referenced by TreeElementGreasePencilNode().

◆ owner_id()

ID * blender::ed::outliner::TreeElementGreasePencilNode::owner_id ( GreasePencil & owner_grease_pencil,
bke::greasepencil::TreeNode & node )
static

The ID identifying this element in the tree-store, see #AbstractTreeDisplay::add_element().

Definition at line 43 of file tree_element_grease_pencil_node.cc.

Member Data Documentation

◆ element_type

eTreeStoreElemType blender::ed::outliner::TreeElementGreasePencilNode::element_type = TSE_GREASE_PENCIL_NODE
staticconstexpr

Definition at line 29 of file tree_element_grease_pencil_node.hh.


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