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.
|
|
|
void | connect (OutputPin &startPin, ax::NodeEditor::LinkId linkId=0) |
| Connects this pin to another.
|
|
void | disconnect () |
| Disconnects the link.
|
|
Input pins of nodes.
Definition at line 490 of file Pin.hpp.
◆ Callback
◆ 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
Definition at line 716 of file Pin.hpp.
◆ 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
Definition at line 712 of file Pin.hpp.
◆ FlowFirableCheckFunc
Function type to call when checking if a pin is firable.
Definition at line 725 of file Pin.hpp.
◆ NodeDataQueue
◆ InputPin() [1/4]
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 |
Definition at line 498 of file Pin.hpp.
◆ InputPin() [2/4]
NAV::InputPin::InputPin |
( |
| ) |
|
|
default |
Default constructor (for serialization)
◆ ~InputPin()
NAV::InputPin::~InputPin |
( |
| ) |
|
|
default |
◆ InputPin() [3/4]
NAV::InputPin::InputPin |
( |
const InputPin & | | ) |
|
|
delete |
◆ InputPin() [4/4]
NAV::InputPin::InputPin |
( |
InputPin && | other | ) |
|
|
inlinenoexcept |
Move constructor.
Definition at line 508 of file Pin.hpp.
◆ canCreateLink()
bool NAV::InputPin::canCreateLink |
( |
const OutputPin & | other | ) |
const |
|
nodiscard |
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
Definition at line 350 of file Pin.cpp.
◆ connect()
void NAV::InputPin::connect |
( |
NAV::OutputPin & | startPin, |
|
|
ax::NodeEditor::LinkId | linkId = 0 ) |
|
private |
Connects this pin to another.
- Parameters
-
[in] | startPin | Pin which should be linked to this pin |
[in] | linkId | Id of the link to create |
Definition at line 378 of file Pin.cpp.
◆ 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
Definition at line 360 of file Pin.cpp.
◆ deleteLink()
void NAV::InputPin::deleteLink |
( |
| ) |
|
Disconnects the link.
Definition at line 370 of file Pin.cpp.
◆ disconnect()
void NAV::InputPin::disconnect |
( |
| ) |
|
|
private |
Disconnects the link.
Definition at line 414 of file Pin.cpp.
◆ isPinLinked()
bool NAV::InputPin::isPinLinked |
( |
| ) |
const |
|
nodiscard |
Checks if the pin is linked.
- Returns
- True if a link exists on this pin
Definition at line 355 of file Pin.cpp.
◆ operator=() [1/2]
Copy assignment operator.
◆ operator=() [2/2]
Move assignment operator.
Definition at line 522 of file Pin.hpp.
◆ 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
Definition at line 365 of file Pin.cpp.
◆ OutputPin
◆ Pin
◆ callback
Callback to call when the node is firable or when it should be notified of data change.
Definition at line 722 of file Pin.hpp.
◆ dropQueueIfNotFirable
bool NAV::InputPin::dropQueueIfNotFirable |
If true, drops elements from the queue if not firable, otherwise sleeps the worker.
Definition at line 737 of file Pin.hpp.
◆ firable
Function to check if the callback is firable.
Definition at line 728 of file Pin.hpp.
◆ link
Info to identify the linked pin.
Definition at line 704 of file Pin.hpp.
◆ neededForTemporalQueueCheck
bool NAV::InputPin::neededForTemporalQueueCheck |
Whether it should be checked for temporal ordering.
Definition at line 734 of file Pin.hpp.
◆ priority
int NAV::InputPin::priority |
Priority when checking firable condition related to other pins (higher priority gets triggered first)
Definition at line 731 of file Pin.hpp.
◆ queue
Queue with received data.
Definition at line 743 of file Pin.hpp.
◆ queueBlocked
bool NAV::InputPin::queueBlocked |
If true no more messages are accepted to the queue.
Definition at line 740 of file Pin.hpp.
The documentation for this class was generated from the following files:
- /home/runner/work/INSTINCT/INSTINCT/src/internal/Node/Pin.hpp
- /home/runner/work/INSTINCT/INSTINCT/src/internal/Node/Pin.cpp