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