0.2.0
Loading...
Searching...
No Matches
NAV::gui::widgets::DynamicInputPins Struct Reference

Inputs pins which can be added dynamically. More...

Classes

struct  ExtraColumn
 Information to create extra columns. More...
 

Public Member Functions

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.
 

Detailed Description

Inputs pins which can be added dynamically.

Constructor & Destructor Documentation

◆ 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]firstDynamicPinIndexFirst pin index which is dynamic
[in,out]nodePointer to the calling node (needs to be valid only during construction)
[in]pinAddCallbackFunction to call to add a new pin
[in]pinDeleteCallbackFunction to call to delete a pin
[in]defaultInputPinsDefault value for the input pins

Member Function Documentation

◆ addPin()

void NAV::gui::widgets::DynamicInputPins::addPin ( Node * node)

Adds a pin and call the pinAddCallback.

Parameters
[in,out]nodePointer 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]idUnique id for ImGui.
[in,out]inputPinsInput Pins of the node
[in,out]nodePointer to the calling node
[in]extraColumnsExtra columns to display in the table
Returns
True when changes occurred

The documentation for this struct was generated from the following file: