Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Olympe::SetBBValuePropertyPanel Class Reference

ImGui sub-panel for editing SetBBValue node's variable selection and value. More...

#include <SetBBValuePropertyPanel.h>

+ Collaboration diagram for Olympe::SetBBValuePropertyPanel:

Public Member Functions

 SetBBValuePropertyPanel ()
 
 ~SetBBValuePropertyPanel ()=default
 
 SetBBValuePropertyPanel (const SetBBValuePropertyPanel &)=delete
 
SetBBValuePropertyPaneloperator= (const SetBBValuePropertyPanel &)=delete
 
void SetNodeName (const std::string &name)
 
void SetTemplate (const TaskGraphTemplate *tmpl)
 
void SetBBKey (const std::string &key)
 
const std::string & GetBBKey () const
 
bool IsDirty () const
 
void ClearDirty ()
 
void Render ()
 

Private Member Functions

void RenderTitleSection ()
 
void RenderVariableSelector ()
 
void RenderValueInput ()
 

Private Attributes

std::string m_nodeName
 
std::string m_bbKey
 
const TaskGraphTemplatem_template
 
bool m_dirty = false
 

Detailed Description

ImGui sub-panel for editing SetBBValue node's variable selection and value.

Definition at line 22 of file SetBBValuePropertyPanel.h.

Constructor & Destructor Documentation

◆ SetBBValuePropertyPanel() [1/2]

Olympe::SetBBValuePropertyPanel::SetBBValuePropertyPanel ( )
explicit

Definition at line 12 of file SetBBValuePropertyPanel.cpp.

◆ ~SetBBValuePropertyPanel()

Olympe::SetBBValuePropertyPanel::~SetBBValuePropertyPanel ( )
default

◆ SetBBValuePropertyPanel() [2/2]

Olympe::SetBBValuePropertyPanel::SetBBValuePropertyPanel ( const SetBBValuePropertyPanel )
delete

Member Function Documentation

◆ ClearDirty()

void Olympe::SetBBValuePropertyPanel::ClearDirty ( )
inline

Definition at line 44 of file SetBBValuePropertyPanel.h.

References m_dirty.

◆ GetBBKey()

const std::string & Olympe::SetBBValuePropertyPanel::GetBBKey ( ) const

Definition at line 32 of file SetBBValuePropertyPanel.cpp.

References m_bbKey.

◆ IsDirty()

bool Olympe::SetBBValuePropertyPanel::IsDirty ( ) const
inline

Definition at line 43 of file SetBBValuePropertyPanel.h.

References m_dirty.

◆ operator=()

SetBBValuePropertyPanel & Olympe::SetBBValuePropertyPanel::operator= ( const SetBBValuePropertyPanel )
delete

◆ Render()

void Olympe::SetBBValuePropertyPanel::Render ( )

Definition at line 37 of file SetBBValuePropertyPanel.cpp.

References RenderTitleSection(), RenderValueInput(), and RenderVariableSelector().

+ Here is the call graph for this function:

◆ RenderTitleSection()

void Olympe::SetBBValuePropertyPanel::RenderTitleSection ( )
private

Definition at line 48 of file SetBBValuePropertyPanel.cpp.

References GetComponentTypeID_Static(), and m_nodeName.

Referenced by Render().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RenderValueInput()

void Olympe::SetBBValuePropertyPanel::RenderValueInput ( )
private

Definition at line 99 of file SetBBValuePropertyPanel.cpp.

References Olympe::TaskGraphTemplate::Blackboard, Olympe::Bool, Olympe::Float, GetComponentTypeID_Static(), Olympe::Int, m_bbKey, m_template, Olympe::String, and Olympe::Vector.

Referenced by Render().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RenderVariableSelector()

void Olympe::SetBBValuePropertyPanel::RenderVariableSelector ( )
private

Definition at line 55 of file SetBBValuePropertyPanel.cpp.

References GetComponentTypeID_Static(), Olympe::BBVariableRegistry::LoadFromTemplate(), m_bbKey, m_dirty, m_template, and Olympe::VarSpec::name.

Referenced by Render().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetBBKey()

void Olympe::SetBBValuePropertyPanel::SetBBKey ( const std::string &  key)

Definition at line 27 of file SetBBValuePropertyPanel.cpp.

References GetComponentTypeID_Static(), and m_bbKey.

+ Here is the call graph for this function:

◆ SetNodeName()

void Olympe::SetBBValuePropertyPanel::SetNodeName ( const std::string &  name)

Definition at line 17 of file SetBBValuePropertyPanel.cpp.

References m_nodeName.

◆ SetTemplate()

void Olympe::SetBBValuePropertyPanel::SetTemplate ( const TaskGraphTemplate tmpl)

Definition at line 22 of file SetBBValuePropertyPanel.cpp.

References GetComponentTypeID_Static(), and m_template.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_bbKey

std::string Olympe::SetBBValuePropertyPanel::m_bbKey
private

◆ m_dirty

bool Olympe::SetBBValuePropertyPanel::m_dirty = false
private

Definition at line 61 of file SetBBValuePropertyPanel.h.

Referenced by ClearDirty(), IsDirty(), and RenderVariableSelector().

◆ m_nodeName

std::string Olympe::SetBBValuePropertyPanel::m_nodeName
private

Definition at line 58 of file SetBBValuePropertyPanel.h.

Referenced by RenderTitleSection(), and SetNodeName().

◆ m_template

const TaskGraphTemplate* Olympe::SetBBValuePropertyPanel::m_template
private

Definition at line 60 of file SetBBValuePropertyPanel.h.

Referenced by RenderValueInput(), RenderVariableSelector(), and SetTemplate().


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