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>
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>
22 #include <vtkPiecewiseFunction.h>
24 #include <vtkVolume.h>
25 #include <vtkVolumeProperty.h>
26 #include <vtkVolumeRayCastMapper.h>
27 #include <vtkVolumeRayCastCompositeFunction.h>
28 #include <vtkBoxWidget.h>*/
32 //#include "vtkLookupTable.h"
33 //#include "vtkImageActor.h"
35 //#include <vtkPointWidget.h>
38 //#include "./pPlotter/HistogramDialog.h"
39 #include "vtkTransform.h"
42 //------------------------------------------------------------------
45 #define VTKMPRDATA_MAXTISSUE 4
48 //------------------------------------------------------------------
49 //------------------------------------------------------------------
50 //------------------------------------------------------------------
52 #include "vtkBaseData.h"
53 //#include "boxSurfaceObserver.h"
55 //------------------------------------------------------------------
56 //------------------------------------------------------------------
57 //------------------------------------------------------------------
60 #define DEBUG_NEW new(_NORMAL_BLOCK ,__FILE__, __LINE__)
64 class creaMaracasVisu_EXPORT vtkMPRBaseData: public vtkBaseData{
67 virtual ~vtkMPRBaseData();
68 virtual void Configure();
69 int GetMaxPositionX( );
70 int GetMaxPositionY( );
71 int GetMaxPositionZ( );
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);
82 int _x1,_x2,_y1,_y2,_z1,_z2;
86 vtkTransform *_transformOrientation;
90 //------------------------------------------------------------------
91 //------------------------------------------------------------------
92 //------------------------------------------------------------------
98 //------------------------------------------------------------------
99 //------------------------------------------------------------------
100 //------------------------------------------------------------------
102 // Callback for the interaction
103 //class boxVolumeObserver : public vtkCommand
106 // vtkRenderWindow *_renWin;
107 // vtkVolumeRayCastMapper *_volumeMapper;
110 // boxVolumeObserver() { }
112 // virtual char const *GetClassName() const { return "boxVolumeObserver";}
114 // static boxVolumeObserver *New(){
115 // boxVolumeObserver * result;
116 // result = new boxVolumeObserver();
120 // virtual void Execute(vtkObject *wdg, unsigned long eventId, void* calldata) ;
121 // void SetRenWin( vtkRenderWindow *renWin );
122 // void SetVolumeMapper(vtkVolumeRayCastMapper *volumeMapper);
125 //------------------------------------------------------------------
126 //------------------------------------------------------------------
127 //------------------------------------------------------------------
130 //------------------------------------------------------------------
131 //------------------------------------------------------------------
132 //------------------------------------------------------------------
136 #endif // __WX__MPR__BASE__DATA__H