Changeset 104 for cpp/gdk/modelparts.cpp
- Timestamp:
- 07/23/13 18:15:30 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/gdk/modelparts.cpp
r81 r104 97 97 int _prefinputs,int _prefoutput,int _preflocation, 98 98 int *_vectordata,bool own_vd,int vhints) 99 :longname(_props->id), 100 name(_props->name), 101 description(_description), 99 :ownedvectordata(own_vd), 100 name(_props->name),longname(_props->id),description(_description), 102 101 props(_props), 103 102 prefinputs(_prefinputs), 104 103 prefoutput(_prefoutput), 105 104 preflocation(_preflocation), 106 vectordata(_vectordata), ownedvectordata(own_vd),107 visualhints(vhints),impl (0),active(1),genactive(0)105 vectordata(_vectordata), 106 visualhints(vhints),impl_count(0),/*impl(0),*/active(1),genactive(0) 108 107 {} 109 108 … … 114 113 115 114 NeuroClass::NeuroClass() 116 :name("Invalid"),props(empty_paramtab), 115 :ownedvectordata(0), 116 name("Invalid"), 117 props(empty_paramtab), 117 118 prefinputs(0), prefoutput(0), 118 preflocation(0), vectordata(0), ownedvectordata(0),119 impl(0),active(1), genactive(0)119 preflocation(0), vectordata(0), 120 visualhints(0),impl_count(0), /*impl(0),*/ active(1), genactive(0) 120 121 {} 121 122 … … 176 177 177 178 Neuro::Neuro(double _state,double _inertia,double _force,double _sigmo) 178 : state(_state),PartBase(getDefaultStyle())179 :PartBase(getDefaultStyle()),state(_state) 179 180 #ifdef MODEL_V1_COMPATIBLE 180 181 ,inertia(_inertia),force(_force),sigmo(_sigmo) … … 187 188 myclass=0; 188 189 knownclass=1; 190 part_refno=-1; joint_refno=-1; 189 191 } 190 192 … … 204 206 #endif 205 207 flags=0; 208 part_refno=-1; joint_refno=-1; 206 209 } 207 210 … … 614 617 /////////////////////////////////////// 615 618 616 const SString&Part::getDefaultStyle()617 { static SString s("part"); return s;}618 const SString&Joint::getDefaultStyle()619 { static SString s("joint"); return s;}619 SString Part::getDefaultStyle() 620 {return SString("part");} 621 SString Joint::getDefaultStyle() 622 {return SString("joint");} 620 623 /* 621 624 const SString& Neuro::getDefaultStyle() … … 624 627 {static SString s("neuroitem"); return s;} 625 628 */ 626 const SString&Neuro::getDefaultStyle()627 { static SString s("neuro"); return s;}629 SString Neuro::getDefaultStyle() 630 {return SString("neuro");} 628 631 629 632 Part::Part():PartBase(getDefaultStyle()) … … 776 779 }; 777 780 778 static Param staticparam; 779 780 ParamInterface &Part::extraProperties() 781 { 782 staticparam.setParamTab(f0_part_xtra_paramtab); 783 staticparam.select(this); 784 return staticparam; 785 } 786 787 ParamInterface &Joint::extraProperties() 788 { 789 staticparam.setParamTab(f0_joint_xtra_paramtab); 790 staticparam.select(this); 791 return staticparam; 792 } 793 794 ParamInterface &Neuro::extraProperties() 795 { 796 staticparam.setParamTab(f0_neuro_xtra_paramtab); 797 staticparam.select(this); 798 return staticparam; 799 } 800 801 ParamInterface &Part::properties() 802 { 803 staticparam.setParamTab(f0_part_paramtab); 804 staticparam.select(this); 805 return staticparam; 806 } 807 808 ParamInterface &Joint::properties() 809 { 810 staticparam.setParamTab(usedelta?f0_joint_paramtab:f0_nodeltajoint_paramtab); 811 staticparam.select(this); 812 return staticparam; 813 } 814 815 ParamInterface &Neuro::properties() 816 { 817 staticparam.setParamTab(f0_neuro_paramtab); 818 staticparam.select(this); 819 return staticparam; 781 Param Part::extraProperties() 782 { 783 return Param(f0_part_xtra_paramtab,this); 784 } 785 786 Param Joint::extraProperties() 787 { 788 return Param(f0_joint_xtra_paramtab,this); 789 } 790 791 Param Neuro::extraProperties() 792 { 793 return Param(f0_neuro_xtra_paramtab,this); 794 } 795 796 Param Part::properties() 797 { 798 return Param(f0_part_paramtab,this); 799 } 800 801 Param Joint::properties() 802 { 803 return Param(usedelta?f0_joint_paramtab:f0_nodeltajoint_paramtab,this); 804 } 805 806 Param Neuro::properties() 807 { 808 return Param(f0_neuro_paramtab,this); 820 809 } 821 810
Note: See TracChangeset
for help on using the changeset viewer.