Inputs pins which can be added dynamically.
More...
|
void | addPin (Node *node) |
| Adds a pin and call the pinAddCallback.
|
|
| DynamicInputPins (size_t firstDynamicPinIndex, Node *node, std::function< void(Node *)> pinAddCallback, std::function< void(Node *, size_t)> pinDeleteCallback, size_t defaultInputPins=0) |
| Constructor.
|
|
size_t | getNumberOfDynamicPins () const |
| Get the number Of dynamic pins.
|
|
bool | ShowGuiWidgets (size_t id, std::vector< InputPin > &inputPins, Node *node, const std::vector< ExtraColumn > &extraColumns={}) |
| Shows the GUI input to select the options.
|
|
Inputs pins which can be added dynamically.
◆ DynamicInputPins()
NAV::gui::widgets::DynamicInputPins::DynamicInputPins |
( |
size_t | firstDynamicPinIndex, |
|
|
Node * | node, |
|
|
std::function< void(Node *)> | pinAddCallback, |
|
|
std::function< void(Node *, size_t)> | pinDeleteCallback, |
|
|
size_t | defaultInputPins = 0 ) |
Constructor.
- Parameters
-
[in] | firstDynamicPinIndex | First pin index which is dynamic |
[in,out] | node | Pointer to the calling node (needs to be valid only during construction) |
[in] | pinAddCallback | Function to call to add a new pin |
[in] | pinDeleteCallback | Function to call to delete a pin |
[in] | defaultInputPins | Default value for the input pins |
◆ addPin()
void NAV::gui::widgets::DynamicInputPins::addPin |
( |
Node * | node | ) |
|
Adds a pin and call the pinAddCallback.
- Parameters
-
[in,out] | node | Pointer to the calling node |
◆ ShowGuiWidgets()
bool NAV::gui::widgets::DynamicInputPins::ShowGuiWidgets |
( |
size_t | id, |
|
|
std::vector< InputPin > & | inputPins, |
|
|
Node * | node, |
|
|
const std::vector< ExtraColumn > & | extraColumns = {} ) |
Shows the GUI input to select the options.
- Parameters
-
[in] | id | Unique id for ImGui. |
[in,out] | inputPins | Input Pins of the node |
[in,out] | node | Pointer to the calling node |
[in] | extraColumns | Extra columns to display in the table |
- Returns
- True when changes occurred
The documentation for this struct was generated from the following file: