3
* $Id: wanotacionposicion.h 3535 2011-03-18 17:57:05Z carlos $
6
* Copyright 2008-10 MetaEmotion S.L. All rights reserved.
7
* http://ginkgo-cadx.com
9
* This file is licensed under LGPL v3 license.
10
* See License.txt for details
15
#include <api/iwidgets.h>
16
#include <api/icontroladoreventos.h>
26
//---------------------------------------------------------------------
28
class WAnotacionPosicion : public GNC::GCS::Widgets::IWidget {
31
//region "Constructor y destructor"
34
WAnotacionPosicion(GNC::GCS::IAnotador* annotator, IWidgetsManager* pManager, long vid, const char* nombre, long gid);
36
~WAnotacionPosicion();
40
//region "Interfaz especifica"
42
virtual void OnMouseEvents(GNC::GCS::Eventos::EventoRaton&);
44
virtual void OnKeyEvents(GNC::GCS::Eventos::EventoTeclado&);
46
virtual bool HitTest(float x, float y, float umbralCuadrado);
48
virtual bool HitTest(GNC::GCS::Vector* vertices, int numVertices);
50
virtual void Render(GNC::GCS::Contexto3D* c);
52
virtual void Seleccionar(bool seleccionado);
54
virtual void Iluminar(bool iluminado);
56
virtual void Ocultar(bool oculto);
60
//region "Interfaz especifica"
62
virtual void SetAnotador(GNC::GCS::IAnotador* anotador);
63
GNC::GCS::IAnotador* m_pAnnotator;