20#include <application.h>
56 using Application::Application;
78 void OnFrame(
float deltaTime)
override;
105 static inline std::array<ImTextureID, 2>
m_InsLogo{
nullptr,
nullptr };
145 { 1.0, 1.0, 1.0, 1.0 },
146 { 1.0, 1.0, 1.0, 0.25 },
147 { 1.0, 1.0, 1.0, 0.25 },
Font size chooser window.
GlobalActions
Possible Global Actions to perform in the GUI.
Abstract parent class for all nodes.
Pins in the GUI for information exchange.
static ImPlotStyle imPlotReferenceStyle
Default style of the ImPlot library to compare changes against.
static float bottomViewHeight
Height of the log viewer.
static float windowFontRatio()
Ratio to multiply for GUI window elements.
static std::array< ImTextureID, 2 > m_InstinctLogo
Pointer to the texture for the instinct logo.
static float leftPaneWidth
Width of the left pane.
static constexpr float SPLITTER_THICKNESS
Thickness of the splitter between left and right pane.
NodeEditorApplication & operator=(const NodeEditorApplication &)=delete
Copy assignment operator.
GlobalActions globalAction
Global action to execute.
bool OnQuitRequest() override
Called when the user request the application to close.
static void ShowRenameNodeRequest(Node *&renameNode)
Shows a PopupModal where the user can rename the node.
static std::vector< ImVec4 > m_colors
Color settings.
static float defaultFontRatio()
Ratio to multiply for default GUI elements.
static bool hideLeftPane
Hide left pane.
static float monoFontRatio()
Ratio to multiply for log output GUI elements.
BottomViewTabItem
Tabs displayed in the bottom view.
@ None
The cross item is selected.
@ LogOutput
The log output item is selected.
static ImTextureID m_RoseFigure
Pointer to the texture for the rose figure (ImuSimulator node)
static std::array< ImTextureID, 2 > m_InsLogo
Pointer to the texture for the INS logo.
void OnStart() override
Called when the application is started.
NodeEditorApplication(NodeEditorApplication &&)=delete
Move constructor.
void ShowSaveAsRequested()
Shows a PopupModel where the user can select a path to save his flow to.
NodeEditorApplication(const NodeEditorApplication &)=delete
Copy constructor.
static bool _showQueueSizeOnPins
Shows the queue size on the pins (every frame the queue mutex will be locked)
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 OnStop() override
Called when the application is stopped.
ImTextureID m_HeaderBackground
Pointer to the texture for the node headers.
static void ShowRenamePinRequest(Pin *&renamePin)
Shows a PopupModal where the user can rename the pin.
NodeEditorApplication()=delete
Default constructor.
void ShowClearNodesRequested()
Shows a PopupModel to clear the current flow.
static std::vector< const char * > m_colorsNames
Color names.
void OnFrame(float deltaTime) override
Called on every frame.
static float rightPaneWidth
Width of the right pane.
static constexpr float BOTTOM_VIEW_COLLAPSED_MIN_HEIGHT
Minimal height of the bottom view if it is collapsed.
static float panelFontRatio()
Ratio to multiply for GUI editor elements.
~NodeEditorApplication() override=default
Destructor.
NodeEditorApplication & operator=(NodeEditorApplication &&)=delete
Move assignment operator.
static constexpr float BOTTOM_VIEW_UNCOLLAPSED_MIN_HEIGHT
Minimal height of the bottom view if it is not collapsed.
static ImTextureID m_SaveButtonImage
Pointer to the texture for the save button.
static bool hideFPS
Hide FPS counter.
int frameCountNavigate
Frame counter to block the navigate to content function till nodes are correctly loaded.
BottomViewTabItem bottomViewSelectedTab
Selected Tab item in the bottom view.
static float headerFontRatio()
Ratio to multiply for node header elements.
Colors
Available color settings.
@ COLOR_GROUP_OUTER_BORDER
Color of the group outer border.
@ COLOR_GROUP_HEADER_BG
Color of the group header background.
@ COLOR_GROUP_HEADER_TEXT
Color of the group header text.
static float menuBarHeight
Height of the menu bar on top.
void ShowFontSizeEditor(bool *show=nullptr)
Shows a window for choosing the font size.