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

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

lic

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