source: cpp/frams/model/f0-SDK-classes.h @ 389

Last change on this file since 389 was 289, checked in by Maciej Komosinski, 10 years ago

Removed usage of NeuroItem?; item details -> details

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