SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
view
UIElementState.h
1
//=========================================================================
2
// Copyright (c) Kitware, Inc.
3
// All rights reserved.
4
// See LICENSE.txt for details.
5
//
6
// This software is distributed WITHOUT ANY WARRANTY; without even
7
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8
// PURPOSE. See the above copyright notice for more information.
9
//=========================================================================
10
11
#ifndef smtk_view_UIElementState_h
12
#define smtk_view_UIElementState_h
13
14
#include "smtk/CoreExports.h"
15
16
#include "smtk/string/Token.h"
17
18
#include "
smtk/SharedFromThis.h
"
19
20
#include "nlohmann/json.hpp"
21
22
namespace
smtk
23
{
24
namespace
view
25
{
26
38
class
SMTKCORE_EXPORT
UIElementState
39
{
40
public
:
41
smtkTypenameMacroBase
(
UIElementState
);
42
48
virtual
smtk::string::Token
elementType()
const
= 0;
49
51
virtual
nlohmann::json configuration() = 0;
52
55
virtual
bool
configure(
const
nlohmann::json& data) = 0;
56
};
57
58
}
// namespace view
59
}
// namespace smtk
60
61
#endif // smtk_view_UIElementState_h
smtk
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition:
doc.h:33
smtk::view::UIElementState
A base class for user interface elements that wish to serialize their state.
Definition:
UIElementState.h:38
smtkTypenameMacroBase
#define smtkTypenameMacroBase(...)
Add typedefs to a class for identifcation.
Definition:
SharedFromThis.h:94
smtk::string::Token
A string token identified by an integer.
Definition:
Token.h:29
SharedFromThis.h
Macros for dealing with shared-pointer classes.
Generated by
1.8.17