The M2MPropertyInstance class represents an instance of a property class in Tima's map2mesh code.
More...
#include <m2mpropertyinstance.h>
The M2MPropertyInstance class represents an instance of a property class in Tima's map2mesh code.
◆ ParamTriplet
◆ M2MPropertyInstance()
M2MPropertyInstance::M2MPropertyInstance |
( |
| ) |
|
|
protected |
◆ createInstance() [1/2]
Creates an instance of the class with default parameter values.
The reason this method is in M2MPropertyInstance instead of M2MPropertyClass is so that nonpublic attributes can be set.
- Parameters
-
ofClass | The parent class of the instance. |
- Returns
- An instance of the given class.
◆ createInstance() [2/2]
Creates an instance of the class with the given parameter values.
- Parameters
-
ofClass | The parent class of the instance. |
params | The parameters to supply. Format for each entry is {{class, param name}, param value}. Unspecified parameters remain at their default values. |
- Returns
- An instance of the given class.
◆ getClass()
Get the class of the instance.
- Returns
- The class.
◆ getParameter()
double M2MPropertyInstance::getParameter |
( |
M2MPropertyClass * |
owningClass, |
|
|
QString |
param |
|
) |
| const |
Gets the value of the parameter.
- Parameters
-
owningClass | The class that defines the parameter. |
param | The name of the parameter. |
- Returns
- The value of the parameter for this instance.
◆ operator!=()
◆ operator==()
◆ mClassPtr
A pointer to the class that this is directly an instance of.
◆ mParameters
QMap<M2MPropertyClass *, QMap<QString, double> > M2MPropertyInstance::mParameters |
|
protected |
The parameters for this object. All parameters are double values.
mParameters maps classes to parameter dictionaries. Every superclass of this instance must be accounted for.
The documentation for this class was generated from the following files: