~ubuntu-branches/ubuntu/trusty/ginkgocadx/trusty

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2013-07-21 11:58:53 UTC
  • mfrom: (1.2.1) (7.1.6 experimental)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: package-import@ubuntu.com-20130721115853-0aii5ee76hxm8z1f
* New upstream release [July 2013]
  + new B-D: "libjsoncpp-dev".
  + new patch "unbundle-libjsoncpp.patch" to avoid building bundled
    "libjsoncpp-dev".
  + new patch "fix-wx.patch" to avoid FTBFS due to missing
    "-lwx_gtk2u_html-2.8".
* Removed unnecessary versioned Build-Depends.
* Removed obsolete lintian override.
* Reference get-orig-source implementation for orig.tar clean-up and
  DFSG-repackaging.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  
3
 
 *  $Id: wlupa.h 4478 2011-12-13 11:55:00Z carlos $
 
3
 *  $Id: wlupa.h $
4
4
 *  Ginkgo CADx Project
5
5
 *
6
 
 *  Copyright 2008-10 MetaEmotion S.L. All rights reserved.
 
6
 *  Copyright 2008-12 MetaEmotion S.L. All rights reserved.
7
7
 *  http://ginkgo-cadx.com
8
8
 *
9
9
 *  This file is licensed under LGPL v3 license.
18
18
#include <set>
19
19
 
20
20
#include <api/iwidgets.h>
21
 
#include <api/icontroladoreventos.h>
 
21
#include <api/observers/ieventsobserver.h>
22
22
#include <api/observers/iwidgetsobserver.h>
23
23
 
24
24
#ifdef __DEPRECATED
26
26
#endif
27
27
#include <vtkSmartPointer.h>
28
28
#include <vtkImageData.h>
29
 
#include <hackimageactor.h>
30
29
 
31
30
namespace GNC {
32
31
        namespace GCS {
59
58
 
60
59
                                virtual void SetModo(GNC::GCS::Widgets::ModoLupa modo);
61
60
 
62
 
                                virtual void OnMouseEvents(GNC::GCS::Eventos::EventoRaton&);
 
61
                                virtual void OnMouseEvents(GNC::GCS::Events::EventoRaton&);
63
62
 
64
 
                                virtual void OnKeyEvents(GNC::GCS::Eventos::EventoTeclado&);
 
63
                                virtual void OnKeyEvents(GNC::GCS::Events::EventoTeclado&);
65
64
 
66
65
                                virtual void Render(GNC::GCS::Contexto3D* c);
67
66
 
76
75
 
77
76
                        //----------------------------------------------------------------------------
78
77
 
79
 
                        class WLupa : public GNC::GCS::Widgets::IWidget, public GNC::GCS::IObservador {
 
78
                        class WLupa : public GNC::GCS::Widgets::IWidget, public GNC::GCS::IEventsObserver {
80
79
 
81
80
                        protected:
82
81
 
142
141
                                        return true;
143
142
                                }
144
143
 
145
 
                                virtual void OnMouseEvents(GNC::GCS::Eventos::EventoRaton&);
146
 
 
147
 
                                virtual void OnKeyEvents(GNC::GCS::Eventos::EventoTeclado&);
148
 
 
149
 
                                virtual bool HitTest(float x, float y, float umbralCuadrado);
 
144
                                virtual void OnMouseEvents(GNC::GCS::Events::EventoRaton&);
 
145
 
 
146
                                virtual void OnKeyEvents(GNC::GCS::Events::EventoTeclado&);
 
147
 
 
148
                                virtual bool HitTest(float x, float y, const GNC::GCS::Vector& umbral);
150
149
 
151
150
                                virtual bool HitTest(GNC::GCS::Vector* vertices, int numVertices);
152
151
 
198
197
 
199
198
                        //region Interfaz de eventos ginkgo
200
199
 
201
 
                                virtual void PreProcesarEvento(GNC::GCS::Eventos::IEvento *evt, GNC::GCS::IControladorEventos::TipoListaPunterosEventos& lista);
202
 
 
203
 
                                virtual void ProcesarEvento(GNC::GCS::Eventos::IEvento *evt);
 
200
                                virtual void ProcesarEvento(GNC::GCS::Events::IEvent *evt);
204
201
 
205
202
                        //endregion
206
203