0.2.0
Loading...
Searching...
No Matches
NAV::gui::NodeEditorApplication Class Reference

Application class providing all relevant GUI callbacks. More...

Public Member Functions

 NodeEditorApplication ()=delete
 Default constructor.
 
 NodeEditorApplication (const NodeEditorApplication &)=delete
 Copy constructor.
 
 NodeEditorApplication (NodeEditorApplication &&)=delete
 Move constructor.
 
void OnFrame (float deltaTime) override
 Called on every frame.
 
bool OnQuitRequest () override
 Called when the user request the application to close.
 
void OnStart () override
 Called when the application is started.
 
void OnStop () override
 Called when the application is stopped.
 
NodeEditorApplicationoperator= (const NodeEditorApplication &)=delete
 Copy assignment operator.
 
NodeEditorApplicationoperator= (NodeEditorApplication &&)=delete
 Move assignment operator.
 
void ShowClearNodesRequested ()
 Shows a PopupModel to clear the current flow.
 
void ShowLoadRequested ()
 Shows a PopupModel loading a new flow.
 
void ShowQuitRequested ()
 Shows a PopupModal asking the user if he wants to quit with unsaved changes.
 
void ShowSaveAsRequested ()
 Shows a PopupModel where the user can select a path to save his flow to.
 
 ~NodeEditorApplication () override=default
 Destructor.
 

Static Public Member Functions

static float defaultFontRatio ()
 Ratio to multiply for default GUI elements.
 
static float headerFontRatio ()
 Ratio to multiply for node header elements.
 
static float monoFontRatio ()
 Ratio to multiply for log output GUI elements.
 
static void ShowRenameNodeRequest (Node *&renameNode)
 Shows a PopupModal where the user can rename the node.
 
static void ShowRenamePinRequest (Pin *&renamePin)
 Shows a PopupModal where the user can rename the pin.
 
static float windowFontRatio ()
 Ratio to multiply for GUI window elements.
 

Public Attributes

int frameCountNavigate
 Frame counter to block the navigate to content function till nodes are correctly loaded.
 

Static Public Attributes

static bool _showQueueSizeOnPins
 Shows the queue size on the pins (every frame the queue mutex will be locked)
 
static ImPlotStyle imPlotReferenceStyle
 Default style of the ImPlot library to compare changes against.
 
static float leftPaneWidth
 Width of the left pane.
 
static std::array< ImTextureID, 2 > m_InsLogo
 Pointer to the texture for the INS logo.
 
static std::array< ImTextureID, 2 > m_InstinctLogo
 Pointer to the texture for the instinct logo.
 
static ImTextureID m_RoseFigure
 Pointer to the texture for the rose figure (ImuSimulator node)
 
static float menuBarHeight
 Height of the menu bar on top.
 
static float rightPaneWidth
 Width of the right pane.
 
static constexpr float SPLITTER_THICKNESS
 Thickness of the splitter between left and right pane.
 

Detailed Description

Application class providing all relevant GUI callbacks.

Member Function Documentation

◆ OnFrame()

void NAV::gui::NodeEditorApplication::OnFrame ( float deltaTime)
override

Called on every frame.

Parameters
[in]deltaTimeTime since last frame

◆ OnQuitRequest()

bool NAV::gui::NodeEditorApplication::OnQuitRequest ( )
override

Called when the user request the application to close.

Checks whether there are unsaved changes and then prompts the user to save them before quit

Returns
True if no unsaved changes

◆ ShowRenameNodeRequest()

static void NAV::gui::NodeEditorApplication::ShowRenameNodeRequest ( Node *& renameNode)
static

Shows a PopupModal where the user can rename the node.

Parameters
[in,out]renameNodePointer to the node to rename. Pointer gets nulled when finished.

◆ ShowRenamePinRequest()

static void NAV::gui::NodeEditorApplication::ShowRenamePinRequest ( Pin *& renamePin)
static

Shows a PopupModal where the user can rename the pin.

Parameters
[in,out]renamePinPointer to the pin to rename. Pointer gets nulled when finished.

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