1 /*# ---------------------------------------------------------------------
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
9 # This software is governed by the CeCILL-B license under French law and
10 # abiding by the rules of distribution of free software. You can use,
11 # modify and/ or redistribute the software under the terms of the CeCILL-B
12 # license as circulated by CEA, CNRS and INRIA at the following URL
13 # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14 # or in the file LICENSE.txt.
16 # As a counterpart to the access to the source code and rights to copy,
17 # modify and redistribute granted by the license, users are provided only
18 # with a limited warranty and the software's author, the holder of the
19 # economic rights, and the successive licensors have only limited
22 # The fact that you are presently reading this means that you have had
23 # knowledge of the CeCILL-B license and that you accept its terms.
24 # ------------------------------------------------------------------------ */
27 #ifndef __WX__MPR__BASE__DATA__H
28 #define __WX__MPR__BASE__DATA__H
30 /*#include <vtkCommand.h>
31 #include "vtkRenderWindow.h"
32 #include <vtkVolumeRayCastMapper.h>
37 #include "vtkStripper.h"
38 #include <vtkGlyph3D.h>
39 #include "vtkLODActor.h"
41 //#include "vtkContourFilter.h"
42 //#include "vtkPolyDataNormals.h"
43 #include <vtkMarchingCubes.h>
45 #include <vtkClipPolyData.h>
47 #include <vtkPiecewiseFunction.h>
49 #include <vtkVolume.h>
50 #include <vtkVolumeProperty.h>
51 #include <vtkVolumeRayCastMapper.h>
52 #include <vtkVolumeRayCastCompositeFunction.h>
53 #include <vtkBoxWidget.h>*/
57 //#include "vtkLookupTable.h"
58 //#include "vtkImageActor.h"
60 //#include <vtkPointWidget.h>
63 //#include "./pPlotter/HistogramDialog.h"
64 #include "vtkTransform.h"
67 //------------------------------------------------------------------
70 #define VTKMPRDATA_MAXTISSUE 4
73 //------------------------------------------------------------------
74 //------------------------------------------------------------------
75 //------------------------------------------------------------------
77 #include "vtkBaseData.h"
78 //#include "boxSurfaceObserver.h"
80 //------------------------------------------------------------------
81 //------------------------------------------------------------------
82 //------------------------------------------------------------------
85 #define DEBUG_NEW new(_NORMAL_BLOCK ,__FILE__, __LINE__)
89 class creaMaracasVisu_EXPORT vtkMPRBaseData: public vtkBaseData{
92 virtual ~vtkMPRBaseData();
93 virtual void Configure();
94 int GetMaxPositionX( );
95 int GetMaxPositionY( );
96 int GetMaxPositionZ( );
101 void GetDimensionExtention(int *x1,int *x2,int *y1,int *y2,int *z1,int *z2);
102 vtkTransform* GetTransformOrientation();
103 void SetNormal(double nx, double ny, double nz);
104 void InitTransformOrientation(vtkTransform *trans);
107 int _x1,_x2,_y1,_y2,_z1,_z2;
111 vtkTransform *_transformOrientation;
115 //------------------------------------------------------------------
116 //------------------------------------------------------------------
117 //------------------------------------------------------------------
123 //------------------------------------------------------------------
124 //------------------------------------------------------------------
125 //------------------------------------------------------------------
127 // Callback for the interaction
128 //class boxVolumeObserver : public vtkCommand
131 // vtkRenderWindow *_renWin;
132 // vtkVolumeRayCastMapper *_volumeMapper;
135 // boxVolumeObserver() { }
137 // virtual char const *GetClassName() const { return "boxVolumeObserver";}
139 // static boxVolumeObserver *New(){
140 // boxVolumeObserver * result;
141 // result = new boxVolumeObserver();
145 // virtual void Execute(vtkObject *wdg, unsigned long eventId, void* calldata) ;
146 // void SetRenWin( vtkRenderWindow *renWin );
147 // void SetVolumeMapper(vtkVolumeRayCastMapper *volumeMapper);
150 //------------------------------------------------------------------
151 //------------------------------------------------------------------
152 //------------------------------------------------------------------
155 //------------------------------------------------------------------
156 //------------------------------------------------------------------
157 //------------------------------------------------------------------
161 #endif // __WX__MPR__BASE__DATA__H