Changeset 122 in flair-src for trunk/lib/FlairMeta/src/MetaVrpnObject.cpp
- Timestamp:
- 01/06/17 13:56:26 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairMeta/src/MetaVrpnObject.cpp
r15 r122 39 39 namespace meta { 40 40 41 MetaVrpnObject::MetaVrpnObject( const VrpnClient *parent,string name)42 : VrpnObject( parent, name, parent->GetTabWidget()) {43 ConstructorCommon( parent,name);41 MetaVrpnObject::MetaVrpnObject(string name) 42 : VrpnObject( name, GetVrpnClient()->GetTabWidget()) { 43 ConstructorCommon(name); 44 44 } 45 45 46 MetaVrpnObject::MetaVrpnObject( const VrpnClient *parent,std::string name,46 MetaVrpnObject::MetaVrpnObject(std::string name, 47 47 uint8_t id) 48 : VrpnObject( parent, name, id, parent->GetTabWidget()) {49 ConstructorCommon( parent,name);48 : VrpnObject(name, id, GetVrpnClient()->GetTabWidget()) { 49 ConstructorCommon( name); 50 50 } 51 51 52 void MetaVrpnObject::ConstructorCommon( const VrpnClient *parent,string name) {52 void MetaVrpnObject::ConstructorCommon(string name) { 53 53 cvmatrix_descriptor *desc = new cvmatrix_descriptor(6, 1); 54 54 for (int i = 0; i < 6; i++) { … … 60 60 } 61 61 62 pbas = new LowPassFilter(this, parent->GetLayout()->NewRow(),62 pbas = new LowPassFilter(this, GetVrpnClient()->GetLayout()->NewRow(), 63 63 name + " Passe bas", prev_value); 64 64 … … 72 72 } 73 73 74 euler = new EulerDerivative(pbas, parent->GetLayout()->NewRow(),74 euler = new EulerDerivative(pbas, GetVrpnClient()->GetLayout()->NewRow(), 75 75 name + "_euler", prev_value); 76 76 … … 82 82 vz_opti_plot->AddCurve(euler->Matrix()->Element(5)); 83 83 84 plot_tab = new Tab( parent->GetTabWidget(), "Mesures (xy) " + name);84 plot_tab = new Tab(GetVrpnClient()->GetTabWidget(), "Mesures (xy) " + name); 85 85 xy_plot = new DataPlot2D(plot_tab->NewRow(), "xy", "y", -5, 5, "x", -5, 5); 86 86 xy_plot->AddCurve(Output()->Element(4, 0), Output()->Element(3, 0));
Note:
See TracChangeset
for help on using the changeset viewer.