GLC_lib  2.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
glc_rotationmanipulator.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_ROTATIONMANIPULATOR_H_
25 #define GLC_ROTATIONMANIPULATOR_H_
26 
27 #include "../glc_config.h"
29 #include "../maths/glc_line3d.h"
30 
31 class GLC_Viewport;
32 
35 
38 
40 {
42 
44 
45 public:
47  GLC_RotationManipulator(GLC_Viewport* pViewport, const GLC_Line3d& rotationLine);
48 
50  GLC_RotationManipulator(const GLC_RotationManipulator& rotationmanipulator);
51 
53  virtual ~GLC_RotationManipulator();
54 
56 
58 
60 
61 public:
63  virtual GLC_AbstractManipulator* clone() const;
64 
66  inline GLC_Line3d rotationLine() const
67  {return m_RotationLine;}
68 
70 
72 
74 
75 public:
77  void setRotationLine(const GLC_Line3d line)
78  {m_RotationLine= line;}
79 
81 
83 // Protected services function
85 protected:
87  virtual GLC_Matrix4x4 doManipulate(const GLC_Point3d& newPoint, const GLC_Vector3d& projectionDirection);
88 
90 // Private Member
92 private:
95 
96 };
97 
98 #endif /* GLC_ROTATIONMANIPULATOR_H_ */

©2005-2013 Laurent Ribon