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 # ------------------------------------------------------------------------ */
26 #ifndef EMPTY_PANEL_WIDGET_H
27 #define EMPTY_PANEL_WIDGET_H
32 #include <vtkMarchingCubes.h>
33 #include <vtkPolyDataMapper.h>
34 #include <vtkImageData.h>
38 #include "wxVtkBaseView.h"
39 #include "wxVTKRenderWindowInteractor.h"
40 #include <kernel/axisExtractor02.h>
45 //------------------------------------------------------------------
46 //------------------------------------------------------------------
47 //------------------------------------------------------------------
49 class wxEmptyPanelWidget: public wxPanel{
51 wxEmptyPanelWidget(wxWindow *parent);
52 ~wxEmptyPanelWidget();
53 void ConfigureVTK(vtkImageData *imagedata, int x, int y, int z);
55 void OnOpacity1(wxScrollEvent& event); // Original Volume
56 void OnOpacity2(wxScrollEvent& event); // Result Volume
57 void OnIsoValue(wxScrollEvent& event);
61 vtkMarchingCubes *_mCubes;
62 vtkPolyDataMapper *_surfMapper;
65 // Result volume + Axis
66 axisExtractor02 *_prgov;
67 vtkPolyDataMapper *_mapfinal;
68 vtkActor *_stripfinal;
69 vtkPolyDataMapper *_isoMapperMC6;
70 vtkActor *_isoActorMC6;
71 vtkMarchingCubes *_isoMC6;
77 wxVtk3DBaseView *_imageviewer3D;
78 wxPanel *CreateControlPanel(wxWindow *parent);
79 wxPanel *CreateViewPanel(wxWindow *parent);
82 #endif // EMPTY_PANEL_WIDGET_H