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

Last change on this file since 10 was 10, checked in by Sanahuja Guillaume, 6 years ago

lic

File size: 1.9 KB
Line 
1// %flair:license{
2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
4// %flair:license}
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>
17#include "io_data.h"
18
19namespace flair
20{
21 namespace core
22 {
23 class Vector3D;
24 class FloatType;
25 }
26 namespace gui
27 {
28 class DataPlot1D;
29 class DataPlot2D;
30 class Tab;
31 }
32 namespace filter
33 {
34 class EulerDerivative;
35 class LowPassFilter;
36 }
37 namespace sensor
38 {
39 class VrpnClient;
40 }
41}
42
43namespace flair
44{
45namespace meta
46{
47
48 /*! \class MetaVrpnObject
49 *
50 * \brief Classe haut niveau intégrant un objet VRPN
51 *
52 * Contient un objet VRPN et une dérivée, d'euler.
53 */
54 class MetaVrpnObject: public sensor::VrpnObject {
55 public:
56 MetaVrpnObject(const sensor::VrpnClient *parent,std::string name);
57 MetaVrpnObject(const sensor::VrpnClient *parent,std::string name,uint8_t id);
58 ~MetaVrpnObject();
59 gui::DataPlot1D* VxPlot(void) const;//1,0
60 gui::DataPlot1D* VyPlot(void) const;//1,1
61 gui::DataPlot1D* VzPlot(void) const;//1,2
62 gui::DataPlot2D* XyPlot(void) const;
63 void GetSpeed(core::Vector3D &speed) const;
64
65 private:
66 void ConstructorCommon(const sensor::VrpnClient *parent,std::string name);
67 filter::LowPassFilter *pbas;
68 filter::EulerDerivative *euler;
69 gui::DataPlot2D *xy_plot;
70 gui::DataPlot1D *vx_opti_plot,*vy_opti_plot,*vz_opti_plot;
71 gui::Tab* plot_tab;
72 core::FloatType elementDataType;
73
74 };
75} // end namespace meta
76} // end namespace flair
77#endif // METAVRPNOBJECT_H
Note: See TracBrowser for help on using the repository browser.