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

Renders nodes with ImNodes using BT styling. More...

#include <AIEditorNodeRenderer.h>

Static Public Member Functions

static void RenderNode (const NodeGraph::NodeData &nodeData, bool isSelected=false, bool isExecuting=false, const NodeGraph::NodeAnnotation *annotation=nullptr)
 Render a single node with ImNodes.
 
static void RenderNodeTooltip (const NodeGraph::NodeData &nodeData)
 Render node tooltip.
 
static int GetInputPinId (NodeGraph::NodeId nodeId)
 Get pin ID for node input.
 
static int GetOutputPinId (NodeGraph::NodeId nodeId)
 Get pin ID for node output.
 
static int GetChildPinId (NodeGraph::NodeId nodeId, int childIndex)
 Get pin ID for child connection.
 

Detailed Description

Renders nodes with ImNodes using BT styling.

Definition at line 25 of file AIEditorNodeRenderer.h.

Member Function Documentation

◆ GetChildPinId()

int Olympe::AI::AIEditorNodeRenderer::GetChildPinId ( NodeGraph::NodeId  nodeId,
int  childIndex 
)
static

Get pin ID for child connection.

Parameters
nodeIdNode ID
childIndexChild index
Returns
Pin ID for child

Definition at line 172 of file AIEditorNodeRenderer.cpp.

References Olympe::NodeGraph::NodeId::value.

◆ GetInputPinId()

int Olympe::AI::AIEditorNodeRenderer::GetInputPinId ( NodeGraph::NodeId  nodeId)
static

Get pin ID for node input.

Parameters
nodeIdNode ID
Returns
Pin ID for input

Definition at line 162 of file AIEditorNodeRenderer.cpp.

References Olympe::NodeGraph::NodeId::value.

Referenced by RenderNode().

+ Here is the caller graph for this function:

◆ GetOutputPinId()

int Olympe::AI::AIEditorNodeRenderer::GetOutputPinId ( NodeGraph::NodeId  nodeId)
static

Get pin ID for node output.

Parameters
nodeIdNode ID
Returns
Pin ID for output

Definition at line 167 of file AIEditorNodeRenderer.cpp.

References Olympe::NodeGraph::NodeId::value.

Referenced by RenderNode().

+ Here is the caller graph for this function:

◆ RenderNode()

void Olympe::AI::AIEditorNodeRenderer::RenderNode ( const NodeGraph::NodeData nodeData,
bool  isSelected = false,
bool  isExecuting = false,
const NodeGraph::NodeAnnotation annotation = nullptr 
)
static

Render a single node with ImNodes.

Parameters
nodeDataNode data to render
isSelectedWhether node is selected
isExecutingWhether node is currently executing (runtime debug)
annotationOptional annotation for this node (may be nullptr)

Definition at line 22 of file AIEditorNodeRenderer.cpp.

References Olympe::AI::Composite, Olympe::AI::Decorator, Olympe::AI::BTNodeRegistry::Get(), GetComponentTypeID_Static(), GetInputPinId(), GetOutputPinId(), Olympe::NodeGraph::NodeData::id, Olympe::NodeGraph::NodeData::name, Olympe::NodeGraph::NodeData::parameters, Olympe::NodeGraph::NodeData::position, RenderNodeTooltip(), Olympe::NodeGraph::NodeData::type, and Olympe::NodeGraph::NodeId::value.

Referenced by Olympe::AI::AIEditorGUI::RenderNode().

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

◆ RenderNodeTooltip()

void Olympe::AI::AIEditorNodeRenderer::RenderNodeTooltip ( const NodeGraph::NodeData nodeData)
static

Render node tooltip.

Parameters
nodeDataNode data

Definition at line 148 of file AIEditorNodeRenderer.cpp.

References Olympe::AI::BTNodeRegistry::Get(), GetComponentTypeID_Static(), and Olympe::NodeGraph::NodeData::type.

Referenced by RenderNode().

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

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