]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.h
Feature #1606 Add a new entry to ColorLayerImageView to select the fitting mode betwe...
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / ThresholdImageView / LayerImageBase.h
index d7c6cbc186bfa9580c8e90600c96ba13944de492..f297a4b628da1bd08a3bbbe0c61a177f4298e425 100644 (file)
@@ -1,16 +1,13 @@
-
-
-
 /**
- *  \file 
- *  \brief Class ThresholdImageView . 
+ *  \file
+ *  \brief Class ThresholdImageView .
  */
 
 /**
  * \class ThresholdImageView
- * \brief 
+ * \brief
  */
+
 #ifndef __LayerImageBase_h__
 #define __LayerImageBase_h__
 
 #include <vtkImageData.h>
 #include "wxVtkBaseView.h"
 
+#include "InteractorStyleMaracas.h"
+
+//----------------------------------------------------------------------------------
+//----------------------------------------------------------------------------------
+//----------------------------------------------------------------------------------
+class LayerImageBase;
+
+class ColorLayerImageBasevtkInteractor : public InteractorStyleMaracas {
+public:
+       ColorLayerImageBasevtkInteractor(LayerImageBase* layerImageBase);
+       virtual ~ColorLayerImageBasevtkInteractor();
+
+       virtual bool  OnMouseMove();
+
+private:
+    LayerImageBase* _layerImageBase;
+
+protected:
+
+};
+
+
+//----------------------------------------------------------------------------------
+//----------------------------------------------------------------------------------
+//----------------------------------------------------------------------------------
+
+
+
 class LayerImageBase
   {
-  public: 
+  public:
                LayerImageBase();
                virtual ~LayerImageBase();
                void SetZ(int z);
@@ -36,10 +61,14 @@ class LayerImageBase
                void onThresholdChangeOpacity (int opacity);
                void onThresholdRemove();
                wxVtkBaseView *GetwxVtkBaseView();
+               void Refresh();
+               vtkLookupTable *GetvtkLookupTable();
+               vtkImageReslice *GetvtkImageReslice();
+               virtual int GetZ();
 
   private:
-               int                                     _Z;
-               bool                            _actorPresent;
+               int                     _Z;
+               bool                    _actorPresent;
                vtkImageData            *_image;
                vtkImageReslice         *_imageReslicer;
                vtkLookupTable          *_thresholdTable;
@@ -53,7 +82,6 @@ class LayerImageBase
 
 
   protected:
-               virtual int GetZ();
                vtkLookupTable* GetThresholdTable();
                vtkImageData* GetImage();
  };