glc_repflymover.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_REPFLYMOVER_H_
00027 #define GLC_REPFLYMOVER_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_RepFlyMover : public GLC_RepMover
00040 {
00042 
00044 
00045 public:
00047         GLC_RepFlyMover(GLC_Viewport* pViewport);
00048 
00050         GLC_RepFlyMover(const GLC_RepFlyMover& repFlyMover);
00051 
00053         virtual ~GLC_RepFlyMover();
00054 
00056 
00058 
00060 
00061 
00062         virtual GLC_RepMover* clone() const;
00063 
00065 
00067 
00069 
00070 
00071         virtual void update();
00072 
00074         virtual void setMainColor(const QColor& color);
00075 
00077         virtual void setThickness(double thickness);
00078 
00080 
00082 
00084 
00085 public:
00087         virtual void glDraw();
00088 
00090 
00091 
00093 // Private services Functions
00095 private:
00097         void createRepresentation();
00098 
00100 // Private Members
00102 private:
00104         double m_Radius;
00105 
00107         GLC_3DViewInstance m_CenterCircle;
00108 
00110         GLC_3DViewInstance m_Plane;
00111 
00113         GLC_3DViewInstance m_Hud;
00114 
00116         GLC_Vector2d m_HudOffset;
00117 };
00118 
00119 #endif /* GLC_REPFLYMOVER_H_ */

SourceForge.net Logo

©2005 Laurent Ribon