NDEVR
API Documentation
SceneTreeWidget

A container widget that wraps a SceneTree with an optional ribbon toolbar for buttons. More...

Collaboration diagram for SceneTreeWidget:
[legend]

Public Member Functions

 SceneTreeWidget (QTModelManager *manager, QWidget *parent=nullptr)
 Constructs a scene tree widget for the given model manager.
void addButton (Button *button)
 Adds a button to the ribbon toolbar above the tree.
void setShowMaterials (bool visible)
 Sets whether materials are shown as child items in the tree.

Protected Attributes

RibbonSubGroupm_ribbon_group
 The ribbon toolbar above the tree.
SceneTreem_scene_tree
 The scene tree view.

Detailed Description

A container widget that wraps a SceneTree with an optional ribbon toolbar for buttons.


Definition at line 11 of file SceneTreeWidget.h.

Constructor & Destructor Documentation

◆ SceneTreeWidget()

SceneTreeWidget::SceneTreeWidget ( QTModelManager * manager,
QWidget * parent = nullptr )

Constructs a scene tree widget for the given model manager.

Parameters
[in]managerThe model manager to display.
[in]parentThe parent widget.

References SceneTreeWidget().

Referenced by SceneTreeWidget().

Member Function Documentation

◆ addButton()

void SceneTreeWidget::addButton ( Button * button)

Adds a button to the ribbon toolbar above the tree.

Parameters
[in]buttonThe button to add.

◆ setShowMaterials()

void SceneTreeWidget::setShowMaterials ( bool visible)

Sets whether materials are shown as child items in the tree.

Parameters
[in]visibleWhether to show materials.

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