GLC_lib  2.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
glc_trackballmover.h
Go to the documentation of this file.
1 /****************************************************************************
2 
3  This file is part of the GLC-lib library.
4  Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net)
5  http://glc-lib.sourceforge.net
6 
7  GLC-lib is free software; you can redistribute it and/or modify
8  it under the terms of the GNU Lesser General Public License as published by
9  the Free Software Foundation; either version 3 of the License, or
10  (at your option) any later version.
11 
12  GLC-lib is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU Lesser General Public License for more details.
16 
17  You should have received a copy of the GNU Lesser General Public License
18  along with GLC-lib; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 
21  *****************************************************************************/
23 
24 #ifndef GLC_TRACKBALLMOVER_H_
25 #define GLC_TRACKBALLMOVER_H_
26 
27 #include "glc_mover.h"
28 
29 #include "../glc_config.h"
30 
33 
34 
36 {
38 
40 
41 public:
43  GLC_TrackBallMover(GLC_Viewport*, const QList<GLC_RepMover*>& repsList= QList<GLC_RepMover*>());
44 
47 
49  virtual ~GLC_TrackBallMover();
51 
53 
55 
56 public:
58  virtual GLC_Mover* clone() const;
60 
62 
64 
65 public:
67  virtual void init(const GLC_UserInput& userInput);
68 
70  virtual bool move(const GLC_UserInput& userInput);
71 
73  void setRatio(double ratio);
74 
76 
78 // Private services Functions
80 private:
82  GLC_Vector3d mapForTracking( double , double) const;
83 
85 // Private Members
87 private:
89  double m_Ratio;
90 
91 
92 };
93 
94 #endif /* GLC_TRACKBALLMOVER_H_ */

©2005-2013 Laurent Ribon