Changeset 1277
- Timestamp:
- 09/09/23 15:20:54 (15 months ago)
- Location:
- cpp/frams/model
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/model/modelobj.cpp
r1183 r1277 7 7 ParamEntry modelobj_paramtab[] = 8 8 { 9 { "Model", 1, 2 1, "Model", },9 { "Model", 1, 22, "Model", }, 10 10 { "se", 0, PARAM_NOSTATIC, "startenergy", "f", FIELD(startenergy), }, 11 11 { "Vstyle", 0, PARAM_NOSTATIC, "Visual style", "s", FIELD(vis_style), "See the \"Visual style definition\" context for more information"}, … … 20 20 { "numneurons", 0, PARAM_DONTSAVE | PARAM_NOSTATIC | PARAM_READONLY, "Number of neurons", "d", GETONLY(numneurons), }, 21 21 { "numconnections", 0, PARAM_DONTSAVE | PARAM_NOSTATIC | PARAM_READONLY, "Number of neuron connections", "d", GETONLY(numconnections), }, 22 { "is_valid", 0, PARAM_READONLY | PARAM_NOSTATIC, "Validity", "d 0 1", GETONLY(is_valid) }, 22 23 23 24 { "getPart", 0, PARAM_READONLY | PARAM_USERHIDDEN | PARAM_NOSTATIC, "getPart (static model information)", "p oPart(d index)", PROCEDURE(p_getpart), }, … … 191 192 ret->setInt(getShapeType()); 192 193 } 194 195 void ModelObj::get_is_valid(ExtValue *ret) 196 { 197 ret->setInt(isValid()); 198 } -
cpp/frams/model/modelobj.h
r732 r1277 23 23 GETDELEGATE(numcheckpoints, Int, getCheckpointCount()) 24 24 #undef GETDELEGATE 25 25 26 PARAMGETDEF(is_valid); 26 27 PARAMPROCDEF(p_getpart); 27 28 PARAMPROCDEF(p_getjoint);
Note: See TracChangeset
for help on using the changeset viewer.