Ocular Engine
Ocular::Editor::SceneTree Class Reference
Inheritance diagram for Ocular::Editor::SceneTree:
Ocular::Core::AEventListener

Public Member Functions

 SceneTree (QWidget *parent=nullptr)
 
virtual QSize sizeHint () const override
 
void update ()
 
SceneTreeItemgetItem (Core::SceneObject *object)
 
SceneTreeItemgetItem (Core::UUID const &uuid)
 
void addObject (Core::SceneObject *object)
 
void removeObject (Core::UUID const &uuid)
 
void selectObject (Core::SceneObject *object)
 
void selectObject (Core::UUID const &uuid)
 

Protected Member Functions

virtual void mousePressEvent (QMouseEvent *event) override
 
virtual void mouseDoubleClickEvent (QMouseEvent *event) override
 
virtual void dropEvent (QDropEvent *event) override
 
virtual bool onEvent (std::shared_ptr< Core::AEvent > event) override
 
bool isObjectTracked (Core::SceneObject *object)
 
void createObject (std::string const &type, Core::SceneObject *parent)
 
uint32_t getItemDepth (QTreeWidgetItem *item) const
 
- Protected Member Functions inherited from Ocular::Core::AEventListener
virtual bool onEvent (std::shared_ptr< AEvent > event)=0
 

Member Function Documentation

SceneTreeItem * Ocular::Editor::SceneTree::getItem ( Core::SceneObject object)

Retrieves the item representing the specified SceneObject.

Parameters
[in]object
Returns
NULL if no matching item was found
SceneTreeItem * Ocular::Editor::SceneTree::getItem ( Core::UUID const &  uuid)

Retrieves the item representing the SceneObject with the specified UUID.

Parameters
[in]uuid
Returns
NULL if no matching item was found
void Ocular::Editor::SceneTree::selectObject ( Core::SceneObject object)

Selects the specified SceneObject in the tree.

Parameters
[in]objectSceneObject to select. If NULL, selection is cleared.
void Ocular::Editor::SceneTree::selectObject ( Core::UUID const &  uuid)

Selects the specified SceneObject in the tree.

Parameters
[in]uuid
void Ocular::Editor::SceneTree::update ( )

Updates the SceneTree widget


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