[66] | 1 | |
---|
[89] | 2 | #define FIELDSTRUCT Model |
---|
| 3 | ParamEntry f0_model_paramtab[]= |
---|
| 4 | { |
---|
| 5 | {"Properties",2,2,"m" }, |
---|
| 6 | {"Visual",}, |
---|
| 7 | {"se",0,1024,"startenergy","f",FIELD(startenergy),}, |
---|
| 8 | {"Vstyle",1,0,"vis_style","s 0 -1 ",FIELD(vis_style),}, |
---|
| 9 | {0,0,0,} |
---|
| 10 | }; |
---|
| 11 | ParamEntry f0_model_xtra_paramtab[]= |
---|
| 12 | { |
---|
| 13 | {"Extra properties",1,0,"m"}, |
---|
| 14 | {0,0,0,} |
---|
| 15 | }; |
---|
| 16 | #undef FIELDSTRUCT |
---|
[80] | 17 | |
---|
[89] | 18 | |
---|
[66] | 19 | #define FIELDSTRUCT Part |
---|
| 20 | ParamEntry f0_part_paramtab[]= |
---|
| 21 | { |
---|
[80] | 22 | {"Geometry",3,18,"p" }, |
---|
[66] | 23 | {"Other properties",}, |
---|
| 24 | {"Visual",}, |
---|
| 25 | {"x",0,1024,"position.x","f",FIELD(p.x),}, |
---|
| 26 | {"y",0,1024,"position.y","f",FIELD(p.y),}, |
---|
| 27 | {"z",0,1024,"position.z","f",FIELD(p.z),}, |
---|
| 28 | {"m",1,0,"mass","f 0.1 999.0 1.0",FIELD(mass),}, |
---|
| 29 | {"s",1,0,"size","f 0.1 10.0 1.0",FIELD(size),}, |
---|
| 30 | {"dn",1,0,"density","f 0.2 5.0 1.0",FIELD(density),}, |
---|
| 31 | {"fr",1,0,"friction","f 0.0 4.0 0.4",FIELD(friction),}, |
---|
| 32 | {"ing",1,0,"ingestion","f 0.0 1.0 0.25",FIELD(ingest),}, |
---|
| 33 | {"as",1,0,"assimilation","f 0.0 1.0 0.25",FIELD(assim),}, |
---|
| 34 | {"rx",0,0,"rot.x","f",FIELD(rot.x),}, |
---|
| 35 | {"ry",0,1024,"rot.y","f",FIELD(rot.y),}, |
---|
| 36 | {"rz",0,1024,"rot.z","f",FIELD(rot.z),}, |
---|
| 37 | {"i",1,0,"info","s",FIELD(info),}, |
---|
| 38 | {"Vstyle",2,0,"vis_style","s 0 -1 part",FIELD(vis_style),}, |
---|
[80] | 39 | {"vs",2,0,"visual thickness","f 0.05 0.7 0.2",FIELD(vsize),}, |
---|
| 40 | {"vr",2,0,"red component","f 0.0 1.0 0.5",FIELD(vcolor.x),}, |
---|
| 41 | {"vg",2,1024,"green component","f 0.0 1.0 0.5",FIELD(vcolor.y),}, |
---|
| 42 | {"vb",2,1024,"blue component","f 0.0 1.0 0.5",FIELD(vcolor.z),}, |
---|
[66] | 43 | {0,0,0,} |
---|
| 44 | }; |
---|
| 45 | ParamEntry f0_part_xtra_paramtab[]= |
---|
| 46 | { |
---|
[80] | 47 | {"Extra properties",1,9,"p"}, |
---|
[66] | 48 | {"m",0,0,"mass","f 0.1 999.0 1.0",FIELD(mass),}, |
---|
| 49 | {"dn",0,0,"density","f 0.2 5.0 1.0",FIELD(density),}, |
---|
| 50 | {"fr",0,0,"friction","f 0.0 4.0 0.4",FIELD(friction),}, |
---|
| 51 | {"ing",0,0,"ingestion","f 0.0 1.0 0.25",FIELD(ingest),}, |
---|
| 52 | {"as",0,0,"assimilation","f 0.0 1.0 0.25",FIELD(assim),}, |
---|
[80] | 53 | {"vs",0,0,"visual thickness","f 0.05 0.7 0.2",FIELD(vsize),}, |
---|
| 54 | {"vr",0,0,"red component","f 0.0 1.0 0.5",FIELD(vcolor.x),}, |
---|
| 55 | {"vg",0,1024,"green component","f 0.0 1.0 0.5",FIELD(vcolor.y),}, |
---|
| 56 | {"vb",0,1024,"blue component","f 0.0 1.0 0.5",FIELD(vcolor.z),}, |
---|
[66] | 57 | {0,0,0,} |
---|
| 58 | }; |
---|
| 59 | #undef FIELDSTRUCT |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | #define FIELDSTRUCT Joint |
---|
| 63 | ParamEntry f0_joint_paramtab[]= |
---|
| 64 | { |
---|
[80] | 65 | {"Connections",4,16,"j" }, |
---|
[66] | 66 | {"Geometry",}, |
---|
| 67 | {"Other properties",}, |
---|
| 68 | {"Visual",}, |
---|
| 69 | {"p1",0,1024,"part1 ref#","d -1 999999 -1",FIELD(p1_refno),}, |
---|
| 70 | {"p2",0,1024,"part2 ref#","d -1 999999 -1",FIELD(p2_refno),}, |
---|
| 71 | {"rx",1,0,"rotation.x","f",FIELD(rot.x),}, |
---|
| 72 | {"ry",1,1024,"rotation.y","f",FIELD(rot.y),}, |
---|
| 73 | {"rz",1,1024,"rotation.z","f",FIELD(rot.z),}, |
---|
| 74 | {"dx",1,0,"delta.x","f -2 2 0",FIELD(d.x),}, |
---|
| 75 | {"dy",1,1024,"delta.y","f -2 2 0",FIELD(d.y),}, |
---|
| 76 | {"dz",1,1024,"delta.z","f -2 2 0",FIELD(d.z),}, |
---|
| 77 | {"stif",2,0,"stiffness","f 0.0 1.0 1.0",FIELD(stif),}, |
---|
| 78 | {"rotstif",2,0,"rotation stiffness","f 0.0 1.0 1.0",FIELD(rotstif),}, |
---|
| 79 | {"stam",2,0,"stamina","f 0.0 1.0 0.25",FIELD(stamina),}, |
---|
| 80 | {"i",2,0,"info","s",FIELD(info),}, |
---|
| 81 | {"Vstyle",3,0,"vis_style","s 0 -1 joint",FIELD(vis_style),}, |
---|
[80] | 82 | {"vr",3,0,"red component","f 0.0 1.0 0.5",FIELD(vcolor.x),}, |
---|
| 83 | {"vg",3,1024,"green component","f 0.0 1.0 0.5",FIELD(vcolor.y),}, |
---|
| 84 | {"vb",3,1024,"blue component","f 0.0 1.0 0.5",FIELD(vcolor.z),}, |
---|
[66] | 85 | {0,0,0,} |
---|
| 86 | }; |
---|
| 87 | ParamEntry f0_joint_xtra_paramtab[]= |
---|
| 88 | { |
---|
[80] | 89 | {"Extra properties",1,5,"j"}, |
---|
[66] | 90 | {"stif",0,0,"stiffness","f 0.0 1.0 1.0",FIELD(stif),}, |
---|
| 91 | {"rotstif",0,0,"rotation stiffness","f 0.0 1.0 1.0",FIELD(rotstif),}, |
---|
[80] | 92 | {"vr",0,0,"red component","f 0.0 1.0 0.5",FIELD(vcolor.x),}, |
---|
| 93 | {"vg",0,1024,"green component","f 0.0 1.0 0.5",FIELD(vcolor.y),}, |
---|
| 94 | {"vb",0,1024,"blue component","f 0.0 1.0 0.5",FIELD(vcolor.z),}, |
---|
[66] | 95 | {0,0,0,} |
---|
| 96 | }; |
---|
| 97 | #undef FIELDSTRUCT |
---|
| 98 | |
---|
| 99 | |
---|
| 100 | #define FIELDSTRUCT Joint |
---|
| 101 | ParamEntry f0_nodeltajoint_paramtab[]= |
---|
| 102 | { |
---|
[80] | 103 | {"Connections",4,10,"j" }, |
---|
[66] | 104 | {"Geometry",}, |
---|
| 105 | {"Other properties",}, |
---|
| 106 | {"Visual",}, |
---|
| 107 | {"p1",0,1024,"part1 ref#","d -1 999999 -1",FIELD(p1_refno),}, |
---|
| 108 | {"p2",0,1024,"part2 ref#","d -1 999999 -1",FIELD(p2_refno),}, |
---|
| 109 | {"stif",2,0,"stiffness","f 0.0 1.0 1.0",FIELD(stif),}, |
---|
| 110 | {"rotstif",2,0,"rotation stiffness","f 0.0 1.0 1.0",FIELD(rotstif),}, |
---|
| 111 | {"stam",2,0,"stamina","f 0.0 1.0 0.25",FIELD(stamina),}, |
---|
| 112 | {"i",2,0,"info","s",FIELD(info),}, |
---|
| 113 | {"Vstyle",3,0,"vis_style","s 0 -1 joint",FIELD(vis_style),}, |
---|
[80] | 114 | {"vr",3,0,"red component","f 0.0 1.0 0.5",FIELD(vcolor.x),}, |
---|
| 115 | {"vg",3,1024,"green component","f 0.0 1.0 0.5",FIELD(vcolor.y),}, |
---|
| 116 | {"vb",3,1024,"blue component","f 0.0 1.0 0.5",FIELD(vcolor.z),}, |
---|
[66] | 117 | {0,0,0,} |
---|
| 118 | }; |
---|
| 119 | ParamEntry f0_nodeltajoint_xtra_paramtab[]= |
---|
| 120 | { |
---|
[80] | 121 | {"Extra properties",1,5,"j"}, |
---|
[66] | 122 | {"stif",0,0,"stiffness","f 0.0 1.0 1.0",FIELD(stif),}, |
---|
| 123 | {"rotstif",0,0,"rotation stiffness","f 0.0 1.0 1.0",FIELD(rotstif),}, |
---|
[80] | 124 | {"vr",0,0,"red component","f 0.0 1.0 0.5",FIELD(vcolor.x),}, |
---|
| 125 | {"vg",0,1024,"green component","f 0.0 1.0 0.5",FIELD(vcolor.y),}, |
---|
| 126 | {"vb",0,1024,"blue component","f 0.0 1.0 0.5",FIELD(vcolor.z),}, |
---|
[66] | 127 | {0,0,0,} |
---|
| 128 | }; |
---|
| 129 | #undef FIELDSTRUCT |
---|
| 130 | |
---|
| 131 | |
---|
| 132 | #define FIELDSTRUCT Neuro |
---|
| 133 | ParamEntry f0_neuro_paramtab[]= |
---|
| 134 | { |
---|
| 135 | {"Connections",3,10,"n" }, |
---|
| 136 | {"Other",}, |
---|
| 137 | {"Visual",}, |
---|
| 138 | {"p",0,0,"part ref#","d -1 999999 -1",FIELD(part_refno),}, |
---|
| 139 | {"j",0,0,"joint ref#","d -1 999999 -1",FIELD(joint_refno),}, |
---|
| 140 | {"d",1,0,"item details","s",GETSET(details),}, |
---|
| 141 | {"i",1,0,"info","s",FIELD(info),}, |
---|
| 142 | {"Vstyle",2,0,"vis_style","s 0 -1 neuro",FIELD(vis_style),}, |
---|
| 143 | {"getInputCount",0,1+2,"input count","d",GETONLY(inputCount),}, |
---|
| 144 | {"getInputNeuroDef",0,1+2,"get input neuron","p oNeuroDef(d)",PROCEDURE(p_getInputNeuroDef),}, |
---|
| 145 | {"getInputNeuroIndex",0,1+2,"get input neuron index","p d(d)",PROCEDURE(p_getInputNeuroIndex),}, |
---|
| 146 | {"getInputWeight",0,1+2,"get input weight","p f(d)",PROCEDURE(p_getInputWeight),}, |
---|
| 147 | {"classObject",0,1+2,"neuron class","o NeuroClass",GETONLY(classObject),}, |
---|
| 148 | {0,0,0,} |
---|
| 149 | }; |
---|
| 150 | ParamEntry f0_neuro_xtra_paramtab[]= |
---|
| 151 | { |
---|
| 152 | {"Extra properties",1,0,"n"}, |
---|
| 153 | {0,0,0,} |
---|
| 154 | }; |
---|
| 155 | #undef FIELDSTRUCT |
---|
| 156 | |
---|
| 157 | |
---|
| 158 | #define FIELDSTRUCT NeuroConn |
---|
| 159 | ParamEntry f0_neuroconn_paramtab[]= |
---|
| 160 | { |
---|
| 161 | {"Connection",2,4,"c" }, |
---|
| 162 | {"Other",}, |
---|
| 163 | {"n1",0,1024,"this neuro ref#","d -1 999999 -1",FIELD(n1_refno),}, |
---|
| 164 | {"n2",0,1024,"connected neuro ref#","d -1 999999 -1",FIELD(n2_refno),}, |
---|
| 165 | {"w",0,1024,"weight","f -999999 999999 1.0",FIELD(weight),}, |
---|
| 166 | {"i",1,0,"info","s",FIELD(info),}, |
---|
| 167 | {0,0,0,} |
---|
| 168 | }; |
---|
| 169 | ParamEntry f0_neuroconn_xtra_paramtab[]= |
---|
| 170 | { |
---|
| 171 | {"Extra properties",1,0,"c"}, |
---|
| 172 | {0,0,0,} |
---|
| 173 | }; |
---|
| 174 | #undef FIELDSTRUCT |
---|
| 175 | |
---|
| 176 | |
---|
| 177 | |
---|
| 178 | |
---|
| 179 | |
---|
| 180 | |
---|
| 181 | |
---|
| 182 | |
---|
| 183 | |
---|
| 184 | |
---|
| 185 | |
---|
| 186 | |
---|
| 187 | |
---|
| 188 | |
---|
| 189 | |
---|
| 190 | |
---|
| 191 | |
---|
| 192 | |
---|
| 193 | |
---|
| 194 | |
---|
[80] | 195 | |
---|