2 #ifndef __WX__MPR__BASE__DATA__H
3 #define __WX__MPR__BASE__DATA__H
5 #include <vtkCommand.h>
6 #include "vtkRenderWindow.h"
7 #include <vtkVolumeRayCastMapper.h>
8 #include "vtkImageActor.h"
11 #include "vtkPolyDataMapper.h"
12 #include "vtkStripper.h"
13 #include <vtkGlyph3D.h>
14 #include "vtkLODActor.h"
16 //#include "vtkContourFilter.h"
17 //#include "vtkPolyDataNormals.h"
18 #include <vtkMarchingCubes.h>
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>
30 #include "vtkImageData.h"
31 #include "vtkLookupTable.h"
32 //#include "vtkImageActor.h"
33 #include <vtkImageMapToColors.h>
34 #include <vtkPointWidget.h>
36 #include "marImageData.h"
37 //#include "./pPlotter/HistogramDialog.h"
41 //------------------------------------------------------------------
44 #define VTKMPRDATA_MAXTISSUE 4
47 //------------------------------------------------------------------
48 //------------------------------------------------------------------
49 //------------------------------------------------------------------
51 #include "vtkBaseData.h"
52 #include "boxSurfaceObserver.h"
54 //------------------------------------------------------------------
55 //------------------------------------------------------------------
56 //------------------------------------------------------------------
58 class creaMaracasVisu_EXPORT vtkMPRBaseData: public vtkBaseData{
61 virtual ~vtkMPRBaseData();
62 virtual void Configure();
63 int GetMaxPositionX( );
64 int GetMaxPositionY( );
65 int GetMaxPositionZ( );
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);
76 int _x1,_x2,_y1,_y2,_z1,_z2;
80 vtkTransform *_transformOrientation;
84 //------------------------------------------------------------------
85 //------------------------------------------------------------------
86 //------------------------------------------------------------------
92 //------------------------------------------------------------------
93 //------------------------------------------------------------------
94 //------------------------------------------------------------------
96 // Callback for the interaction
97 //class boxVolumeObserver : public vtkCommand
100 // vtkRenderWindow *_renWin;
101 // vtkVolumeRayCastMapper *_volumeMapper;
104 // boxVolumeObserver() { }
106 // virtual char const *GetClassName() const { return "boxVolumeObserver";}
108 // static boxVolumeObserver *New(){
109 // boxVolumeObserver * result;
110 // result = new boxVolumeObserver();
114 // virtual void Execute(vtkObject *wdg, unsigned long eventId, void* calldata) ;
115 // void SetRenWin( vtkRenderWindow *renWin );
116 // void SetVolumeMapper(vtkVolumeRayCastMapper *volumeMapper);
119 //------------------------------------------------------------------
120 //------------------------------------------------------------------
121 //------------------------------------------------------------------
124 //------------------------------------------------------------------
125 //------------------------------------------------------------------
126 //------------------------------------------------------------------
130 #endif // __WX__MPR__BASE__DATA__H