![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
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. | |
Renders nodes with ImNodes using BT styling.
Definition at line 25 of file AIEditorNodeRenderer.h.
|
static |
Get pin ID for child connection.
| nodeId | Node ID |
| childIndex | Child index |
Definition at line 172 of file AIEditorNodeRenderer.cpp.
References Olympe::NodeGraph::NodeId::value.
|
static |
Get pin ID for node input.
| nodeId | Node ID |
Definition at line 162 of file AIEditorNodeRenderer.cpp.
References Olympe::NodeGraph::NodeId::value.
Referenced by RenderNode().
Here is the caller graph for this function:
|
static |
Get pin ID for node output.
| nodeId | Node ID |
Definition at line 167 of file AIEditorNodeRenderer.cpp.
References Olympe::NodeGraph::NodeId::value.
Referenced by RenderNode().
Here is the caller graph for this function:
|
static |
Render a single node with ImNodes.
| nodeData | Node data to render |
| isSelected | Whether node is selected |
| isExecuting | Whether node is currently executing (runtime debug) |
| annotation | Optional 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:
|
static |
Render node tooltip.
| nodeData | Node 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: