0.2.0
|
Pins in the GUI for information exchange. More...
Classes | |
struct | Kind |
Kind of the Pin (Input/Output) More... | |
struct | Link |
Link between two pins. More... | |
struct | Type |
Type of the data on the Pin. More... | |
Public Member Functions | |
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. | |
Static Public Member Functions | |
static bool | canCreateLink (const OutputPin &startPin, const InputPin &endPin) |
Checks if pins can connect. | |
static bool | dataIdentifierHaveCommon (const std::vector< std::string > &a, const std::vector< std::string > &b) |
Checks if the first list of data identifiers has a common entry with the second. | |
Public Attributes | |
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. | |
Protected Member Functions | |
Pin ()=default | |
Default constructor. | |
Static Protected Member Functions | |
static bool | createLink (OutputPin &startPin, InputPin &endPin, ax::NodeEditor::LinkId linkId=0) |
Create a Link between the two given pins. | |
static void | deleteLink (OutputPin &startPin, InputPin &endPin) |
Disconnects the link. | |
static bool | recreateLink (OutputPin &startPin, InputPin &endPin) |
Destroys and recreates a link from this pin to another. | |
Pins in the GUI for information exchange.
Checks if pins can connect.
[in] | startPin | The start pin to create a link to |
[in] | endPin | The end pin to create a link to |
|
static |
Checks if the first list of data identifiers has a common entry with the second.
[in] | a | First list of data identifiers |
[in] | b | Second list of data identifiers |
void NAV::Pin::drawPinIcon | ( | bool | connected, |
int | alpha ) const |
Draw the Pin Icon.
[in] | connected | Flag if the pin is connected |
[in] | alpha | Alpha value of the pin |
ImColor NAV::Pin::getIconColor | ( | ) | const |
Get the Icon Color object.