[722] | 1 | #ifndef _MODELOBJ_H_
|
---|
| 2 | #define _MODELOBJ_H_
|
---|
| 3 |
|
---|
| 4 | #include "model.h"
|
---|
| 5 |
|
---|
| 6 | extern ParamEntry modelobj_paramtab[];
|
---|
| 7 |
|
---|
| 8 | class ModelObj : public Model
|
---|
| 9 | {
|
---|
| 10 | public:
|
---|
| 11 | #define STATRICKCLASS ModelObj
|
---|
| 12 |
|
---|
| 13 | PARAMGETDEF(geno);
|
---|
| 14 | PARAMPROCDEF(p_newfromstring);
|
---|
| 15 | PARAMPROCDEF(p_newfromgeno);
|
---|
[732] | 16 | PARAMPROCDEF(p_newwithcheckpoints);
|
---|
[722] | 17 |
|
---|
| 18 | #define GETDELEGATE(name,type,value) PARAMGETDEF(name) {arg1->set ## type (value);}
|
---|
| 19 | GETDELEGATE(numparts, Int, getPartCount())
|
---|
| 20 | GETDELEGATE(numjoints, Int, getJointCount())
|
---|
| 21 | GETDELEGATE(numneurons, Int, getNeuroCount())
|
---|
| 22 | GETDELEGATE(numconnections, Int, getConnectionCount())
|
---|
[732] | 23 | GETDELEGATE(numcheckpoints, Int, getCheckpointCount())
|
---|
[722] | 24 | #undef GETDELEGATE
|
---|
| 25 |
|
---|
| 26 | PARAMPROCDEF(p_getpart);
|
---|
| 27 | PARAMPROCDEF(p_getjoint);
|
---|
| 28 | PARAMPROCDEF(p_getneuro);
|
---|
| 29 | PARAMGETDEF(bboxsize);
|
---|
[732] | 30 | PARAMPROCDEF(p_getcheckpoint);
|
---|
| 31 | PARAMGETDEF(shape_type);
|
---|
| 32 | PARAMGETDEF(solid_model);
|
---|
[722] | 33 |
|
---|
| 34 | #undef STATRICKCLASS
|
---|
| 35 |
|
---|
| 36 | static ExtObject makeStaticObject(Model* g);
|
---|
| 37 | static ExtObject makeDynamicObject(Model* g);
|
---|
| 38 | static Model* fromObject(const ExtValue& v, bool warn = true);
|
---|
| 39 | static ParamInterface* getInterface();
|
---|
| 40 | static Param& getStaticParam();
|
---|
| 41 | static Param& getDynamicParam();
|
---|
| 42 | };
|
---|
| 43 |
|
---|
| 44 | #endif
|
---|