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