]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMPRBaseData.h
76ea0a1c798fdcf260276b90f5086636a2e2904e
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxMPRBaseData.h
1 /*# ---------------------------------------------------------------------
2 #
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
4 #                        pour la Sant�)
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
8 #
9 #  This software is governed by the CeCILL-B license under French law and
10 #  abiding by the rules of distribution of free software. You can  use,
11 #  modify and/ or redistribute the software under the terms of the CeCILL-B
12 #  license as circulated by CEA, CNRS and INRIA at the following URL
13 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14 #  or in the file LICENSE.txt.
15 #
16 #  As a counterpart to the access to the source code and  rights to copy,
17 #  modify and redistribute granted by the license, users are provided only
18 #  with a limited warranty  and the software's author,  the holder of the
19 #  economic rights,  and the successive licensors  have only  limited
20 #  liability.
21 #
22 #  The fact that you are presently reading this means that you have had
23 #  knowledge of the CeCILL-B license and that you accept its terms.
24 # ------------------------------------------------------------------------ */
25
26
27 #ifndef __WX__MPR__BASE__DATA__H
28 #define __WX__MPR__BASE__DATA__H
29
30 /*#include <vtkCommand.h>
31 #include "vtkRenderWindow.h"
32 #include <vtkVolumeRayCastMapper.h>
33
34 #include "vtkProp.h"
35
36
37 #include "vtkStripper.h"
38 #include <vtkGlyph3D.h>
39 #include "vtkLODActor.h"
40
41 //#include "vtkContourFilter.h"
42 //#include "vtkPolyDataNormals.h"
43 #include <vtkMarchingCubes.h> 
44
45 #include <vtkClipPolyData.h>
46
47 #include <vtkPiecewiseFunction.h>
48
49 #include <vtkVolume.h>
50 #include <vtkVolumeProperty.h>
51 #include <vtkVolumeRayCastMapper.h>
52 #include <vtkVolumeRayCastCompositeFunction.h>
53 #include <vtkBoxWidget.h>*/
54
55
56
57 //#include "vtkLookupTable.h"
58 //#include "vtkImageActor.h"
59
60 //#include <vtkPointWidget.h> 
61
62
63 //#include "./pPlotter/HistogramDialog.h"
64 #include "vtkTransform.h"
65
66 #include "marTypes.h"
67 //------------------------------------------------------------------
68
69
70 #define VTKMPRDATA_MAXTISSUE 4
71
72
73 //------------------------------------------------------------------
74 //------------------------------------------------------------------
75 //------------------------------------------------------------------
76
77 #include "vtkBaseData.h"
78 //#include "boxSurfaceObserver.h"
79
80 //------------------------------------------------------------------
81 //------------------------------------------------------------------
82 //------------------------------------------------------------------
83 #ifdef _DEBUG
84 #include <crtdbg.h>
85 #define DEBUG_NEW new(_NORMAL_BLOCK ,__FILE__, __LINE__)
86 #else
87 #define DEBUG_NEW new
88 #endif
89 class creaMaracasVisu_EXPORT vtkMPRBaseData: public vtkBaseData{
90 public:
91         vtkMPRBaseData();
92         virtual                         ~vtkMPRBaseData();
93         virtual void    Configure();
94         int                             GetMaxPositionX( );
95         int                             GetMaxPositionY( );
96         int                             GetMaxPositionZ( );
97         double                  GetX();
98         double                  GetY();
99         void                            SetX(double x);
100         void                            SetY(double y);
101         void                            GetDimensionExtention(int *x1,int *x2,int *y1,int *y2,int *z1,int *z2);
102         vtkTransform*   GetTransformOrientation();
103         void                            SetNormal(double nx, double ny, double nz);
104         void                            InitTransformOrientation(vtkTransform *trans);
105
106 protected:
107         int                             _x1,_x2,_y1,_y2,_z1,_z2;
108
109 private:
110         double                  _x,_y;
111         vtkTransform    *_transformOrientation;
112 };
113
114
115 //------------------------------------------------------------------
116 //------------------------------------------------------------------
117 //------------------------------------------------------------------
118
119
120
121
122
123 //------------------------------------------------------------------
124 //------------------------------------------------------------------
125 //------------------------------------------------------------------
126
127 // Callback for the interaction
128 //class boxVolumeObserver : public vtkCommand
129 //{
130 //      public:
131 //              vtkRenderWindow                 *_renWin;
132 //              vtkVolumeRayCastMapper  *_volumeMapper;
133 //
134 //
135 //              boxVolumeObserver() {  }
136 //
137 //              virtual char const *GetClassName() const { return "boxVolumeObserver";}
138 //
139 //              static boxVolumeObserver *New(){
140 //                              boxVolumeObserver * result;
141 //                              result = new boxVolumeObserver();
142 //                      return result;
143 //              }
144 //
145 //              virtual void Execute(vtkObject *wdg, unsigned long eventId, void* calldata) ;
146 //              void SetRenWin( vtkRenderWindow *renWin );
147 //              void SetVolumeMapper(vtkVolumeRayCastMapper *volumeMapper);
148 //};
149
150 //------------------------------------------------------------------
151 //------------------------------------------------------------------
152 //------------------------------------------------------------------
153
154
155 //------------------------------------------------------------------
156 //------------------------------------------------------------------
157 //------------------------------------------------------------------
158
159
160
161 #endif // __WX__MPR__BASE__DATA__H
162
163