]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMPRBaseData.h
*** empty log message ***
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxMPRBaseData.h
1
2 #ifndef __WX__MPR__BASE__DATA__H
3 #define __WX__MPR__BASE__DATA__H
4
5 #include <vtkCommand.h>
6 #include "vtkRenderWindow.h"
7 #include <vtkVolumeRayCastMapper.h>
8 #include "vtkImageActor.h"
9 #include "vtkProp.h"
10 #include "vtkActor.h"
11 #include "vtkPolyDataMapper.h"
12 #include "vtkStripper.h"
13 #include <vtkGlyph3D.h>
14 #include "vtkLODActor.h"
15
16 //#include "vtkContourFilter.h"
17 //#include "vtkPolyDataNormals.h"
18 #include <vtkMarchingCubes.h> 
19
20 #include <vtkClipPolyData.h>
21 #include "vtkOutlineFilter.h"
22 #include <vtkPiecewiseFunction.h>
23 #include <vtkColorTransferFunction.h>
24 #include <vtkVolume.h>
25 #include <vtkVolumeProperty.h>
26 #include <vtkVolumeRayCastMapper.h>
27 #include <vtkVolumeRayCastCompositeFunction.h>
28 #include <vtkBoxWidget.h>
29
30 #include "vtkImageData.h"
31 #include "vtkLookupTable.h"
32 //#include "vtkImageActor.h"
33 #include <vtkImageMapToColors.h> 
34 #include <vtkPointWidget.h> 
35
36 #include "marImageData.h"
37 //#include "./pPlotter/HistogramDialog.h"
38  
39
40 #include "marTypes.h"
41 //------------------------------------------------------------------
42
43
44 #define VTKMPRDATA_MAXTISSUE 4
45
46
47 //------------------------------------------------------------------
48 //------------------------------------------------------------------
49 //------------------------------------------------------------------
50
51 #include "vtkBaseData.h"
52 #include "boxSurfaceObserver.h"
53
54 //------------------------------------------------------------------
55 //------------------------------------------------------------------
56 //------------------------------------------------------------------
57
58 class creaMaracasVisu_EXPORT vtkMPRBaseData: public vtkBaseData{
59 public:
60         vtkMPRBaseData();
61         virtual ~vtkMPRBaseData();
62         virtual void                    Configure();
63         int                                             GetMaxPositionX( );
64         int                                             GetMaxPositionY( );
65         int                                             GetMaxPositionZ( );
66         double                                  GetX();
67         double                                  GetY();
68         void                                    SetX(double x);
69         void                                    SetY(double y);
70         void                                    GetDimensionExtention(int *x1,int *x2,int *y1,int *y2,int *z1,int *z2);
71         vtkTransform                    *GetTransformOrientation();
72         void                                    SetNormal(double nx, double ny, double nz);
73         void                                    InitTransformOrientation(vtkTransform *trans);
74
75 protected:
76         int                                             _x1,_x2,_y1,_y2,_z1,_z2;
77
78 private:
79         double                                  _x,_y;
80         vtkTransform                    *_transformOrientation;
81 };
82
83
84 //------------------------------------------------------------------
85 //------------------------------------------------------------------
86 //------------------------------------------------------------------
87
88
89
90
91
92 //------------------------------------------------------------------
93 //------------------------------------------------------------------
94 //------------------------------------------------------------------
95
96 // Callback for the interaction
97 //class boxVolumeObserver : public vtkCommand
98 //{
99 //      public:
100 //              vtkRenderWindow                 *_renWin;
101 //              vtkVolumeRayCastMapper  *_volumeMapper;
102 //
103 //
104 //              boxVolumeObserver() {  }
105 //
106 //              virtual char const *GetClassName() const { return "boxVolumeObserver";}
107 //
108 //              static boxVolumeObserver *New(){
109 //                              boxVolumeObserver * result;
110 //                              result = new boxVolumeObserver();
111 //                      return result;
112 //              }
113 //
114 //              virtual void Execute(vtkObject *wdg, unsigned long eventId, void* calldata) ;
115 //              void SetRenWin( vtkRenderWindow *renWin );
116 //              void SetVolumeMapper(vtkVolumeRayCastMapper *volumeMapper);
117 //};
118
119 //------------------------------------------------------------------
120 //------------------------------------------------------------------
121 //------------------------------------------------------------------
122
123
124 //------------------------------------------------------------------
125 //------------------------------------------------------------------
126 //------------------------------------------------------------------
127
128
129
130 #endif // __WX__MPR__BASE__DATA__H
131
132