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