2
* $Id: GFooExtensionView.h 3681 2011-04-12 10:53:31Z tovar $
5
* Copyright 2008 MetaEmotion S.L. All rights reserved.
10
#include "gfooextensionbaseviews.h"
12
#include <export/iherramientapuntero.h>
13
#include <export/iherramientaregla.h>
14
#include <export/iherramientaangulo.h>
15
#include <export/iherramientaelevacion.h>
16
#include <api/inotificadoresherramientas.h>
17
#include <api/icontroladoreventos.h>
18
#include <api/ianotador.h>
20
#include <vtkSmartPointer.h>
21
#include <vtkImageBlend.h>
22
#include <vtkContourFilter.h>
23
#include <vtkPolyDataMapper.h>
24
#include <vtkImageMapToColors.h>
25
#include <vtkContourFilter.h>
27
#include <vtkImageData.h>
31
namespace FooExtension{
32
class FooExtensionView;
34
class GFooExtensionView: public GFooExtensionViewBase, public GNC::GCS::IContratoWidgets, public GNC::GCS::IObservador, public GNC::GCS::IAnotador
37
GFooExtensionView(FooExtensionView* pView);
43
virtual void OnPaint(wxPaintEvent& evt);
44
virtual void OnEraseBackground( wxEraseEvent& event );
45
virtual void OnFocus(wxChildFocusEvent& event);
46
virtual void OnSize(wxSizeEvent& event);
47
void OnMouseWheel( wxMouseEvent& event );
48
void OnKeyDown( wxKeyEvent& event );
49
void GoToSlice(int i);
50
void OnScrollSliderSerie(wxScrollEvent& event);
51
// view this slice number
52
void SetSlice(unsigned int vid, bool force = false);
55
virtual vtkGinkgoImageViewer* GetViewer();
57
//Ginkgo CADx events interface
58
void PreProcesarEvento(GNC::GCS::Eventos::IEvento* evt, GNC::GCS::IControladorEventos::TipoListaPunterosEventos& lista);
59
void ProcesarEvento(GNC::GCS::Eventos::IEvento *evt) ;
63
virtual std::string GetTopLeftAnnotation(GNC::GCS::Contexto3D* c);
64
virtual std::string GetTopRightAnnotation(GNC::GCS::Contexto3D* c);
65
virtual std::string GetBottomLeftAnnotation(GNC::GCS::Contexto3D* c);
66
virtual std::string GetBottomRightAnnotation(GNC::GCS::Contexto3D* c);
67
virtual std::string GetAnotacionPosicion(GNC::GCS::Vector* pPosicionRaton);
71
FooExtension::FooExtensionView* IView;