Changeset 952 for cpp/frams/model
- Timestamp:
- 06/20/20 01:09:57 (5 years ago)
- Location:
- cpp/frams/model
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/model/defassign-f0-SDK.h
r945 r952 61 61 62 62 63 64 65 63 66 void Part_MinMaxDef::defassign() 64 67 { 65 68 volume=4.18879; 66 69 } 70 71 72 67 73 68 74 … … 165 171 166 172 173 174 175 167 176 void Neuro::defassign() 168 177 { … … 172 181 vis_style="neuro"; 173 182 } 183 184 185 174 186 175 187 … … 234 246 235 247 248 249 250 -
cpp/frams/model/f0-SDK-classes.h
r945 r952 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-20 15Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2020 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 7 7 ParamEntry f0_model_paramtab[]= 8 8 { 9 {"Properties",2,2,"m" 9 {"Properties",2,2,"m",NULL,0,NULL,NULL,"Model"}, 10 10 {"Visual",}, 11 11 {"se",0,1024,"startenergy","f",FIELD(startenergy),}, … … 24 24 ParamEntry f0_part_paramtab[]= 25 25 { 26 {"Geometry",3,22,"p" 26 {"Geometry",3,22,"p",NULL,0,NULL,NULL,"Part"}, 27 27 {"Other properties",}, 28 28 {"Visual",}, … … 71 71 ParamEntry f0_part_minmaxdef_paramtab[]= 72 72 { 73 {"Geometry",1,1,"p" 73 {"Geometry",1,1,"p"}, 74 74 {"f",0,0,"volume","f 0.83776 20.94395 4.18879",FIELD(volume),"Recommended default and min,max range for solid-shape Parts created and modified by genetic operators which are responsible for setting sizex,y,z. Default is the volume of the solid sphere (ball) with default radius=1 (radius is the same as sizex,y,z). Minimum is 5x less, maximum is 5x more.",}, 75 75 {0,0,0,} … … 86 86 ParamEntry f0_joint_paramtab[]= 87 87 { 88 {"Connections",4,27,"j" 88 {"Connections",4,27,"j",NULL,0,NULL,NULL,"Joint"}, 89 89 {"Geometry",}, 90 90 {"Other properties",}, … … 135 135 ParamEntry f0_nodeltajoint_paramtab[]= 136 136 { 137 {"Connections",4,21,"j" 137 {"Connections",4,21,"j",NULL,0,NULL,NULL,"Joint"}, 138 138 {"Geometry",}, 139 139 {"Other properties",}, … … 178 178 ParamEntry f0_neuro_paramtab[]= 179 179 { 180 {"Connections",3,10,"n" 180 {"Connections",3,10,"n",NULL,0,NULL,NULL,"Neuro"}, 181 181 {"Other",}, 182 182 {"Visual",}, … … 204 204 ParamEntry f0_neuroconn_paramtab[]= 205 205 { 206 {"Connection",2,4,"c" 206 {"Connection",2,4,"c",NULL,0,NULL,NULL,"Neuron connection"}, 207 207 {"Other",}, 208 208 {"n1",0,1024,"this neuro ref#","d -1 999999 -1",FIELD(n1_refno),}, … … 239 239 240 240 241 242 243 -
cpp/frams/model/model.cpp
r934 r952 952 952 if ((check != LIVE_CHECK) && (check != CHECKPOINT_CHECK)) 953 953 { 954 if (j->shape != Joint::SHAPE_FIXED)954 if (j->shape == Joint::SHAPE_BALL_AND_STICK) 955 955 { 956 956 if (j->d() > getMaxJoint().d.x) -
cpp/frams/model/modelparts.cpp
r932 r952 22 22 #include <frams/util/extvalue.h> 23 23 #include <frams/param/paramobj.h> 24 #include <frams/neuro/neuroimpl.h> 24 25 25 26 #include F0_DEFASSIGN_FILE … … 756 757 { 757 758 #define FIELDSTRUCT NeuroExt 758 ParamEntry entry = { "class", 2, 0, "neuro class", "s", GETSET(neuroclass) }; 759 ParamEntry entries[] = { 760 { "class", 2, 0, "neuro class", "s", GETSET(neuroclass) }, 761 { "liveNeuro", 2, 1, "live Neuro object", "oNeuro", GETONLY(liveNeuro) }}; 759 762 #undef FIELDSTRUCT 760 add(&entry);763 for(auto& e : entries) add(&e); 761 764 762 765 #define FIELDSTRUCT Neuro … … 797 800 setClassName(arg->getString()); return PSET_CHANGED; 798 801 } 802 803 void NeuroExt::get_liveNeuro(PARAMGETARGS) 804 { 805 #ifndef SDK_WITHOUT_FRAMS 806 NeuroNetImpl::getLiveNeuroObject(this,ret); 807 #endif 808 } -
cpp/frams/model/modelparts.h
r937 r952 519 519 PARAMGETDEF(neuroclass); 520 520 PARAMSETDEF(neuroclass); 521 PARAMGETDEF(liveNeuro); 521 522 #undef STATRICKCLASS 522 523 static ParamEntry *getParamTab();
Note: See TracChangeset
for help on using the changeset viewer.