Ocular Engine
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
MaterialTreeItem.hpp
1
17
#pragma once
18
#ifndef __H__OCULAR_EDITOR_MATERIAL_TREE_ITEM__H__
19
#define __H__OCULAR_EDITOR_MATERIAL_TREE_ITEM__H__
20
21
#include <QtWidgets/qtreewidget.h>
22
#include "Graphics/Material/Material.hpp"
23
24
//------------------------------------------------------------------------------------------
25
30
namespace
Ocular
31
{
32
namespace
Core
33
{
34
class
SceneObject;
35
}
36
41
namespace
Editor
42
{
43
class
MaterialTree;
44
45
struct
MaterialTreeItemDescriptor
46
{
47
std::string name;
48
std::string path;
49
std::string mapping;
50
51
bool
isMaterial;
52
};
53
58
class
MaterialTreeItem
:
public
QTreeWidgetItem
59
{
60
public
:
61
62
MaterialTreeItem
(
MaterialTree
* parent,
MaterialTreeItemDescriptor
const
& descriptor);
63
MaterialTreeItem
(
MaterialTreeItem
* parent,
MaterialTreeItemDescriptor
const
& descriptor);
64
65
virtual
~
MaterialTreeItem
();
66
67
//------------------------------------------------------------
68
69
MaterialTreeItemDescriptor
const
& getDescriptor()
const
;
70
71
bool
isMaterial()
const
;
72
73
protected
:
74
75
void
buildItem();
76
77
//------------------------------------------------------------
78
79
MaterialTreeItemDescriptor
m_Descriptor;
80
81
private
:
82
};
83
}
87
}
92
//------------------------------------------------------------------------------------------
93
94
#endif
Ocular::Editor::MaterialTreeItemDescriptor
Definition:
MaterialTreeItem.hpp:45
Ocular::Editor::MaterialTree
Definition:
MaterialTree.hpp:44
Ocular
Note: Once this library is made dynamic, this will no longer be needed.
Definition:
Common.hpp:70
Ocular::Editor::MaterialTreeItem
Definition:
MaterialTreeItem.hpp:58
OcularEditor
include
Widgets
MaterialEditor
MaterialTreeItem.hpp
Generated on Tue Oct 18 2016 01:28:56 for Ocular Engine by
1.8.10