Input pins of nodes.
More...
|
bool | canCreateLink (const OutputPin &other) const |
| Checks if this pin can connect to the provided pin.
|
|
bool | createLink (OutputPin &startPin, ax::NodeEditor::LinkId linkId=0) |
| Creates a link from this pin to another, calling all node specific callbacks.
|
|
void | deleteLink () |
| Disconnects the link.
|
|
| InputPin ()=default |
| Default constructor (for serialization)
|
|
| InputPin (ax::NodeEditor::PinId id, const char *name, Type type, Node *parentNode) |
| Constructor.
|
|
| InputPin (const InputPin &)=delete |
| Copy constructor.
|
|
| InputPin (InputPin &&other) noexcept |
| Move constructor.
|
|
bool | isPinLinked () const |
| Checks if the pin is linked.
|
|
InputPin & | operator= (const InputPin &)=delete |
| Copy assignment operator.
|
|
InputPin & | operator= (InputPin &&other) noexcept |
| Move assignment operator.
|
|
bool | recreateLink (OutputPin &startPin) |
| Destroys and recreates a link from this pin to another.
|
|
| ~InputPin ()=default |
| Destructor.
|
|
void | drawPinIcon (bool connected, int alpha) const |
| Draw the Pin Icon.
|
|
ImColor | getIconColor () const |
| Get the Icon Color object.
|
|
| Pin (ax::NodeEditor::PinId id, const char *name, Type type, Kind kind, Node *parentNode) |
| Constructor.
|
|
|
Callback | callback |
| Callback to call when the node is firable or when it should be notified of data change.
|
|
bool | dropQueueIfNotFirable |
| If true, drops elements from the queue if not firable, otherwise sleeps the worker.
|
|
FlowFirableCheckFunc | firable |
| Function to check if the callback is firable.
|
|
IncomingLink | link |
| Info to identify the linked pin.
|
|
bool | neededForTemporalQueueCheck |
| Whether it should be checked for temporal ordering.
|
|
int | priority |
| Priority when checking firable condition related to other pins (higher priority gets triggered first)
|
|
NodeDataQueue | queue |
| Queue with received data.
|
|
bool | queueBlocked |
| If true no more messages are accepted to the queue.
|
|
std::vector< std::string > | dataIdentifier |
| One or multiple Data Identifiers (Unique name which is used for data flows)
|
|
ax::NodeEditor::PinId | id |
| Unique Id of the Pin.
|
|
Kind | kind |
| Kind of the Pin (Input/Output)
|
|
std::string | name |
| Name of the Pin.
|
|
Node * | parentNode |
| Reference to the parent node.
|
|
Type | type |
| Type of the Pin.
|
|
◆ DataChangedNotifyFunc
Notify function type to call when the connected value changed
- 1st Parameter: Time when the message was received
- 2nd Parameter: Pin index of the pin the data is received on
◆ FlowFirableCallbackFunc
Flow data callback function type to call when firable.
- 1st Parameter: Queue with the received messages
- 2nd Parameter: Pin index of the pin the data is received on
◆ InputPin()
NAV::InputPin::InputPin |
( |
ax::NodeEditor::PinId | id, |
|
|
const char * | name, |
|
|
Type | type, |
|
|
Node * | parentNode ) |
|
inline |
Constructor.
- Parameters
-
[in] | id | Unique Id of the Pin |
[in] | name | Name of the Pin |
[in] | type | Type of the Pin |
[in] | parentNode | Reference to the parent node |
◆ canCreateLink()
bool NAV::InputPin::canCreateLink |
( |
const OutputPin & | other | ) |
const |
Checks if this pin can connect to the provided pin.
- Parameters
-
[in] | other | The pin to create a link to |
- Returns
- True if it can create a link
◆ createLink()
bool NAV::InputPin::createLink |
( |
OutputPin & | startPin, |
|
|
ax::NodeEditor::LinkId | linkId = 0 ) |
Creates a link from this pin to another, calling all node specific callbacks.
- Parameters
-
[in] | startPin | Pin which should be linked to this pin |
[in] | linkId | Id of the link to create |
- Returns
- True if the link could be created
◆ isPinLinked()
bool NAV::InputPin::isPinLinked |
( |
| ) |
const |
Checks if the pin is linked.
- Returns
- True if a link exists on this pin
◆ recreateLink()
bool NAV::InputPin::recreateLink |
( |
OutputPin & | startPin | ) |
|
Destroys and recreates a link from this pin to another.
- Parameters
-
[in] | startPin | Pin which should be linked to this pin |
- Returns
- True if the link could be created
The documentation for this class was generated from the following file:
- /home/runner/work/INSTINCT/INSTINCT/src/internal/Node/Pin.hpp