glc_reptrackballmover.h

Go to the documentation of this file.
00001 /****************************************************************************
00002 
00003  This file is part of the GLC-lib library.
00004  Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net)
00005  Version 2.0.0 Beta 1, packaged on April 2010.
00006 
00007  http://glc-lib.sourceforge.net
00008 
00009  GLC-lib is free software; you can redistribute it and/or modify
00010  it under the terms of the GNU General Public License as published by
00011  the Free Software Foundation; either version 2 of the License, or
00012  (at your option) any later version.
00013 
00014  GLC-lib is distributed in the hope that it will be useful,
00015  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  GNU General Public License for more details.
00018 
00019  You should have received a copy of the GNU General Public License
00020  along with GLC-lib; if not, write to the Free Software
00021  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00022 
00023  *****************************************************************************/
00025 
00026 #ifndef GLC_REPTRACKBALLMOVER_H_
00027 #define GLC_REPTRACKBALLMOVER_H_
00028 
00029 #include "glc_repmover.h"
00030 #include "../geometry/glc_circle.h"
00031 #include "../sceneGraph/glc_3dviewinstance.h"
00032 
00033 #include "../glc_config.h"
00034 
00037 
00038 
00039 class GLC_LIB_EXPORT GLC_RepTrackBallMover : public GLC_RepMover
00040 {
00041 public:
00043         GLC_RepTrackBallMover(GLC_Viewport*);
00044 
00046         GLC_RepTrackBallMover(const GLC_RepTrackBallMover&);
00047 
00048         // Destructor
00049         virtual ~GLC_RepTrackBallMover();
00050 
00051 
00053 
00055 
00056 
00057         virtual GLC_RepMover* clone() const;
00059 
00061 
00063 
00064 public:
00065 
00067         virtual void init();
00068 
00070         virtual void update();
00071 
00073         virtual void setMainColor(const QColor& color);
00074 
00076 
00078 
00080 
00081 public:
00083         virtual void glDraw();
00084 
00086 
00088 // Private services Functions
00090 private:
00092         void computeRadius();
00093 
00095 // Private Members
00097 private:
00099         double m_Radius;
00101         GLC_Circle m_MainCircle;
00103         GLC_3DViewInstance m_Arc1;
00105         GLC_Matrix4x4 m_MatArc1;
00107         GLC_3DViewInstance m_Arc2;
00109         GLC_Matrix4x4 m_MatArc2;
00111         double m_Ratio;
00112 
00113 };
00114 
00115 #endif /* GLC_REPTRACKBALLMOVER_H_ */

SourceForge.net Logo

©2005 Laurent Ribon