OGS
VtkAlgorithmProperties.h File Reference

Detailed Description

Definition of the VtkAlgorithmProperties class.

Author
Karsten Rink
Date
2010-03-23

Definition in file VtkAlgorithmProperties.h.

#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 29 of file VtkAlgorithmProperties.h.

29#define ogsUserPropertyMacro(name,type) \
30 virtual void Set ## name (type _arg) \
31 { \
32 vtkDebugMacro( \
33 << this->GetClassName() << " (" << this << "): setting " # name " to " << \
34 _arg); \
35 if (this->name != _arg) \
36 { \
37 this->name = _arg; \
38 this->Modified(); \
39 (*(this->_algorithmUserProperties))[QString(# name)] = QVariant(_arg); \
40 } \
41 } \
42\
43 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 46 of file VtkAlgorithmProperties.h.

46#define ogsUserVec2PropertyMacro(name,type) \
47 virtual void Set ## name (type _arg1, type _arg2) \
48 { \
49 vtkDebugMacro( \
50 << this->GetClassName() << " (" << this << "): setting " << \
51 # name " to (" << \
52 _arg1 << "," << _arg2 << ")"); \
53 if ((this->name[0] != _arg1) || (this->name[1] != _arg2)) \
54 { \
55 this->name[0] = _arg1; \
56 this->name[1] = _arg2; \
57 this->Modified(); \
58 QList<QVariant> list; \
59 list.push_back(QVariant(_arg1)); \
60 list.push_back(QVariant(_arg2)); \
61 (*(this->_algorithmUserVectorProperties))[QString(# name)] = list; \
62 } \
63 } \
64\
65 virtual void Set ## name (type _arg[2]) \
66 { \
67 this->Set ## name (_arg[0], _arg[1]); \
68 } \
69\
70 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 73 of file VtkAlgorithmProperties.h.

73#define ogsUserVec3PropertyMacro(name,type) \
74 virtual void Set ## name (type _arg1, type _arg2, type _arg3) \
75 { \
76 vtkDebugMacro( \
77 << this->GetClassName() << " (" << this << "): setting " << \
78 # name " to (" << \
79 _arg1 << "," << _arg2 << "," << _arg3 << ")"); \
80 if ((this->name[0] != _arg1) || (this->name[1] != _arg2) || (this->name[2] != _arg3)) \
81 { \
82 this->name[0] = _arg1; \
83 this->name[1] = _arg2; \
84 this->name[2] = _arg3; \
85 this->Modified(); \
86 QList<QVariant> list; \
87 list.push_back(QVariant(_arg1)); \
88 list.push_back(QVariant(_arg2)); \
89 list.push_back(QVariant(_arg3)); \
90 (*(this->_algorithmUserVectorProperties))[QString(# name)] = list; \
91 } \
92 } \
93\
94 virtual void Set ## name (type _arg[3]) \
95 { \
96 this->Set ## name (_arg[0], _arg[1], _arg[2]); \
97 } \
98\
99 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 102 of file VtkAlgorithmProperties.h.

102#define ogsUserVec4PropertyMacro(name,type) \
103 virtual void Set ## name (type _arg1, type _arg2, type _arg3, type _arg4) \
104 { \
105 vtkDebugMacro( \
106 << this->GetClassName() << " (" << this << "): setting " << \
107 # name " to (" << \
108 _arg1 << "," << _arg2 << "," << _arg3 << "," << _arg4 << ")"); \
109 if ((this->name[0] != _arg1) || (this->name[1] != _arg2) || \
110 (this->name[2] != _arg3) || (this->name[3] != _arg4)) \
111 { \
112 this->name[0] = _arg1; \
113 this->name[1] = _arg2; \
114 this->name[2] = _arg3; \
115 this->name[3] = _arg4; \
116 this->Modified(); \
117 QList<QVariant> list; \
118 list.push_back(QVariant(_arg1)); \
119 list.push_back(QVariant(_arg2)); \
120 list.push_back(QVariant(_arg3)); \
121 list.push_back(QVariant(_arg4)); \
122 (*(this->_algorithmUserVectorProperties))[QString(# name)] = list; \
123 } \
124 } \
125\
126 virtual void Set ## name (type _arg[4]) \
127 { \
128 this->Set ## name (_arg[0], _arg[1], _arg[2], _arg[3]); \
129 } \
130\
131 type name[4];