]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkMPR3DView.h
#3474 Refresh optimization DrawAxisTree3D Box
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxVtkMPR3DView.h
index 1cd96dffffa76dd49c858cdcd58578ff21f280b5..b7bffd41759de49345e2733b4d01d9b873864d93 100644 (file)
@@ -1,3 +1,28 @@
+/*# ---------------------------------------------------------------------
+#
+# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+#                        pour la Sant�)
+# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+# Previous Authors : Laurent Guigues, Jean-Pierre Roux
+# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
+#
+#  This software is governed by the CeCILL-B license under French law and
+#  abiding by the rules of distribution of free software. You can  use,
+#  modify and/ or redistribute the software under the terms of the CeCILL-B
+#  license as circulated by CEA, CNRS and INRIA at the following URL
+#  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+#  or in the file LICENSE.txt.
+#
+#  As a counterpart to the access to the source code and  rights to copy,
+#  modify and redistribute granted by the license, users are provided only
+#  with a limited warranty  and the software's author,  the holder of the
+#  economic rights,  and the successive licensors  have only  limited
+#  liability.
+#
+#  The fact that you are presently reading this means that you have had
+#  knowledge of the CeCILL-B license and that you accept its terms.
+# ------------------------------------------------------------------------ */
+
 #ifndef WXVTKMPR3DVIEW_H_
 #define WXVTKMPR3DVIEW_H_
 
@@ -9,6 +34,7 @@
 #include "vtkPlaneWidget.h"
 #include "vtkPointWidget.h"
 #include "vtkImagePlaneWidget.h"
+#include "vtkImageChangeInformation.h"
 
 
 //class vtkmyPWCallback_3DPointWidget;
@@ -22,43 +48,41 @@ public:
        void                            VisibleImageActor(int idPosition, bool visible);
        void                            VisiblePointWidget( bool visible );
        void                            VisiblePlaneWidget( bool visible );
-
        void                            SetVisibleTissue(int idTissue, bool visible);
        bool                            GetVisibleTissue(int idTissue);
        virtual void            Refresh();
        virtual void            RefreshView();
        virtual void            Configure();
+       void                            SetImage();
+       void                            SetBackGroundType(int type);
        void                            SetVtkMPR3DDataViewer( vtkMPR3DDataViewer *vtkmpr3Ddataviewer );
        wxPanel*                        CreateControlPanel(wxWindow *parent, bool align);
-
        vtkMPR3DDataViewer* GetVtkMPR3DDataViewer();
        wxVtk3DBaseView*        GetWxvtk3Dbaseview() throw (char*);
-
        void                            InitOrientationPointWidget(); 
-       void                            showOutlineActor(bool value);
-
+       void                            showOutlineBoxActor(bool value);
+       void                            showOutlinePlaneActor(bool value);
        // EED 25 Janvier 2007 testLoic
        void                            TestLoic1();
        void                            TestLoic2();
-
-       void RemoveActor(vtkActor* actor);
-       void ResetCamera(int *ext=NULL, double* origin=NULL,double* spc=NULL);
-
+       void                            RemoveActor(vtkActor* actor);
+//EED 27/05/2013
+//     void ResetCamera(int *ext=NULL,double* spc=NULL);
        void setColorTransferFunction(vtkColorTransferFunction* colortable);
 
-       
        //Free planes
        //-------------------------------------------------------------------
-       void ConfigureFreePlanes();
-       vtkImagePlaneWidget* GetPlaneWidget(unsigned char activationkey, double r, double g, double b, vtkCellPicker* picker);
-       void FreePlaneVisible(int plane, bool ok);
-       void FreePlaneInteraction(bool ok);
-       void SetFreePlanesOrtho();
-       
-       void SetColorWindow(double colorWindow);
-       void SetColorLevel(double colorLevel);
+       void                                    ConfigureFreePlanes();
+       vtkImagePlaneWidget*    GetPlaneWidget(unsigned char activationkey, double r, double g, double b, vtkCellPicker* picker);
+       void                                    FreePlaneVisible(int plane, bool ok);
+       void                                    FreePlaneInteraction(bool ok);
+       void                                    SetFreePlanesOrtho();
+/*Borrame
+       void                                    SetColorWindow(double colorWindow);
+       void                                    SetColorLevel(double colorLevel);
+*/
+       void                                    SetWindowColorLevel(double colorWindow , double colorLevel);
 
-       
 private:
        wxVtk3DBaseView                                 *_wxvtk3Dbaseview;
        vtkMPR3DDataViewer                              *_vtkmpr3Ddataviewer;
@@ -76,10 +100,11 @@ private:
        vtkPolyDataMapper                               *_contourMapper;
 
        //Free planes
-       vtkImagePlaneWidget *_planeWidgetX;
-       vtkImagePlaneWidget *_planeWidgetY;
-       vtkImagePlaneWidget *_planeWidgetZ;
+       vtkImagePlaneWidget                     *_planeWidgetX;
+       vtkImagePlaneWidget                     *_planeWidgetY;
+       vtkImagePlaneWidget                     *_planeWidgetZ;
        
+       vtkImageChangeInformation               *mchange;
 
 protected:
 };