source: flair-src/trunk/lib/FlairMeta/src/MetaVrpnObject.h@ 426

Last change on this file since 426 was 420, checked in by Sanahuja Guillaume, 4 years ago

update

File size: 1.7 KB
RevLine 
[10]1// %flair:license{
[15]2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
[10]4// %flair:license}
[7]5/*!
6 * \file MetaVrpnObject.h
7 * \brief Classe haut niveau intégrant un objet VRPN
8 * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
9 * \date 2013/04/08
10 * \version 3.4
11 */
12
13#ifndef METAVRPNOBJECT_H
14#define METAVRPNOBJECT_H
15
16#include <VrpnObject.h>
[286]17#include <VrpnClient.h>
[167]18#include <io_data.h>
19#include <Vector3D.h>
[7]20
[15]21namespace flair {
[122]22 namespace gui {
23 class DataPlot1D;
24 class DataPlot2D;
25 class Tab;
26 }
27 namespace filter {
28 class EulerDerivative;
29 class LowPassFilter;
30 }
[7]31}
32
[15]33namespace flair {
34namespace meta {
[7]35
[15]36/*! \class MetaVrpnObject
37*
38* \brief Classe haut niveau intégrant un objet VRPN
39*
40* Contient un objet VRPN et une dérivée, d'euler.
41*/
42class MetaVrpnObject : public sensor::VrpnObject {
43public:
[286]44 MetaVrpnObject(std::string name,sensor::VrpnClient *client=sensor::GetVrpnClient());
45 MetaVrpnObject(std::string name,uint8_t id,sensor::VrpnClient *client=sensor::GetVrpnClient());
[15]46 ~MetaVrpnObject();
47 gui::DataPlot1D *VxPlot(void) const; // 1,0
48 gui::DataPlot1D *VyPlot(void) const; // 1,1
49 gui::DataPlot1D *VzPlot(void) const; // 1,2
50 gui::DataPlot2D *XyPlot(void) const;
[167]51 void GetSpeed(core::Vector3Df &speed) const;
[420]52 filter::EulerDerivative* GetEulerDerivative(void) const;
[7]53
[15]54private:
[286]55 void ConstructorCommon(std::string name,sensor::VrpnClient *client);
[15]56 filter::LowPassFilter *pbas;
57 filter::EulerDerivative *euler;
58 gui::DataPlot2D *xy_plot;
59 gui::DataPlot1D *vx_opti_plot, *vy_opti_plot, *vz_opti_plot;
60 gui::Tab *plot_tab;
61};
[7]62} // end namespace meta
63} // end namespace flair
[15]64#endif // METAVRPNOBJECT_H
Note: See TracBrowser for help on using the repository browser.