~ubuntu-branches/ubuntu/wily/ginkgocadx/wily-proposed

« back to all changes in this revision

Viewing changes to src/cadxcore/widgets/wcamerarotation.h

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2013-10-24 21:28:17 UTC
  • mfrom: (1.2.2)
  • Revision ID: package-import@ubuntu.com-20131024212817-ej1skb9og09d3ht6
Tags: 3.5.0.1137.31+dfsg-1
New upstream release [October 2013]

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  
 
3
 *  $Id: wcamerarotation.h $
 
4
 *  Ginkgo CADx Project
 
5
 *
 
6
 *  Copyright 2008-14 MetaEmotion S.L. All rights reserved.
 
7
 *  http://ginkgo-cadx.com
 
8
 *
 
9
 *  This file is licensed under LGPL v3 license.
 
10
 *  See License.txt for details
 
11
 *
 
12
 *
 
13
 */
 
14
#pragma once
 
15
#include <vector>
 
16
 
 
17
#include <api/iwidgets.h>
 
18
#include <api/math/geometry3d.h>
 
19
 
 
20
namespace GNC {
 
21
        namespace GCS {
 
22
                namespace Widgets {
 
23
                        //---------------------------------------------------------------------
 
24
 
 
25
                        class WCameraRotation : public GNC::GCS::Widgets::IWidgetBuilder {
 
26
                        public:
 
27
 
 
28
                                typedef GNC::GCS::Vector                    TVector;
 
29
                                typedef GNC::GCS::Vector3D                  TVector3D;
 
30
                                typedef GNC::GCS::Events::EventoRaton      TEventoRaton;
 
31
                                typedef GNC::GCS::Events::EventoTeclado    TEventoTeclado;
 
32
                                typedef GNC::GCS::IWidgetsManager           TWidgetsManager;
 
33
                                typedef GNC::GCS::Widgets::IWidget          TWidget;
 
34
 
 
35
                                WCameraRotation(TWidgetsManager* pManager, const GNC::GCS::TriggerButton& buttonMask, long gid);
 
36
 
 
37
                                ~WCameraRotation();
 
38
 
 
39
                                virtual void OnMouseEvents(TEventoRaton& event);
 
40
                                virtual void OnKeyEvents(TEventoTeclado& event);
 
41
 
 
42
                                virtual void Render(GNC::GCS::Contexto3D* c);
 
43
 
 
44
                                virtual GNC::GCS::Widgets::TipoCursor GetCursor();
 
45
 
 
46
                                //region "Helpers"
 
47
 
 
48
                                bool         m_Dentro;
 
49
                                //endregion
 
50
 
 
51
 
 
52
                        protected:
 
53
                                TVector   m_NodoMoviendose;  // Cursor                          
 
54
                                
 
55
                                bool      m_MouseDown;
 
56
                                Estado    m_Estado;
 
57
                        };
 
58
                }
 
59
        }
 
60
}