source: flair-src/trunk/lib/FlairFilter/src/unexported/TrajectoryGenerator2DCircle_impl.h @ 7

Last change on this file since 7 was 7, checked in by Sanahuja Guillaume, 5 years ago

filter and meta

File size: 1.5 KB
Line 
1/*!
2 * \file TrajectoryGenerator2DCircle_impl.h
3 * \brief Class generating a circle trajectory in 2D
4 * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
5 * \date 2013/04/08
6 * \version 4.0
7 */
8
9#ifndef TRAJECTORYGENERATOR2DCIRCLE_IMPL_H
10#define TRAJECTORYGENERATOR2DCIRCLE_IMPL_H
11
12#include <Object.h>
13#include <Vector2D.h>
14
15namespace flair
16{
17    namespace core
18    {
19        class cvmatrix;
20        class io_data;
21    }
22    namespace gui
23    {
24        class LayoutPosition;
25        class DoubleSpinBox;
26    }
27    namespace filter
28    {
29        class TrajectoryGenerator2DCircle;
30    }
31}
32
33
34/*! \class TrajectoryGenerator2DCircle_impl
35* \brief Class generating a circle trajectory in 2D
36*/
37
38class TrajectoryGenerator2DCircle_impl
39{
40
41    public:
42        TrajectoryGenerator2DCircle_impl(flair::filter::TrajectoryGenerator2DCircle* self,const flair::gui::LayoutPosition* position,std::string name);
43        ~TrajectoryGenerator2DCircle_impl();
44        void Update(flair::core::Time time);
45        void StartTraj(const flair::core::Vector2D &start_pos,float nb_lap);
46        void FinishTraj(void);
47        bool is_running;
48        flair::core::cvmatrix *output;
49        flair::core::Vector2D pos_off,vel_off;
50
51    private:
52        flair::core::Time previous_time;
53        float CurrentTime,FinishTime;
54        bool first_update,is_finishing;
55        flair::core::Vector2D pos;
56        float angle_off;
57        flair::gui::DoubleSpinBox *T,*veloctity,*acceleration,*rayon;
58        float nb_lap;
59};
60
61#endif // TRAJECTORYGENERATOR2DCIRCLE_IMPL_H
Note: See TracBrowser for help on using the repository browser.