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.

◆ 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.

◆ 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.

◆ 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.