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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Tille
  • Date: 2011-05-02 08:09:26 UTC
  • Revision ID: james.westby@ubuntu.com-20110502080926-bql5wep49c7hg91t
Tags: upstream-2.4.1.1
ImportĀ upstreamĀ versionĀ 2.4.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  
 
3
 *  $Id: wanotacionposicion.h 3535 2011-03-18 17:57:05Z carlos $
 
4
 *  Ginkgo CADx Project
 
5
 *
 
6
 *  Copyright 2008-10 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 <api/iwidgets.h>
 
16
#include <api/icontroladoreventos.h>
 
17
#include <vector>
 
18
 
 
19
class vtkImageData;
 
20
 
 
21
namespace GNC {
 
22
        namespace GCS {
 
23
                class IAnotador;
 
24
                namespace Widgets {
 
25
 
 
26
                        //---------------------------------------------------------------------
 
27
 
 
28
                        class WAnotacionPosicion : public GNC::GCS::Widgets::IWidget {
 
29
 
 
30
 
 
31
                        //region "Constructor y destructor"
 
32
 
 
33
                        public:
 
34
                                WAnotacionPosicion(GNC::GCS::IAnotador* annotator, IWidgetsManager* pManager, long vid, const char* nombre, long gid);
 
35
 
 
36
                                ~WAnotacionPosicion();
 
37
 
 
38
                                //endregion
 
39
 
 
40
                                //region "Interfaz especifica"
 
41
 
 
42
                                virtual void OnMouseEvents(GNC::GCS::Eventos::EventoRaton&);
 
43
 
 
44
                                virtual void OnKeyEvents(GNC::GCS::Eventos::EventoTeclado&);
 
45
 
 
46
                                virtual bool HitTest(float x, float y, float umbralCuadrado);
 
47
 
 
48
                                virtual bool HitTest(GNC::GCS::Vector* vertices, int numVertices);
 
49
 
 
50
                                virtual void Render(GNC::GCS::Contexto3D* c);
 
51
 
 
52
                                virtual void Seleccionar(bool seleccionado);
 
53
 
 
54
                                virtual void Iluminar(bool iluminado);
 
55
 
 
56
                                virtual void Ocultar(bool oculto);
 
57
 
 
58
                                //endregion
 
59
 
 
60
                                //region "Interfaz especifica"
 
61
                        public:
 
62
                                virtual void SetAnotador(GNC::GCS::IAnotador* anotador);
 
63
                                GNC::GCS::IAnotador* m_pAnnotator;
 
64
                                //endregion
 
65
                        };
 
66
                }
 
67
        }
 
68
}