Ocular Engine
Ocular::Editor::MaterialTree Class Reference
Inheritance diagram for Ocular::Editor::MaterialTree:

Public Member Functions

 MaterialTree (QWidget *parent=nullptr)
 
void refresh ()
 

Protected Member Functions

virtual void mousePressEvent (QMouseEvent *event) override
 
void populateTree ()
 
void splitMapping (std::string const &mapping, std::string &path, std::string &name)
 
MaterialTreeItemcreateParent (std::string const &parentPath)
 

Member Function Documentation

void Ocular::Editor::MaterialTree::refresh ( )

Refreshes the list of materials.

void Ocular::Editor::MaterialTree::splitMapping ( std::string const &  mapping,
std::string &  path,
std::string &  name 
)
protected

Splits a material mapping into a path and name. Example:

OcularCore/Materials/Default

Path: OcularCore/Materials
Name: Default

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