Walls And Holes  1
m2mpropertyclass.h
Go to the documentation of this file.
1 #ifndef M2MPROPERTY_H
2 #define M2MPROPERTY_H
3 
4 #include <QString>
5 #include <QVector>
6 
7 
12 public:
18  M2MPropertyClass(QString name, M2MPropertyClass *parent = nullptr);
19 
27  M2MPropertyClass(QString name, QVector<QString> paramNames, QVector<double> paramDefaults, M2MPropertyClass *parent = nullptr);
28 
29  bool hasParent() const;
30  M2MPropertyClass *getParent() const;
31 
32  QVector<QString> getParameterNames() const;
33  QVector<double> getDefaultParameters() const;
34 
35 protected:
40 
44  QString mName;
45 
49  QVector<QString> mParameterNames;
50 
54  QVector<double> mParameterDefaults;
55 };
56 
57 #endif // M2MPROPERTY_H
QVector< double > getDefaultParameters() const
Definition: m2mpropertyclass.cpp:33
M2MPropertyClass * mParent
The parent class, or nullptr.
Definition: m2mpropertyclass.h:39
QVector< QString > getParameterNames() const
Definition: m2mpropertyclass.cpp:29
bool hasParent() const
Definition: m2mpropertyclass.cpp:21
The M2MPropertyClass represents a property class in Tima&#39;s Map2Mesh code.
Definition: m2mpropertyclass.h:11
M2MPropertyClass * getParent() const
Definition: m2mpropertyclass.cpp:25
QVector< QString > mParameterNames
The list of parameters that belong specifically to this class (not including the inherited parameters...
Definition: m2mpropertyclass.h:49
QString mName
A unique class name.
Definition: m2mpropertyclass.h:44
QVector< double > mParameterDefaults
Parallel to mParameterNames. Defines default values.
Definition: m2mpropertyclass.h:54
M2MPropertyClass(QString name, M2MPropertyClass *parent=nullptr)
Defines a class with no parameters.
Definition: m2mpropertyclass.cpp:3