BlankMat 0.1.0
Free open-source 3D texture creation application
Loading...
Searching...
No Matches
GUIInspectorWindow Class Reference
Inheritance diagram for GUIInspectorWindow:
Collaboration diagram for GUIInspectorWindow:

Public Member Functions

void Draw () override
 
 GUIInspectorWindow (State *state, Scene *scene, bool isEnabled)
 
- Public Member Functions inherited from IGUIWindow
bool IsEnabled ()
 
void Enable ()
 
void Disable ()
 
bool ToggleEnabled ()
 
GUI GetType ()
 
const std::string GetName ()
 
void SetName (const std::string &name)
 
const glm::vec2 GetPos ()
 
void SetPos (const glm::vec2 &pos)
 

Protected Member Functions

void DisplayMesh (Mesh *element)
 
void DisplayNode (Node *element)
 
void DisplayEntity (IEntity *element)
 
void DisplayLight (Light *element)
 
void DisplayCamera (Camera *element)
 
void DisplayTexture (Texture *element)
 
void DisplayMaterial (Material *element)
 

Static Protected Member Functions

static bool InputName (const std::string &label, const std::string &prevValue, std::string &curValue, Node *node, ImGuiInputTextFlags flags=ImGuiInputTextFlags_None)
 
static bool RenameItem (const std::string &label, IContainer< ISelectable > *container, ISelectable *element, std::string &name)
 

Protected Attributes

StatemState = nullptr
 
ScenemScene = nullptr
 
std::string mSelColor = ""
 
std::string mNameInEdit = ""
 
ISelectablemElementInEdit = nullptr
 
- Protected Attributes inherited from IGUIWindow
GUI mType = GUI::NONE
 
std::string mName = ""
 
glm::vec2 mScreenPos = glm::vec2(0, 0)
 
bool mIsEnabled = true
 

Static Protected Attributes

static const float TEXTURE_SIZE = 256.0f
 
static const std::vector< std::string > TEXTURE_TYPES = { "Diffuse", "Ambient", "Specular", "Normal", "Height", "Alpha" }
 

Constructor & Destructor Documentation

◆ GUIInspectorWindow()

GUIInspectorWindow::GUIInspectorWindow ( State state,
Scene scene,
bool  isEnabled 
)
inline

Member Function Documentation

◆ DisplayCamera()

void GUIInspectorWindow::DisplayCamera ( Camera element)
inlineprotected

◆ DisplayEntity()

void GUIInspectorWindow::DisplayEntity ( IEntity element)
inlineprotected

◆ DisplayLight()

void GUIInspectorWindow::DisplayLight ( Light element)
inlineprotected

◆ DisplayMaterial()

void GUIInspectorWindow::DisplayMaterial ( Material element)
inlineprotected

◆ DisplayMesh()

void GUIInspectorWindow::DisplayMesh ( Mesh element)
inlineprotected

◆ DisplayNode()

void GUIInspectorWindow::DisplayNode ( Node element)
inlineprotected

◆ DisplayTexture()

void GUIInspectorWindow::DisplayTexture ( Texture element)
inlineprotected

◆ Draw()

void GUIInspectorWindow::Draw ( )
inlineoverridevirtual

Implements IGUIWindow.

◆ InputName()

static bool GUIInspectorWindow::InputName ( const std::string &  label,
const std::string &  prevValue,
std::string &  curValue,
Node node,
ImGuiInputTextFlags  flags = ImGuiInputTextFlags_None 
)
inlinestaticprotected

◆ RenameItem()

static bool GUIInspectorWindow::RenameItem ( const std::string &  label,
IContainer< ISelectable > *  container,
ISelectable element,
std::string &  name 
)
inlinestaticprotected

Member Data Documentation

◆ mElementInEdit

ISelectable* GUIInspectorWindow::mElementInEdit = nullptr
protected

◆ mNameInEdit

std::string GUIInspectorWindow::mNameInEdit = ""
protected

◆ mScene

Scene* GUIInspectorWindow::mScene = nullptr
protected

◆ mSelColor

std::string GUIInspectorWindow::mSelColor = ""
protected

◆ mState

State* GUIInspectorWindow::mState = nullptr
protected

◆ TEXTURE_SIZE

const float GUIInspectorWindow::TEXTURE_SIZE = 256.0f
inlinestaticprotected

◆ TEXTURE_TYPES

const std::vector<std::string> GUIInspectorWindow::TEXTURE_TYPES = { "Diffuse", "Ambient", "Specular", "Normal", "Height", "Alpha" }
inlinestaticprotected