![]() |
0.3.0
|
Functions | |
void | AddLink (ax::NodeEditor::LinkId linkId) |
Adds the link. | |
void | AddNode (Node *node) |
Add the provided node object to the list of nodes. | |
void | ClearAllNodeQueues () |
Clears all nodes queues. | |
template<std::derived_from< Node > T> | |
InputPin * | CreateInputPin (Node *node, const char *name, Pin::Type pinType, const std::vector< std::string > &dataIdentifier, void(T::*notifyFunc)(const InsTime &, size_t), int idx=-1) |
Create an Input Pin object for data pins. The additional notify function gets called when the connected data was changed and the connected node calls NAV::Node::notifyOutputValueChanged. | |
InputPin * | CreateInputPin (Node *node, const char *name, Pin::Type pinType, const std::vector< std::string > &dataIdentifier={}, InputPin::Callback callback=static_cast< InputPin::FlowFirableCallbackFunc >(nullptr), InputPin::FlowFirableCheckFunc firable=nullptr, int priority=0, int idx=-1) |
Create an Input Pin object. | |
template<std::derived_from< Node > T> | |
InputPin * | CreateInputPin (Node *node, const char *name, Pin::Type pinType, const std::vector< std::string > &dataIdentifier={}, void(T::*callback)(InputPin::NodeDataQueue &, size_t)=nullptr, InputPin::FlowFirableCheckFunc firable=nullptr, int priority=0, int idx=-1) |
Create an Input Pin object. | |
OutputPin * | CreateOutputPin (Node *node, const char *name, Pin::Type pinType, const std::vector< std::string > &dataIdentifier, OutputPin::PinData data=static_cast< void * >(nullptr), int idx=-1) |
Create an Output Pin object. | |
template<std::derived_from< Node > T> | |
OutputPin * | CreateOutputPin (Node *node, const char *name, Pin::Type pinType, const std::vector< std::string > &dataIdentifier, std::shared_ptr< const NAV::NodeData >(T::*peekPollDataFunc)(size_t, bool)=nullptr, int idx=-1) |
Create an Output Pin object for Flow Pins. | |
template<std::derived_from< Node > T> | |
OutputPin * | CreateOutputPin (Node *node, const char *name, Pin::Type pinType, const std::vector< std::string > &dataIdentifier, std::shared_ptr< const NAV::NodeData >(T::*pollDataFunc)()=nullptr, int idx=-1) |
Create an Output Pin object for Flow Pins. | |
void | DeleteAllNodes () |
Delete all nodes. | |
bool | DeleteInputPin (InputPin &pin) |
Deletes the input pin. Invalidates the pin reference given. | |
bool | DeleteNode (ax::NodeEditor::NodeId nodeId) |
Delete the node provided by id. | |
bool | DeleteOutputPin (OutputPin &pin) |
Deletes the output pin. Invalidates the pin reference given. | |
void | DisableAllCallbacks () |
Disables all Node callbacks. | |
void | EnableAllCallbacks () |
Enables all Node callbacks. | |
InputPin * | FindInputPin (ax::NodeEditor::PinId id) |
Finds the Pin for the PinId. | |
Node * | FindNode (ax::NodeEditor::NodeId id) |
Finds the Node for the NodeId. | |
OutputPin * | FindOutputPin (ax::NodeEditor::PinId id) |
Finds the Pin for the PinId. | |
ax::NodeEditor::LinkId | GetNextLinkId () |
Generates a new link id. | |
ax::NodeEditor::NodeId | GetNextNodeId () |
Generates a new node id. | |
ax::NodeEditor::PinId | GetNextPinId () |
Generates a new pin id. | |
bool | InitializeAllNodes () |
Initializes all nodes. | |
void | InitializeAllNodesAsync () |
Initializes all nodes in a separate thread. | |
const std::vector< Node * > & | m_Nodes () |
List of all registered Nodes. | |
void | UpdateNode (Node *node) |
Update the provided node object. | |
Variables | |
bool | showFlowWhenInvokingCallbacks |
Flag if invokeCallbacks triggers a GUI Flow event. | |
bool | showFlowWhenNotifyingValueChange |
Flag if notifyOutputValueChanged & notifyInputValueChanged triggers a GUI Flow event. | |
void NAV::NodeManager::AddLink | ( | ax::NodeEditor::LinkId | linkId | ) |
Adds the link.
[in] | linkId | Unique Id of the link |
Definition at line 171 of file NodeManager.cpp.
void NAV::NodeManager::AddNode | ( | NAV::Node * | node | ) |
Add the provided node object to the list of nodes.
[in] | node | Node object to add to the list |
Definition at line 60 of file NodeManager.cpp.
void NAV::NodeManager::ClearAllNodeQueues | ( | ) |
Clears all nodes queues.
Definition at line 341 of file NodeManager.cpp.
InputPin * NAV::NodeManager::CreateInputPin | ( | Node * | node, |
const char * | name, | ||
Pin::Type | pinType, | ||
const std::vector< std::string > & | dataIdentifier, | ||
void(T::* | notifyFunc )(const InsTime &, size_t), | ||
int | idx = -1 ) |
Create an Input Pin object for data pins. The additional notify function gets called when the connected data was changed and the connected node calls NAV::Node::notifyOutputValueChanged.
T | Node Class where the function is member of |
[in] | node | Node to register the Pin for |
[in] | name | Display name of the Pin |
[in] | pinType | Type of the pin |
[in] | dataIdentifier | Identifier of the data which is represented by the pin |
[in] | notifyFunc | Function to call when the data is updated |
[in] | idx | Index where to put the new pin (-1 means at the end) |
Definition at line 105 of file NodeManager.hpp.
NAV::InputPin * NAV::NodeManager::CreateInputPin | ( | NAV::Node * | node, |
const char * | name, | ||
Pin::Type | pinType, | ||
const std::vector< std::string > & | dataIdentifier = {}, | ||
InputPin::Callback | callback = static_cast<InputPin::FlowFirableCallbackFunc>(nullptr), | ||
InputPin::FlowFirableCheckFunc | firable = nullptr, | ||
int | priority = 0, | ||
int | idx = -1 ) |
Create an Input Pin object.
[in] | node | Node to register the Pin for |
[in] | name | Display name of the Pin |
[in] | pinType | Type of the pin |
[in] | dataIdentifier | Identifier of the data which is represented by the pin |
[in] | callback | Callback to register with the pin |
[in] | firable | Function to check whether the callback is firable |
[in] | priority | Priority when checking firable condition related to other pins (higher priority gets triggered first) |
[in] | idx | Index where to put the new pin (-1 means at the end) |
Definition at line 176 of file NodeManager.cpp.
InputPin * NAV::NodeManager::CreateInputPin | ( | Node * | node, |
const char * | name, | ||
Pin::Type | pinType, | ||
const std::vector< std::string > & | dataIdentifier = {}, | ||
void(T::* | callback )(InputPin::NodeDataQueue &, size_t) = nullptr, | ||
InputPin::FlowFirableCheckFunc | firable = nullptr, | ||
int | priority = 0, | ||
int | idx = -1 ) |
Create an Input Pin object.
T | Node Class where the function is member of |
[in] | node | Node to register the Pin for |
[in] | name | Display name of the Pin |
[in] | pinType | Type of the pin |
[in] | dataIdentifier | Identifier of the data which is represented by the pin |
[in] | callback | Flow firable callback function to register with the pin |
[in] | firable | Function to check whether the callback is firable |
[in] | priority | Priority when checking firable condition related to other pins (higher priority gets triggered first) |
[in] | idx | Index where to put the new pin (-1 means at the end) |
Definition at line 85 of file NodeManager.hpp.
NAV::OutputPin * NAV::NodeManager::CreateOutputPin | ( | NAV::Node * | node, |
const char * | name, | ||
Pin::Type | pinType, | ||
const std::vector< std::string > & | dataIdentifier, | ||
OutputPin::PinData | data = static_cast<void*>(nullptr), | ||
int | idx = -1 ) |
Create an Output Pin object.
[in] | node | Node to register the Pin for |
[in] | name | Display name of the Pin |
[in] | pinType | Type of the pin |
[in] | dataIdentifier | Identifier of the data which is represented by the pin |
[in] | data | Pointer to data which is represented by the pin |
[in] | idx | Index where to put the new pin (-1 means at the end) |
Definition at line 202 of file NodeManager.cpp.
OutputPin * NAV::NodeManager::CreateOutputPin | ( | Node * | node, |
const char * | name, | ||
Pin::Type | pinType, | ||
const std::vector< std::string > & | dataIdentifier, | ||
std::shared_ptr< const NAV::NodeData >(T::* | peekPollDataFunc )(size_t, bool) = nullptr, | ||
int | idx = -1 ) |
Create an Output Pin object for Flow Pins.
T | Class where the function is member of |
[in] | node | Node to register the Pin for |
[in] | name | Display name of the Pin |
[in] | pinType | Type of the pin |
[in] | dataIdentifier | Identifier of the data which is represented by the pin |
[in] | peekPollDataFunc | Function to poll for data on this pin |
[in] | idx | Index where to put the new pin (-1 means at the end) |
Definition at line 133 of file NodeManager.hpp.
OutputPin * NAV::NodeManager::CreateOutputPin | ( | Node * | node, |
const char * | name, | ||
Pin::Type | pinType, | ||
const std::vector< std::string > & | dataIdentifier, | ||
std::shared_ptr< const NAV::NodeData >(T::* | pollDataFunc )() = nullptr, | ||
int | idx = -1 ) |
Create an Output Pin object for Flow Pins.
T | Class where the function is member of |
[in] | node | Node to register the Pin for |
[in] | name | Display name of the Pin |
[in] | pinType | Type of the pin |
[in] | dataIdentifier | Identifier of the data which is represented by the pin |
[in] | pollDataFunc | Function to poll for data on this pin |
[in] | idx | Index where to put the new pin (-1 means at the end) |
Definition at line 154 of file NodeManager.hpp.
void NAV::NodeManager::DeleteAllNodes | ( | ) |
Delete all nodes.
Definition at line 153 of file NodeManager.cpp.
bool NAV::NodeManager::DeleteInputPin | ( | NAV::InputPin & | pin | ) |
Deletes the input pin. Invalidates the pin reference given.
[in,out] | pin | Input Pin to delete |
Definition at line 234 of file NodeManager.cpp.
bool NAV::NodeManager::DeleteNode | ( | ax::NodeEditor::NodeId | nodeId | ) |
Delete the node provided by id.
[in] | nodeId | Unique Id of the Node to delete |
Definition at line 113 of file NodeManager.cpp.
bool NAV::NodeManager::DeleteOutputPin | ( | NAV::OutputPin & | pin | ) |
Deletes the output pin. Invalidates the pin reference given.
[in,out] | pin | Output Pin to delete |
Definition at line 222 of file NodeManager.cpp.
void NAV::NodeManager::DisableAllCallbacks | ( | ) |
Disables all Node callbacks.
Definition at line 332 of file NodeManager.cpp.
void NAV::NodeManager::EnableAllCallbacks | ( | ) |
Enables all Node callbacks.
Definition at line 320 of file NodeManager.cpp.
NAV::InputPin * NAV::NodeManager::FindInputPin | ( | ax::NodeEditor::PinId | id | ) |
Finds the Pin for the PinId.
[in] | id | Unique Id of the Pin to search for |
Definition at line 304 of file NodeManager.cpp.
NAV::Node * NAV::NodeManager::FindNode | ( | ax::NodeEditor::NodeId | id | ) |
Finds the Node for the NodeId.
[in] | id | Unique Id of the Node to search for |
Definition at line 275 of file NodeManager.cpp.
NAV::OutputPin * NAV::NodeManager::FindOutputPin | ( | ax::NodeEditor::PinId | id | ) |
Finds the Pin for the PinId.
[in] | id | Unique Id of the Pin to search for |
Definition at line 288 of file NodeManager.cpp.
ax::NodeEditor::LinkId NAV::NodeManager::GetNextLinkId | ( | ) |
Generates a new link id.
Definition at line 265 of file NodeManager.cpp.
ax::NodeEditor::NodeId NAV::NodeManager::GetNextNodeId | ( | ) |
Generates a new node id.
Definition at line 260 of file NodeManager.cpp.
ax::NodeEditor::PinId NAV::NodeManager::GetNextPinId | ( | ) |
Generates a new pin id.
Definition at line 270 of file NodeManager.cpp.
bool NAV::NodeManager::InitializeAllNodes | ( | ) |
Initializes all nodes.
Definition at line 353 of file NodeManager.cpp.
void NAV::NodeManager::InitializeAllNodesAsync | ( | ) |
Initializes all nodes in a separate thread.
Definition at line 375 of file NodeManager.cpp.
const std::vector< NAV::Node * > & NAV::NodeManager::m_Nodes | ( | ) |
List of all registered Nodes.
Definition at line 55 of file NodeManager.cpp.
void NAV::NodeManager::UpdateNode | ( | Node * | node | ) |
Update the provided node object.
[in] | node | Node object to add to the list |
Definition at line 91 of file NodeManager.cpp.
bool NAV::NodeManager::showFlowWhenInvokingCallbacks |
Flag if invokeCallbacks triggers a GUI Flow event.
Definition at line 42 of file NodeManager.cpp.
bool NAV::NodeManager::showFlowWhenNotifyingValueChange |
Flag if notifyOutputValueChanged & notifyInputValueChanged triggers a GUI Flow event.
Definition at line 43 of file NodeManager.cpp.