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

« back to all changes in this revision

Viewing changes to src/fooextension/fooextension/wxvtk/gfooextensionview.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
*  $Id: GFooExtensionView.h 3681 2011-04-12 10:53:31Z tovar $
 
3
*  Proyecto Ginkgo
 
4
*
 
5
*  Copyright 2008 MetaEmotion S.L. All rights reserved.
 
6
*
 
7
*/
 
8
#pragma once
 
9
 
 
10
#include "gfooextensionbaseviews.h"
 
11
 
 
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>
 
19
 
 
20
#include <vtkSmartPointer.h>
 
21
#include <vtkImageBlend.h>
 
22
#include <vtkContourFilter.h>
 
23
#include <vtkPolyDataMapper.h>
 
24
#include <vtkImageMapToColors.h>
 
25
#include <vtkContourFilter.h>
 
26
#include <vtkActor.h>
 
27
#include <vtkImageData.h>
 
28
#include <vector>
 
29
 
 
30
 
 
31
namespace FooExtension{
 
32
        class FooExtensionView;
 
33
        namespace GUI {
 
34
                class GFooExtensionView: public GFooExtensionViewBase, public GNC::GCS::IContratoWidgets, public GNC::GCS::IObservador, public GNC::GCS::IAnotador
 
35
                {
 
36
                public:
 
37
                        GFooExtensionView(FooExtensionView* pView);
 
38
                        ~GFooExtensionView();
 
39
 
 
40
                        void InitPipeline();
 
41
 
 
42
                        //region "Events"
 
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);
 
53
 
 
54
                        //Widgets contract
 
55
                        virtual vtkGinkgoImageViewer* GetViewer();
 
56
 
 
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) ;
 
60
                        //
 
61
 
 
62
                        //Ianotador
 
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);
 
68
                        //
 
69
 
 
70
                protected:
 
71
                        FooExtension::FooExtensionView*               IView;
 
72
                };
 
73
        }
 
74
}