OGS
VtkAlgorithmProperties.h File Reference
#include <QList>
#include <QMap>
#include <QObject>
#include <QString>
#include <QVariant>
Include dependency graph for VtkAlgorithmProperties.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  VtkAlgorithmProperties
 Contains properties for the visualization of objects as VtkVisPipelineItems. More...

Macros

#define ogsUserPropertyMacro(name, type)
#define ogsUserVec2PropertyMacro(name, type)
#define ogsUserVec3PropertyMacro(name, type)
#define ogsUserVec4PropertyMacro(name, type)

Macro Definition Documentation

◆ ogsUserPropertyMacro

#define ogsUserPropertyMacro ( name,
type )
Value:
virtual void Set ## name (type _arg) \
{ \
vtkDebugMacro( \
<< this->GetClassName() << " (" << this << "): setting " # name " to " << \
_arg); \
if (this->name != _arg) \
{ \
this->name = _arg; \
this->Modified(); \
(*(this->_algorithmUserProperties))[QString(# name)] = QVariant(_arg); \
} \
} \
\
type name;

Definition at line 18 of file VtkAlgorithmProperties.h.

18#define ogsUserPropertyMacro(name,type) \
19 virtual void Set ## name (type _arg) \
20 { \
21 vtkDebugMacro( \
22 << this->GetClassName() << " (" << this << "): setting " # name " to " << \
23 _arg); \
24 if (this->name != _arg) \
25 { \
26 this->name = _arg; \
27 this->Modified(); \
28 (*(this->_algorithmUserProperties))[QString(# name)] = QVariant(_arg); \
29 } \
30 } \
31\
32 type name;

◆ ogsUserVec2PropertyMacro

#define ogsUserVec2PropertyMacro ( name,
type )
Value:
virtual void Set ## name (type _arg1, type _arg2) \
{ \
vtkDebugMacro( \
<< this->GetClassName() << " (" << this << "): setting " << \
# name " to (" << \
_arg1 << "," << _arg2 << ")"); \
if ((this->name[0] != _arg1) || (this->name[1] != _arg2)) \
{ \
this->name[0] = _arg1; \
this->name[1] = _arg2; \
this->Modified(); \
QList<QVariant> list; \
list.push_back(QVariant(_arg1)); \
list.push_back(QVariant(_arg2)); \
(*(this->_algorithmUserVectorProperties))[QString(# name)] = list; \
} \
} \
\
virtual void Set ## name (type _arg[2]) \
{ \
this->Set ## name (_arg[0], _arg[1]); \
} \
\
type name[2];

Definition at line 35 of file VtkAlgorithmProperties.h.

35#define ogsUserVec2PropertyMacro(name,type) \
36 virtual void Set ## name (type _arg1, type _arg2) \
37 { \
38 vtkDebugMacro( \
39 << this->GetClassName() << " (" << this << "): setting " << \
40 # name " to (" << \
41 _arg1 << "," << _arg2 << ")"); \
42 if ((this->name[0] != _arg1) || (this->name[1] != _arg2)) \
43 { \
44 this->name[0] = _arg1; \
45 this->name[1] = _arg2; \
46 this->Modified(); \
47 QList<QVariant> list; \
48 list.push_back(QVariant(_arg1)); \
49 list.push_back(QVariant(_arg2)); \
50 (*(this->_algorithmUserVectorProperties))[QString(# name)] = list; \
51 } \
52 } \
53\
54 virtual void Set ## name (type _arg[2]) \
55 { \
56 this->Set ## name (_arg[0], _arg[1]); \
57 } \
58\
59 type name[2];

◆ ogsUserVec3PropertyMacro

#define ogsUserVec3PropertyMacro ( name,
type )
Value:
virtual void Set ## name (type _arg1, type _arg2, type _arg3) \
{ \
vtkDebugMacro( \
<< this->GetClassName() << " (" << this << "): setting " << \
# name " to (" << \
_arg1 << "," << _arg2 << "," << _arg3 << ")"); \
if ((this->name[0] != _arg1) || (this->name[1] != _arg2) || (this->name[2] != _arg3)) \
{ \
this->name[0] = _arg1; \
this->name[1] = _arg2; \
this->name[2] = _arg3; \
this->Modified(); \
QList<QVariant> list; \
list.push_back(QVariant(_arg1)); \
list.push_back(QVariant(_arg2)); \
list.push_back(QVariant(_arg3)); \
(*(this->_algorithmUserVectorProperties))[QString(# name)] = list; \
} \
} \
\
virtual void Set ## name (type _arg[3]) \
{ \
this->Set ## name (_arg[0], _arg[1], _arg[2]); \
} \
\
type name[3];

Definition at line 62 of file VtkAlgorithmProperties.h.

62#define ogsUserVec3PropertyMacro(name,type) \
63 virtual void Set ## name (type _arg1, type _arg2, type _arg3) \
64 { \
65 vtkDebugMacro( \
66 << this->GetClassName() << " (" << this << "): setting " << \
67 # name " to (" << \
68 _arg1 << "," << _arg2 << "," << _arg3 << ")"); \
69 if ((this->name[0] != _arg1) || (this->name[1] != _arg2) || (this->name[2] != _arg3)) \
70 { \
71 this->name[0] = _arg1; \
72 this->name[1] = _arg2; \
73 this->name[2] = _arg3; \
74 this->Modified(); \
75 QList<QVariant> list; \
76 list.push_back(QVariant(_arg1)); \
77 list.push_back(QVariant(_arg2)); \
78 list.push_back(QVariant(_arg3)); \
79 (*(this->_algorithmUserVectorProperties))[QString(# name)] = list; \
80 } \
81 } \
82\
83 virtual void Set ## name (type _arg[3]) \
84 { \
85 this->Set ## name (_arg[0], _arg[1], _arg[2]); \
86 } \
87\
88 type name[3];

◆ ogsUserVec4PropertyMacro

#define ogsUserVec4PropertyMacro ( name,
type )
Value:
virtual void Set ## name (type _arg1, type _arg2, type _arg3, type _arg4) \
{ \
vtkDebugMacro( \
<< this->GetClassName() << " (" << this << "): setting " << \
# name " to (" << \
_arg1 << "," << _arg2 << "," << _arg3 << "," << _arg4 << ")"); \
if ((this->name[0] != _arg1) || (this->name[1] != _arg2) || \
(this->name[2] != _arg3) || (this->name[3] != _arg4)) \
{ \
this->name[0] = _arg1; \
this->name[1] = _arg2; \
this->name[2] = _arg3; \
this->name[3] = _arg4; \
this->Modified(); \
QList<QVariant> list; \
list.push_back(QVariant(_arg1)); \
list.push_back(QVariant(_arg2)); \
list.push_back(QVariant(_arg3)); \
list.push_back(QVariant(_arg4)); \
(*(this->_algorithmUserVectorProperties))[QString(# name)] = list; \
} \
} \
\
virtual void Set ## name (type _arg[4]) \
{ \
this->Set ## name (_arg[0], _arg[1], _arg[2], _arg[3]); \
} \
\
type name[4];

Definition at line 91 of file VtkAlgorithmProperties.h.

91#define ogsUserVec4PropertyMacro(name,type) \
92 virtual void Set ## name (type _arg1, type _arg2, type _arg3, type _arg4) \
93 { \
94 vtkDebugMacro( \
95 << this->GetClassName() << " (" << this << "): setting " << \
96 # name " to (" << \
97 _arg1 << "," << _arg2 << "," << _arg3 << "," << _arg4 << ")"); \
98 if ((this->name[0] != _arg1) || (this->name[1] != _arg2) || \
99 (this->name[2] != _arg3) || (this->name[3] != _arg4)) \
100 { \
101 this->name[0] = _arg1; \
102 this->name[1] = _arg2; \
103 this->name[2] = _arg3; \
104 this->name[3] = _arg4; \
105 this->Modified(); \
106 QList<QVariant> list; \
107 list.push_back(QVariant(_arg1)); \
108 list.push_back(QVariant(_arg2)); \
109 list.push_back(QVariant(_arg3)); \
110 list.push_back(QVariant(_arg4)); \
111 (*(this->_algorithmUserVectorProperties))[QString(# name)] = list; \
112 } \
113 } \
114\
115 virtual void Set ## name (type _arg[4]) \
116 { \
117 this->Set ## name (_arg[0], _arg[1], _arg[2], _arg[3]); \
118 } \
119\
120 type name[4];