luna engine
software engine
Loading...
Searching...
No Matches
luna::sceneHierarchyPanel Class Reference

#include <sceneHierarchyPanel.h>

Collaboration diagram for luna::sceneHierarchyPanel:

Public Member Functions

 sceneHierarchyPanel ()=default
 
 sceneHierarchyPanel (const ref< scene > &scene)
 
void setContext (const ref< scene > &scene)
 
void onImGuiRender ()
 
Node getSelectedNode () const
 
void setSelectedNode (Node Node)
 

Private Member Functions

template<typename T >
void displayAddComponentEntry (const std::string &entryName)
 
void drawEntityNode (Node Node, uint32_t indent)
 
void drawComponents (Node Node)
 
void drawNodeSelectionList ()
 
bool addNodeSelection (const std::string &nodeName, objectDB::classInfo *classInfo)
 
void inputText (const std::string &name, std::string &stringBuffer)
 

Private Attributes

uint64_t addIndent = 5
 
scenem_Context
 
Node m_SelectionContext
 
Node m_Selected
 
std::string m_ListSelected = ""
 

Constructor & Destructor Documentation

◆ sceneHierarchyPanel() [1/2]

luna::sceneHierarchyPanel::sceneHierarchyPanel ( )
default

◆ sceneHierarchyPanel() [2/2]

luna::sceneHierarchyPanel::sceneHierarchyPanel ( const ref< scene > &  scene)

Member Function Documentation

◆ addNodeSelection()

bool luna::sceneHierarchyPanel::addNodeSelection ( const std::string &  nodeName,
objectDB::classInfo classInfo 
)
private

◆ displayAddComponentEntry()

template<typename T >
void luna::sceneHierarchyPanel::displayAddComponentEntry ( const std::string &  entryName)
inlineprivate

◆ drawComponents()

void luna::sceneHierarchyPanel::drawComponents ( Node  Node)
private

◆ drawEntityNode()

void luna::sceneHierarchyPanel::drawEntityNode ( Node  Node,
uint32_t  indent 
)
private

◆ drawNodeSelectionList()

void luna::sceneHierarchyPanel::drawNodeSelectionList ( )
private

◆ getSelectedNode()

Node luna::sceneHierarchyPanel::getSelectedNode ( ) const
inline

◆ inputText()

void luna::sceneHierarchyPanel::inputText ( const std::string &  name,
std::string &  stringBuffer 
)
private

◆ onImGuiRender()

void luna::sceneHierarchyPanel::onImGuiRender ( )

◆ setContext()

void luna::sceneHierarchyPanel::setContext ( const ref< scene > &  scene)

◆ setSelectedNode()

void luna::sceneHierarchyPanel::setSelectedNode ( Node  Node)

Member Data Documentation

◆ addIndent

uint64_t luna::sceneHierarchyPanel::addIndent = 5
private

◆ m_Context

scene* luna::sceneHierarchyPanel::m_Context
private

◆ m_ListSelected

std::string luna::sceneHierarchyPanel::m_ListSelected = ""
private

◆ m_Selected

Node luna::sceneHierarchyPanel::m_Selected
private

◆ m_SelectionContext

Node luna::sceneHierarchyPanel::m_SelectionContext
private

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