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

« back to all changes in this revision

Viewing changes to src/visualizator/visualizator/wxvtk/reconstruction/surface.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: surface.h 3558 2011-03-20 20:02:22Z 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 "reconstructionviews.h"
 
16
#include <yasper/yasper.h>
 
17
#include "../../estudios/visualizatorstudy.h"
 
18
#include <api/icontroladoreventos.h>
 
19
 
 
20
namespace GNC {
 
21
        namespace GUI {
 
22
                class StatusBarProgreso;
 
23
        }
 
24
        namespace GCS {
 
25
                class IComando;
 
26
        }
 
27
}
 
28
 
 
29
namespace MedicalViewer {
 
30
        namespace Reconstruction {
 
31
                namespace DataSet {
 
32
                        class Slice;
 
33
                        class DataSet;
 
34
                }
 
35
 
 
36
                namespace Pipelines {
 
37
                        class SurfacePipeline;
 
38
                }
 
39
        }
 
40
}
 
41
 
 
42
namespace MedicalViewer {
 
43
 
 
44
        namespace Reconstruction {
 
45
 
 
46
                namespace GUI {
 
47
                        class SurfaceTimerDemo;
 
48
 
 
49
                        class wxSurfaceRendering : public wxSurfaceRenderingBase, public GNC::GCS::IObservador
 
50
                        {
 
51
                        public:
 
52
                                typedef GNC::GCS::IContextoEstudio         TStudy;
 
53
                                typedef GNC::GCS::IContextoEstudioReferido TRefStudy;
 
54
                                typedef MedicalViewer::Reconstruction::Pipelines::SurfacePipeline TPipeline;
 
55
 
 
56
                                wxSurfaceRendering(wxWindow* pParent, const GnkPtr<TStudy>& study);
 
57
                                ~wxSurfaceRendering();
 
58
 
 
59
 
 
60
                        public:
 
61
                                void SetStereo(bool enabled);
 
62
                                void SetDemo(bool enabled);
 
63
                                void ResetCamera();
 
64
 
 
65
                                void SaveFrameToSerie();
 
66
 
 
67
                        public:
 
68
 
 
69
                                virtual void OnWindowSize( wxSizeEvent& event );
 
70
                                virtual void OnToolTitleButtonClick( wxCommandEvent& event );
 
71
                                virtual void OnTitleLeftUp( wxMouseEvent& event );
 
72
                                virtual void OnToolSurface1TextChanged( wxCommandEvent& event );
 
73
                                virtual void OnCheckEnable2( wxCommandEvent& event );
 
74
                                virtual void OnToolSurface2TextChanged( wxCommandEvent& event );
 
75
                                virtual void OnEraseBackground( wxEraseEvent& event );
 
76
                                virtual void OnDataSetSliderChanged( wxScrollEvent& event );
 
77
                                virtual void OnApplyClick(wxCommandEvent &event);
 
78
                                virtual void OnComboFirstValue(wxCommandEvent &event);
 
79
                                virtual void OnComboSecondValue(wxCommandEvent &event);
 
80
                                virtual void SetValueCombo(int selection, wxTextCtrl* pText);
 
81
                                virtual void ProcesarEvento(GNC::GCS::Eventos::IEvento *evt);
 
82
 
 
83
 
 
84
                        protected:
 
85
                                GnkPtr<TRefStudy> RefStudy;
 
86
                                GnkPtr<TPipeline> Pipeline;
 
87
                                SurfaceTimerDemo* m_pTimer;
 
88
                                bool m_editing;
 
89
                                GNC::GUI::StatusBarProgreso* m_pProgressBar;
 
90
 
 
91
                        };
 
92
                }
 
93
        }
 
94
}