Definition of the VtkAlgorithmProperties class.
- Author
- Karsten Rink
- Date
- 2010-03-23
- Copyright
- Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org) Distributed under a Modified BSD License. See accompanying file LICENSE.txt or http://www.opengeosys.org/project/license
Definition in file VtkAlgorithmProperties.h.
#include <QList>
#include <QMap>
#include <QObject>
#include <QString>
#include <QVariant>
Go to the source code of this file.
◆ 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); \
} \
} \
\
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 " << \
_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]); \
} \
\
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 " << \
_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]); \
} \
\
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 " << \
_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]); \
} \
\
Definition at line 102 of file VtkAlgorithmProperties.h.