Developer Documentation
ScriptSettingsBoolean.hh
1
#ifndef SCRIPTSETTINGSBOOLEAN_HH
2
#define SCRIPTSETTINGSBOOLEAN_HH
3
4
#include <QObject>
5
#include "ScriptSettings.hh"
6
7
#include "Widgets/BooleanWidget.hh"
8
#include "ACG/Math/VectorT.hh"
9
#include "
OpenFlipper/common/DataTypes.hh
"
10
11
class
ScriptSettingsBoolean
:
public
ScriptSettings
{
12
Q_OBJECT
13
// We use Vector4 instead of a proper color type as those are not (yet)
14
// exposed to the scripting environment.
15
Q_PROPERTY(
Vector4
colorTrue READ colorTrue WRITE setColorTrue )
16
Q_PROPERTY(
Vector4
colorFalse READ colorFalse WRITE setColorFalse)
17
public
:
18
explicit
ScriptSettingsBoolean
();
19
explicit
ScriptSettingsBoolean
(
BooleanWidget
*widget);
20
explicit
ScriptSettingsBoolean
(
const
ScriptSettingsBoolean
&other);
21
virtual
~
ScriptSettingsBoolean
();
22
23
const
Vector4
colorTrue()
const
;
24
const
Vector4
colorFalse()
const
;
25
public
slots:
26
void
setColorTrue (
const
Vector4
&color);
27
void
setColorFalse(
const
Vector4
&color);
28
29
private
:
30
BooleanWidget
*widget_;
31
};
32
Q_DECLARE_METATYPE(
ScriptSettingsBoolean
)
33
34
35
#endif // SCRIPTSETTINGSBOOLEAN_HH
DataTypes.hh
ScriptSettings
Definition:
ScriptSettings.hh:10
BooleanWidget
Definition:
BooleanWidget.hh:46
OpenMesh::VectorT
Definition:
Vector11T.hh:83
ScriptSettingsBoolean
Definition:
ScriptSettingsBoolean.hh:11
Plugin-PropertyVis
ScriptObjects
ScriptSettingsBoolean.hh
Generated on Tue Mar 5 2019 16:53:52 for Developer Documentation by
1.8.13