0.5.0
Loading...
Searching...
No Matches
GroupBox.cpp
Go to the documentation of this file.
1// This file is part of INSTINCT, the INS Toolkit for Integrated
2// Navigation Concepts and Training by the Institute of Navigation of
3// the University of Stuttgart, Germany.
4//
5// This Source Code Form is subject to the terms of the Mozilla Public
6// License, v. 2.0. If a copy of the MPL was not distributed with this
7// file, You can obtain one at https://mozilla.org/MPL/2.0/.
8
9#include "GroupBox.hpp"
10
11#include "util/Logger.hpp"
12
14 : Node(typeStatic())
15{
16 LOG_TRACE("called");
17
19 _hasConfig = false;
20 _size = ImVec2(400, 300);
21}
22
24{
25 LOG_TRACE("called");
26}
27
29{
30 return "GroupBox";
31}
32
33std::string NAV::GroupBox::type() const
34{
35 return typeStatic();
36}
37
39{
40 return "Utility";
41}
42
43[[nodiscard]] json NAV::GroupBox::save() const { return {}; }
44
45void NAV::GroupBox::restore(json const& /* j */) {}
nlohmann::json json
json namespace
Group Box.
Utility class for logging to console and file.
#define LOG_TRACE
Detailled info to trace the execution of the program. Should not be called on functions which receive...
Definition Logger.hpp:65
std::string type() const override
String representation of the Class Type.
Definition GroupBox.cpp:33
GroupBox()
Default constructor.
Definition GroupBox.cpp:13
void restore(const json &j) override
Restores the node from a json object.
Definition GroupBox.cpp:45
~GroupBox() override
Destructor.
Definition GroupBox.cpp:23
static std::string typeStatic()
String representation of the Class Type.
Definition GroupBox.cpp:28
json save() const override
Saves the node into a json object.
Definition GroupBox.cpp:43
static std::string category()
String representation of the Class Category.
Definition GroupBox.cpp:38
ImVec2 _size
Size of the node in pixels.
Definition Node.hpp:448
Node(std::string name)
Constructor.
Definition Node.cpp:30
Kind kind
Kind of the Node.
Definition Node.hpp:393
bool _hasConfig
Flag if the config window should be shown.
Definition Node.hpp:413
@ GroupBox
Group box which can group other nodes and drag them together.
Definition Node.hpp:102