|
Polyphase Game Engine
|
#include <NodeGraph.h>
Public Member Functions | |
| NodeGraph () | |
| ~NodeGraph () | |
| GraphNode * | AddNode (TypeId nodeType) |
| void | RemoveNode (GraphNodeId id) |
| GraphNode * | FindNode (GraphNodeId id) const |
| uint32_t | GetNumNodes () const |
| const std::vector< GraphNode * > & | GetNodes () const |
| GraphLink * | AddLink (GraphPinId outputPinId, GraphPinId inputPinId) |
| void | RemoveLink (GraphLinkId id) |
| GraphLink * | FindLink (GraphLinkId id) const |
| GraphLink * | FindLinkByInputPin (GraphPinId inputPinId) const |
| uint32_t | GetNumLinks () const |
| const std::vector< GraphLink > & | GetLinks () const |
| GraphPin * | FindPin (GraphPinId id) const |
| GraphNode * | FindPinOwner (GraphPinId id) const |
| bool | WouldCreateCycle (GraphNodeId fromNodeId, GraphNodeId toNodeId) const |
| void | SaveStream (Stream &stream) |
| void | LoadStream (Stream &stream, uint32_t version) |
| const std::string & | GetDomainName () const |
| void | SetDomainName (const std::string &name) |
| const std::string & | GetGraphName () const |
| void | SetGraphName (const std::string &name) |
| void | Clear () |
| GraphNodeId | AllocNodeId () |
| GraphPinId | AllocPinId () |
| GraphLinkId | AllocLinkId () |
| void | InsertNode (GraphNode *node) |
| void | CopyFrom (const NodeGraph &other) |
| void | SetOwnerNode (Node *node) |
| Node * | GetOwnerNode () const |
| GraphNode * | FindInputNode (const char *inputName) const |
| bool | SetInputFloat (const char *inputName, float value) |
| bool | SetInputInt (const char *inputName, int32_t value) |
| bool | SetInputBool (const char *inputName, bool value) |
| bool | SetInputString (const char *inputName, const char *value) |
| bool | SetInputVector (const char *inputName, const glm::vec3 &value) |
| bool | SetInputColor (const char *inputName, const glm::vec4 &value) |
| bool | SetInputByte (const char *inputName, uint8_t value) |
| bool | SetInputAsset (const char *inputName, Asset *value) |
| bool | SetInputVector2D (const char *inputName, const glm::vec2 &value) |
| bool | SetInputShort (const char *inputName, int16_t value) |
| bool | SetInputNode (const char *inputName, Node *value) |
| bool | SetInputNode3D (const char *inputName, Node *value) |
| bool | SetInputWidget (const char *inputName, Node *value) |
| bool | SetInputText (const char *inputName, Node *value) |
| bool | SetInputQuad (const char *inputName, Node *value) |
| bool | SetInputAudio3D (const char *inputName, Node *value) |
| bool | SetInputScene (const char *inputName, Asset *value) |
| bool | SetInputSpline3D (const char *inputName, Node *value) |
| GraphNode * | FindOutputNode () const |
| const Datum & | GetOutputValue (uint32_t pinIndex) const |
Public Attributes | |
| std::unordered_set< GraphPinId > | mExecutedPinIds |
| NodeGraph::NodeGraph | ( | ) |
| NodeGraph::~NodeGraph | ( | ) |
| GraphLink * NodeGraph::AddLink | ( | GraphPinId | outputPinId, |
| GraphPinId | inputPinId | ||
| ) |
|
inline |
|
inline |
|
inline |
| void NodeGraph::Clear | ( | ) |
| void NodeGraph::CopyFrom | ( | const NodeGraph & | other | ) |
| GraphNode * NodeGraph::FindInputNode | ( | const char * | inputName | ) | const |
| GraphLink * NodeGraph::FindLink | ( | GraphLinkId | id | ) | const |
| GraphLink * NodeGraph::FindLinkByInputPin | ( | GraphPinId | inputPinId | ) | const |
| GraphNode * NodeGraph::FindNode | ( | GraphNodeId | id | ) | const |
| GraphNode * NodeGraph::FindOutputNode | ( | ) | const |
| GraphPin * NodeGraph::FindPin | ( | GraphPinId | id | ) | const |
| GraphNode * NodeGraph::FindPinOwner | ( | GraphPinId | id | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| const Datum & NodeGraph::GetOutputValue | ( | uint32_t | pinIndex | ) | const |
|
inline |
| void NodeGraph::InsertNode | ( | GraphNode * | node | ) |
| void NodeGraph::LoadStream | ( | Stream & | stream, |
| uint32_t | version | ||
| ) |
| void NodeGraph::RemoveLink | ( | GraphLinkId | id | ) |
| void NodeGraph::RemoveNode | ( | GraphNodeId | id | ) |
| void NodeGraph::SaveStream | ( | Stream & | stream | ) |
|
inline |
|
inline |
| bool NodeGraph::SetInputAsset | ( | const char * | inputName, |
| Asset * | value | ||
| ) |
| bool NodeGraph::SetInputAudio3D | ( | const char * | inputName, |
| Node * | value | ||
| ) |
| bool NodeGraph::SetInputBool | ( | const char * | inputName, |
| bool | value | ||
| ) |
| bool NodeGraph::SetInputByte | ( | const char * | inputName, |
| uint8_t | value | ||
| ) |
| bool NodeGraph::SetInputColor | ( | const char * | inputName, |
| const glm::vec4 & | value | ||
| ) |
| bool NodeGraph::SetInputFloat | ( | const char * | inputName, |
| float | value | ||
| ) |
| bool NodeGraph::SetInputInt | ( | const char * | inputName, |
| int32_t | value | ||
| ) |
| bool NodeGraph::SetInputNode | ( | const char * | inputName, |
| Node * | value | ||
| ) |
| bool NodeGraph::SetInputNode3D | ( | const char * | inputName, |
| Node * | value | ||
| ) |
| bool NodeGraph::SetInputQuad | ( | const char * | inputName, |
| Node * | value | ||
| ) |
| bool NodeGraph::SetInputScene | ( | const char * | inputName, |
| Asset * | value | ||
| ) |
| bool NodeGraph::SetInputShort | ( | const char * | inputName, |
| int16_t | value | ||
| ) |
| bool NodeGraph::SetInputSpline3D | ( | const char * | inputName, |
| Node * | value | ||
| ) |
| bool NodeGraph::SetInputString | ( | const char * | inputName, |
| const char * | value | ||
| ) |
| bool NodeGraph::SetInputText | ( | const char * | inputName, |
| Node * | value | ||
| ) |
| bool NodeGraph::SetInputVector | ( | const char * | inputName, |
| const glm::vec3 & | value | ||
| ) |
| bool NodeGraph::SetInputVector2D | ( | const char * | inputName, |
| const glm::vec2 & | value | ||
| ) |
| bool NodeGraph::SetInputWidget | ( | const char * | inputName, |
| Node * | value | ||
| ) |
|
inline |
| bool NodeGraph::WouldCreateCycle | ( | GraphNodeId | fromNodeId, |
| GraphNodeId | toNodeId | ||
| ) | const |
| std::unordered_set<GraphPinId> NodeGraph::mExecutedPinIds |