1 | // This file is a part of the Framsticks GDK library. |
---|
2 | // Copyright (C) 2002-2011 Szymon Ulatowski. See LICENSE.txt for details. |
---|
3 | // Refer to http://www.framsticks.com/ for further information. |
---|
4 | |
---|
5 | #ifndef _MODELPARTS_H_ |
---|
6 | #define _MODELPARTS_H_ |
---|
7 | |
---|
8 | #include "3d.h" |
---|
9 | #include "genoconv.h" |
---|
10 | |
---|
11 | #include "extvalue.h" |
---|
12 | #include "list.h" |
---|
13 | #include "sstring.h" |
---|
14 | #include "sstringutils.h" |
---|
15 | #include "param.h" |
---|
16 | #include "syntparam.h" |
---|
17 | #include "usertags.h" |
---|
18 | #include "paramtabobj.h" |
---|
19 | |
---|
20 | #include <stdio.h> |
---|
21 | |
---|
22 | //#define MODEL_V1_COMPATIBLE |
---|
23 | |
---|
24 | class Model; |
---|
25 | class IRange; |
---|
26 | class MultiRange; |
---|
27 | |
---|
28 | typedef UserTags<Model,void*,5> ModelUserTags; |
---|
29 | |
---|
30 | /** Common base for model elements. */ |
---|
31 | class PartBase |
---|
32 | { |
---|
33 | public: |
---|
34 | SString vis_style; |
---|
35 | PartBase(const SString& s):vis_style(s),mapped(0) {} |
---|
36 | ~PartBase(); |
---|
37 | static const SString& getDefaultStyle(){static SString s("none"); return s;} |
---|
38 | MultiRange *mapped; |
---|
39 | enum PartBaseFlags { Selected=1 }; |
---|
40 | long flags; |
---|
41 | Model *owner; ///< backlink to the model |
---|
42 | |
---|
43 | SString info; |
---|
44 | |
---|
45 | Model &getModel() const {return *owner;} |
---|
46 | |
---|
47 | ModelUserTags userdata; |
---|
48 | |
---|
49 | void notifyMappingChange(); |
---|
50 | |
---|
51 | void clearMapping(); |
---|
52 | MultiRange* getMapping() {return mapped;} |
---|
53 | void setMapping(const IRange &mr); |
---|
54 | void addMapping(const IRange &mr); |
---|
55 | void setMapping(const MultiRange &mr); |
---|
56 | void addMapping(const MultiRange &mr); |
---|
57 | |
---|
58 | void setInfo(const SString& name,const SString& value); |
---|
59 | void setInfo(const SString& name,int value); |
---|
60 | void setInfo(const SString& name,double value); |
---|
61 | SString getInfo(const SString& name); |
---|
62 | }; |
---|
63 | |
---|
64 | /// Part is the only real physical object in the framsticks creature. |
---|
65 | /// You can use this class for querying and adjusting constructed |
---|
66 | /// model properties |
---|
67 | class Part: public PartBase |
---|
68 | { |
---|
69 | friend class Model; |
---|
70 | static const SString& getDefaultStyle(); |
---|
71 | Part(double _mass,double _size,double _density,double _friction,double _ingest,double _assim) |
---|
72 | :mass(_mass),size(_size),density(_density),friction(_friction),ingest(_ingest),assim(_assim), |
---|
73 | PartBase(getDefaultStyle()) |
---|
74 | {} |
---|
75 | public: |
---|
76 | // base properties - have special meaning and therefore are often accessed directly for convenience |
---|
77 | Pt3D p; ///< 3d coordinates of the part |
---|
78 | Orient o; ///< orientation in 3d space (rotation matrix) |
---|
79 | /// ParamInterface object is preferred way to get/set other properties. |
---|
80 | ParamInterface &extraProperties(); |
---|
81 | ParamInterface &properties(); |
---|
82 | long refno; |
---|
83 | Pt3D rot; |
---|
84 | |
---|
85 | /// |
---|
86 | double mass,size,density,friction,ingest,assim; |
---|
87 | Pt3D food; |
---|
88 | //SList points; // collistion points |
---|
89 | //Slist neurons; // "select * from owner->neurons where part=this" ;-) |
---|
90 | |
---|
91 | Pt3D vcolor; |
---|
92 | double vsize; |
---|
93 | |
---|
94 | Part(); |
---|
95 | Part(const Part& src):PartBase(getDefaultStyle()) {operator=(src);} |
---|
96 | void operator=(const Part& src); |
---|
97 | |
---|
98 | static Param& getStaticParam(); |
---|
99 | }; |
---|
100 | |
---|
101 | /// Imaginary connection between two parts. |
---|
102 | /// Joint has no mass nor intertia but can transfer forces. |
---|
103 | class Joint: public PartBase |
---|
104 | { |
---|
105 | friend class Model; |
---|
106 | static const SString& getDefaultStyle(); |
---|
107 | Joint(double _stamina,double _stif,double _rotstif,double _d) |
---|
108 | :stamina(_stamina),stif(_stif),rotstif(_rotstif),PartBase(getDefaultStyle()) |
---|
109 | {d=Pt3D(_d,0,0);} |
---|
110 | public: |
---|
111 | // base properties: |
---|
112 | long p1_refno,p2_refno; ///< parts' reference numbers |
---|
113 | |
---|
114 | Part *part1,*part2; ///< references to parts |
---|
115 | class Pt3D d; ///< position delta between parts |
---|
116 | class Pt3D rot; ///< orientation delta between parts expressed as 3 angles |
---|
117 | |
---|
118 | Joint(); |
---|
119 | Joint(const Joint& src):PartBase(getDefaultStyle()) {operator=(src);} |
---|
120 | void operator=(const Joint& src); |
---|
121 | |
---|
122 | /** connect two parts with this joint. |
---|
123 | p2 position will be adjusted if delta option is in effect. |
---|
124 | @see isDelta() |
---|
125 | */ |
---|
126 | void attachToParts(Part* p1,Part* p2); |
---|
127 | /// @see attachToParts(Part*,Part*) |
---|
128 | void attachToParts(int p1,int p2); |
---|
129 | |
---|
130 | /** discard delta information but don't disable delta flag. |
---|
131 | delta will be calculated from parts positions during final consistency check. |
---|
132 | */ |
---|
133 | void resetDelta(); |
---|
134 | |
---|
135 | /** enable or disable delta option. |
---|
136 | delta value is not changed. |
---|
137 | */ |
---|
138 | void useDelta(int false_or_true); |
---|
139 | |
---|
140 | /** @return 1 if delta option is in effect. |
---|
141 | @see useDelta(), resetDelta(), useDelta() |
---|
142 | */ |
---|
143 | int isDelta(); |
---|
144 | |
---|
145 | /// ParamInterface object is preferred way to get/set other properties. |
---|
146 | ParamInterface &extraProperties(); |
---|
147 | ParamInterface &properties(); |
---|
148 | |
---|
149 | // do not touch these: |
---|
150 | long refno; ///< this joint's reference number |
---|
151 | double stamina; |
---|
152 | double stif,rotstif; ///< stiffness for moving and bending forces |
---|
153 | class Orient o; ///< orientation delta between parts as rotation matrix |
---|
154 | /** flag: generated f0 should include delta data. |
---|
155 | set by 'singlestep' if j: attributes use delta option */ |
---|
156 | int usedelta; |
---|
157 | Pt3D vcolor; |
---|
158 | |
---|
159 | static Param& getStaticParam(); |
---|
160 | }; |
---|
161 | |
---|
162 | #define JOINT_DELTA_MARKER 99999.0 |
---|
163 | |
---|
164 | ////////////////// NN ///////////////// |
---|
165 | |
---|
166 | class NeuroClass; |
---|
167 | |
---|
168 | typedef UserTags<NeuroClass,void*,5> NeuroClassUserTags; |
---|
169 | |
---|
170 | /** Information about neuron class. |
---|
171 | */ |
---|
172 | class NeuroClass |
---|
173 | { |
---|
174 | bool ownedvectordata; |
---|
175 | void operator=(const NeuroClass& nosuchthich){} |
---|
176 | public: |
---|
177 | SString name,longname,description; |
---|
178 | ParamEntry *props; |
---|
179 | long prefinputs,prefoutput; |
---|
180 | long preflocation; |
---|
181 | int *vectordata; |
---|
182 | long visualhints; |
---|
183 | |
---|
184 | void *impl; |
---|
185 | bool active; |
---|
186 | int genactive; |
---|
187 | NeuroClassUserTags userdata; |
---|
188 | |
---|
189 | ////////////////////// |
---|
190 | ~NeuroClass(); |
---|
191 | NeuroClass(); |
---|
192 | NeuroClass(ParamEntry *_props,SString _description, |
---|
193 | int _prefinputs,int _prefoutput,int _preflocation,int *_vectordata,bool own_vd=1,int vhints=0); |
---|
194 | /** class name for use in Neuro::setClassName(), Neuro::setDetails() (former 'moredata' field), |
---|
195 | eg. "N","-",G" */ |
---|
196 | const SString& getName() {return name;} |
---|
197 | /** human friendly name, eg. "Neuron","Link","Gyroscope" */ |
---|
198 | const SString& getLongName() {return longname;} |
---|
199 | /** long description */ |
---|
200 | const SString& getDescription() {return description;} |
---|
201 | ParamEntry* getParamTab() {return props;} |
---|
202 | |
---|
203 | /** NeuroClass specific properties, recognized by all neurons of this class */ |
---|
204 | Param getProperties() {return Param(props);} |
---|
205 | |
---|
206 | /** preferred number of inputs, -1 = no preference (any number will go). |
---|
207 | extra inputs may be ignored by the object (depends on the class). |
---|
208 | */ |
---|
209 | int getPreferredInputs() {return prefinputs;} |
---|
210 | |
---|
211 | /** @return 0 if this object doesn't provide useful output signal. */ |
---|
212 | int getPreferredOutput() {return prefoutput;} |
---|
213 | |
---|
214 | /** @return 0 if the object doesn't need any assignment to the body element. |
---|
215 | @return 1 = it likes to be attached to the Part ( @see Neuro::attachToPart() ) |
---|
216 | @return 2 = the object prefers to have the Joint ( @see Neuro::attachToJoint() ) |
---|
217 | */ |
---|
218 | int getPreferredLocation() {return preflocation;} |
---|
219 | /** vector drawing to be used in neuro net diagram. |
---|
220 | interpretation: |
---|
221 | { |
---|
222 | LEN = datalength (excluding this number) |
---|
223 | NL = number_of_lines |
---|
224 | line#1 -> NS = number_of_segments, x1,y1, x2,y2, ... xNS-1,yNS-1, |
---|
225 | ... |
---|
226 | line#NL -> NS = number_of_segments, x1,y1, x2,y2, ... xNS-1,yNS-1, |
---|
227 | } |
---|
228 | */ |
---|
229 | int* getSymbolGlyph() |
---|
230 | {return vectordata;} |
---|
231 | void setSymbolGlyph(int *data,bool owned=1) |
---|
232 | {if (vectordata&&ownedvectordata) delete []vectordata; |
---|
233 | vectordata=data; ownedvectordata=owned;} |
---|
234 | /** additional information about how the neuron should be drawn |
---|
235 | used by structure view (and maybe some other components). |
---|
236 | return value is defined by the enum Hint |
---|
237 | @see enum Hint |
---|
238 | */ |
---|
239 | int getVisualHints() |
---|
240 | {return visualhints;} |
---|
241 | |
---|
242 | enum Hint |
---|
243 | /** don't draw neurons of this class */ |
---|
244 | { Invisible=1, |
---|
245 | /** don't draw classname label below the neuron */ |
---|
246 | DontShowClass=2, |
---|
247 | /** draw the neuron at the first part when attached to joint (default is in the middle) */ |
---|
248 | AtFirstPart=4, |
---|
249 | /** draw the neuron at the second part when attached to joint (default is in the middle) */ |
---|
250 | AtSecondPart=8, |
---|
251 | /** use effector colour for this neuro unit */ |
---|
252 | EffectorClass=16, |
---|
253 | /** use receptor colour for this neuro unit */ |
---|
254 | ReceptorClass=32, |
---|
255 | V1BendMuscle=64, |
---|
256 | V1RotMuscle=128, |
---|
257 | }; |
---|
258 | |
---|
259 | /** textual summary, automatically generated from other properties (like the neuro class tooltip) */ |
---|
260 | SString getSummary(); |
---|
261 | }; |
---|
262 | |
---|
263 | class Neuro; |
---|
264 | |
---|
265 | #ifdef MODEL_V1_COMPATIBLE |
---|
266 | class NeuroItem; |
---|
267 | |
---|
268 | /** for compatibility with old Neuro/NeuroItem */ |
---|
269 | class OldItems |
---|
270 | { |
---|
271 | Neuro &neuro; |
---|
272 | SList syntitems; ///< to be deleted |
---|
273 | SList items; |
---|
274 | int listok; |
---|
275 | public: |
---|
276 | OldItems(Neuro &n):neuro(n),listok(0) {} |
---|
277 | ~OldItems() {freelist();} |
---|
278 | void buildlist(); |
---|
279 | void freelist(); |
---|
280 | |
---|
281 | int getItemCount(); |
---|
282 | NeuroItem *getNeuroItem(int i); |
---|
283 | NeuroItem *addNewNeuroItem(); |
---|
284 | int findNeuroItem(NeuroItem *n); |
---|
285 | }; |
---|
286 | #endif |
---|
287 | |
---|
288 | /** Single processing unit in framsticks NN. */ |
---|
289 | class Neuro: public PartBase |
---|
290 | { |
---|
291 | friend class Model; |
---|
292 | static const SString& getDefaultStyle(); |
---|
293 | |
---|
294 | struct NInput { Neuro *n; double weight; SString *info; |
---|
295 | NInput(Neuro *_n,double w,SString *i=0):n(_n),weight(w),info(i) {} }; |
---|
296 | |
---|
297 | SListTempl<NInput> inputs; |
---|
298 | |
---|
299 | NeuroClass *myclass; |
---|
300 | bool knownclass; |
---|
301 | SString myclassname, myclassparams; |
---|
302 | /** set myclass and make knownclass=true */ |
---|
303 | void checkClass(); |
---|
304 | |
---|
305 | SString** inputInfo(int i); |
---|
306 | |
---|
307 | public: |
---|
308 | enum NeuroFlags { HoldState=2 }; |
---|
309 | ParamInterface &properties(); |
---|
310 | ParamInterface &extraProperties(); |
---|
311 | |
---|
312 | void setInputInfo(int i,const SString& name,const SString &value); |
---|
313 | void setInputInfo(int i,const SString& name,int value); |
---|
314 | void setInputInfo(int i,const SString& name,double value); |
---|
315 | SString getInputInfo(int i); |
---|
316 | SString getInputInfo(int i,const SString& name); |
---|
317 | |
---|
318 | NeuroClass* getClass(); |
---|
319 | void setClass(NeuroClass*); |
---|
320 | |
---|
321 | SString getClassParams() {return myclassparams;} |
---|
322 | void setClassParams(const SString& cp) {myclassparams=cp;} |
---|
323 | |
---|
324 | SString getClassName(); |
---|
325 | void setClassName(const SString& clazz); |
---|
326 | |
---|
327 | /** return neuro unit details encoded as <CLASS> ":" <PROPERTIES> |
---|
328 | |
---|
329 | new Neuro can be created as root object (without parent) or can be |
---|
330 | the child of existing Neuro. Children of the Neuro are its inputs. |
---|
331 | Standard framsticks neuron calculates the sum of all input units - other processing |
---|
332 | units don't have to treat them equally and can even ignore some of them. |
---|
333 | There are hints about expected inputs in the class database, @see getClass |
---|
334 | |
---|
335 | Application should not assume anything about classes and its properties |
---|
336 | except for two standard classes: (information about all current classes |
---|
337 | can be retrieved with getClass/getClassProperties methods) |
---|
338 | - getClassName()="N" is the standard framsticks neuron, accepts any number of inputs, |
---|
339 | compatible with old Neuro object |
---|
340 | - getClassName()="-" is the neuron link, compatible with old Neuro-Neuro link |
---|
341 | (NeuroItem with empty details) |
---|
342 | Empty details defaults to "-" if the parent unit is specified, |
---|
343 | and "N" if the unit has no parent. |
---|
344 | */ |
---|
345 | SString getDetails(); |
---|
346 | |
---|
347 | /** details = classname + ":" + classparams |
---|
348 | @see getDetails() |
---|
349 | */ |
---|
350 | void setDetails(const SString&); |
---|
351 | |
---|
352 | #define STATRICKCLASS Neuro |
---|
353 | PARAMGETDEF(details) {arg1->setString(getDetails());} |
---|
354 | PARAMSETDEF(details) {setDetails(arg1->getString());return PSET_CHANGED;} |
---|
355 | PARAMGETDEF(inputCount); |
---|
356 | PARAMPROCDEF(p_getInputNeuroDef); |
---|
357 | PARAMPROCDEF(p_getInputNeuroIndex); |
---|
358 | PARAMPROCDEF(p_getInputWeight); |
---|
359 | PARAMGETDEF(classObject); |
---|
360 | #undef STATRICKCLASS |
---|
361 | |
---|
362 | ///@param handle_defaults_when_saving see SyntParam |
---|
363 | SyntParam classProperties(bool handle_defaults_when_saving=true); |
---|
364 | // base properties: |
---|
365 | long refno; ///< unique reference number (former 'neuro' refno) |
---|
366 | |
---|
367 | long part_refno; ///< can be used by some items as the part ref# |
---|
368 | long joint_refno; ///< can be used by some items as the joint ref# |
---|
369 | |
---|
370 | Pt3D pos,rot; ///< default = zero |
---|
371 | |
---|
372 | ModelUserTags userdata; |
---|
373 | |
---|
374 | Neuro(); |
---|
375 | Neuro(double _state,double _inertia,double _force,double _sigmo); |
---|
376 | Neuro(const Neuro& src):PartBase(getDefaultStyle()) {operator=(src);} |
---|
377 | |
---|
378 | ~Neuro(); |
---|
379 | |
---|
380 | void operator=(const Neuro& src); |
---|
381 | |
---|
382 | /** Attach this Neuro to the specified Part or detach it from the body if p==NULL. |
---|
383 | Neuro can be attached to either Part or Joint, but not both. |
---|
384 | @see getPart() |
---|
385 | */ |
---|
386 | void attachToPart(Part* p) {part=p; joint=0;} |
---|
387 | |
---|
388 | /** Attach this Neuro to the specified Joint or detach it from the body if p==NULL. |
---|
389 | Neuro can be attached to either Part or Joint, but not both. |
---|
390 | @see getJoint() |
---|
391 | */ |
---|
392 | void attachToJoint(Joint* j) {joint=j; part=0;} |
---|
393 | |
---|
394 | void attachToPart(int i); |
---|
395 | void attachToJoint(int i); |
---|
396 | |
---|
397 | /** @return Part the Neuro is attached to, or NULL if it has no defined location on the body. |
---|
398 | @see attachToPart() |
---|
399 | */ |
---|
400 | Part *getPart() {return part;} |
---|
401 | |
---|
402 | /** @return Joint the Neuro is attached to, or NULL if it has no defined location on the body. |
---|
403 | @see attachToJoint() |
---|
404 | */ |
---|
405 | Joint *getJoint() {return joint;} |
---|
406 | |
---|
407 | int isOldEffector(); |
---|
408 | int isOldReceptor(); |
---|
409 | int isOldNeuron(); |
---|
410 | int isNNConnection(); |
---|
411 | |
---|
412 | /** @return the number of inputs connected to this Neuro. |
---|
413 | Functions like getInput(), getInputWeight() will accept connection number [0..InputCount-1] |
---|
414 | */ |
---|
415 | int getInputCount() const {return inputs.size();} |
---|
416 | |
---|
417 | /// @return the number of output connections (including possible self-connections) |
---|
418 | int getOutputsCount() const; |
---|
419 | |
---|
420 | /** @return the Neuro connected as i-th input */ |
---|
421 | Neuro* getInput(int i) const {return (i>=inputs.size())?0:inputs(i).n;} |
---|
422 | /** @return the Neuro connected as i-th input. |
---|
423 | @param weight |
---|
424 | */ |
---|
425 | Neuro* getInput(int i,float &weight) const; |
---|
426 | /** @return connectin weight for i-th input */ |
---|
427 | float getInputWeight(int i) const; |
---|
428 | /** change connection weight for i-th input */ |
---|
429 | void setInputWeight(int i,float weight); |
---|
430 | /** connect i-th input with another neuron */ |
---|
431 | void setInput(int i,Neuro*n); |
---|
432 | /** connect i-th input with another neuron */ |
---|
433 | void setInput(int i,Neuro*n,float weight); |
---|
434 | /** add new input. @return its reference number */ |
---|
435 | int addInput(Neuro* child,float weight=1.0,const SString* info=0); |
---|
436 | /** @return reference number [0..InputCount-1] of the input |
---|
437 | or -1 if 'child' is not connected with this Neuro.*/ |
---|
438 | int findInput(Neuro* child) const; |
---|
439 | void removeInput(int refno); |
---|
440 | /** @return reference number of the child connection, like findInput() */ |
---|
441 | int removeInput(Neuro* child); |
---|
442 | |
---|
443 | int findInputs(SList& result,const char* classname=0,const Part* part=0,const Joint* joint=0) const; |
---|
444 | int findOutputs(SList& result,const char* classname=0,const Part* part=0,const Joint* joint=0) const; |
---|
445 | |
---|
446 | /* class database retrieval */ |
---|
447 | static int getClassCount(); |
---|
448 | /** @return Neuro class name. |
---|
449 | @param classindex 0 .. getClassCount() |
---|
450 | */ |
---|
451 | static SString getClassName(int classindex); |
---|
452 | static NeuroClass* getClass(int classindex); |
---|
453 | static NeuroClass* getClass(const SString& classname); |
---|
454 | static int getClassIndex(const NeuroClass*nc); |
---|
455 | |
---|
456 | #ifdef MODEL_V1_COMPATIBLE |
---|
457 | friend class OldItems; |
---|
458 | long neuro_refno; ///< parent ref# (called neuro_refno for compatibility with old Neuro class), @see moredata |
---|
459 | long conn_refno; ///< the other neuron ref# in N-N connections, can be used by some other items |
---|
460 | double weight; ///< weight of the N-N connection and (all?) receptors |
---|
461 | double inertia,force,sigmo; //!!! |
---|
462 | |
---|
463 | /** @deprecated provided only for compatibility with old Neuro/NeuroItem classes. |
---|
464 | use getInputCount() instead. @sa getInputCount() */ |
---|
465 | int getItemCount() {return oldItems().getItemCount();} |
---|
466 | |
---|
467 | /** @deprecated provided only for compatibility with old Neuro/NeuroItem classes. |
---|
468 | use getInput() instead. @sa getInput() */ |
---|
469 | NeuroItem* getNeuroItem(int i) {return oldItems().getNeuroItem(i);} |
---|
470 | #endif |
---|
471 | |
---|
472 | protected: |
---|
473 | #ifdef MODEL_V1_COMPATIBLE |
---|
474 | /** old Neuro compatibility */ |
---|
475 | OldItems* olditems; |
---|
476 | OldItems& oldItems() {if (!olditems) olditems=new OldItems(*this); return *olditems;} |
---|
477 | void invalidateOldItems() {if (olditems) olditems->freelist();} |
---|
478 | #endif |
---|
479 | |
---|
480 | public: |
---|
481 | |
---|
482 | // not really private, but you should not access those directly |
---|
483 | double state; |
---|
484 | |
---|
485 | /** may reference parent neuron if parentcount is exacty 1. parent is invalid otherwise. @sa parentcount */ |
---|
486 | Neuro *parent; |
---|
487 | int parentcount; ///< @sa parent |
---|
488 | |
---|
489 | Part *part; ///< link to the Part |
---|
490 | Joint *joint; ///< link to the Joint - required by some objects (eg.muscles) |
---|
491 | Orient o; ///< rotation matrix calculated from "rot" |
---|
492 | static ParamEntry emptyParamTab[]; |
---|
493 | static Param& getStaticParam(); |
---|
494 | }; |
---|
495 | |
---|
496 | #ifdef MODEL_V1_COMPATIBLE |
---|
497 | class NeuroItem; |
---|
498 | |
---|
499 | /// for compatibility with old NeuroItem class. |
---|
500 | class NeuroItem: public Neuro |
---|
501 | { |
---|
502 | public: |
---|
503 | NeuroItem() {} |
---|
504 | }; |
---|
505 | #endif |
---|
506 | |
---|
507 | class NeuroExt: public Neuro |
---|
508 | { |
---|
509 | public: |
---|
510 | #define STATRICKCLASS NeuroExt |
---|
511 | PARAMGETDEF(neuroclass); |
---|
512 | PARAMSETDEF(neuroclass); |
---|
513 | #undef STATRICKCLASS |
---|
514 | static ParamEntry *getParamTab(); |
---|
515 | }; |
---|
516 | |
---|
517 | class NeuroConn |
---|
518 | { |
---|
519 | public: |
---|
520 | int n1_refno,n2_refno; |
---|
521 | double weight; |
---|
522 | SString info; |
---|
523 | NeuroConn(); |
---|
524 | }; |
---|
525 | |
---|
526 | extern ParamEntry f0_part_paramtab[],f0_joint_paramtab[],f0_nodeltajoint_paramtab[],f0_neuro_paramtab[],f0_neuroconn_paramtab[],f0_neuroitem_paramtab[]; |
---|
527 | |
---|
528 | #endif |
---|