00001 00002 #ifndef __WX__MPR__BASE__DATA__H 00003 #define __WX__MPR__BASE__DATA__H 00004 00005 /*#include <vtkCommand.h> 00006 #include "vtkRenderWindow.h" 00007 #include <vtkVolumeRayCastMapper.h> 00008 00009 #include "vtkProp.h" 00010 00011 00012 #include "vtkStripper.h" 00013 #include <vtkGlyph3D.h> 00014 #include "vtkLODActor.h" 00015 00016 //#include "vtkContourFilter.h" 00017 //#include "vtkPolyDataNormals.h" 00018 #include <vtkMarchingCubes.h> 00019 00020 #include <vtkClipPolyData.h> 00021 00022 #include <vtkPiecewiseFunction.h> 00023 00024 #include <vtkVolume.h> 00025 #include <vtkVolumeProperty.h> 00026 #include <vtkVolumeRayCastMapper.h> 00027 #include <vtkVolumeRayCastCompositeFunction.h> 00028 #include <vtkBoxWidget.h>*/ 00029 00030 00031 00032 //#include "vtkLookupTable.h" 00033 //#include "vtkImageActor.h" 00034 00035 //#include <vtkPointWidget.h> 00036 00037 00038 //#include "./pPlotter/HistogramDialog.h" 00039 #include "vtkTransform.h" 00040 00041 #include "marTypes.h" 00042 //------------------------------------------------------------------ 00043 00044 00045 #define VTKMPRDATA_MAXTISSUE 4 00046 00047 00048 //------------------------------------------------------------------ 00049 //------------------------------------------------------------------ 00050 //------------------------------------------------------------------ 00051 00052 #include "vtkBaseData.h" 00053 //#include "boxSurfaceObserver.h" 00054 00055 //------------------------------------------------------------------ 00056 //------------------------------------------------------------------ 00057 //------------------------------------------------------------------ 00058 00059 class creaMaracasVisu_EXPORT vtkMPRBaseData: public vtkBaseData{ 00060 public: 00061 vtkMPRBaseData(); 00062 virtual ~vtkMPRBaseData(); 00063 virtual void Configure(); 00064 int GetMaxPositionX( ); 00065 int GetMaxPositionY( ); 00066 int GetMaxPositionZ( ); 00067 double GetX(); 00068 double GetY(); 00069 void SetX(double x); 00070 void SetY(double y); 00071 void GetDimensionExtention(int *x1,int *x2,int *y1,int *y2,int *z1,int *z2); 00072 vtkTransform *GetTransformOrientation(); 00073 void SetNormal(double nx, double ny, double nz); 00074 void InitTransformOrientation(vtkTransform *trans); 00075 00076 protected: 00077 int _x1,_x2,_y1,_y2,_z1,_z2; 00078 00079 private: 00080 double _x,_y; 00081 vtkTransform *_transformOrientation; 00082 }; 00083 00084 00085 //------------------------------------------------------------------ 00086 //------------------------------------------------------------------ 00087 //------------------------------------------------------------------ 00088 00089 00090 00091 00092 00093 //------------------------------------------------------------------ 00094 //------------------------------------------------------------------ 00095 //------------------------------------------------------------------ 00096 00097 // Callback for the interaction 00098 //class boxVolumeObserver : public vtkCommand 00099 //{ 00100 // public: 00101 // vtkRenderWindow *_renWin; 00102 // vtkVolumeRayCastMapper *_volumeMapper; 00103 // 00104 // 00105 // boxVolumeObserver() { } 00106 // 00107 // virtual char const *GetClassName() const { return "boxVolumeObserver";} 00108 // 00109 // static boxVolumeObserver *New(){ 00110 // boxVolumeObserver * result; 00111 // result = new boxVolumeObserver(); 00112 // return result; 00113 // } 00114 // 00115 // virtual void Execute(vtkObject *wdg, unsigned long eventId, void* calldata) ; 00116 // void SetRenWin( vtkRenderWindow *renWin ); 00117 // void SetVolumeMapper(vtkVolumeRayCastMapper *volumeMapper); 00118 //}; 00119 00120 //------------------------------------------------------------------ 00121 //------------------------------------------------------------------ 00122 //------------------------------------------------------------------ 00123 00124 00125 //------------------------------------------------------------------ 00126 //------------------------------------------------------------------ 00127 //------------------------------------------------------------------ 00128 00129 00130 00131 #endif // __WX__MPR__BASE__DATA__H 00132 00133