]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.h
Merge branch 'master' of ssh://git.creatis.insa-lyon.fr/creaMaracasVisu
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / ThresholdImageView / LayerImageBase.h
index 3731e9ee1db3464e11a319de1cd66874b0f1fad7..1781373de5a94f7360683f48c4ade828de891e75 100644 (file)
@@ -56,9 +56,12 @@ public:
        virtual ~ColorLayerImageBasevtkInteractor();
 
        virtual bool  OnMouseMove();
+       virtual bool  OnRightButtonDown();
+       virtual bool  OnRightButtonUp();
 
 private:
-    LayerImageBase* _layerImageBase;
+    bool               _state;
+    LayerImageBase*    _layerImageBase;
 
 protected:
 
@@ -76,6 +79,8 @@ class LayerImageBase
   public:
                LayerImageBase();
                virtual ~LayerImageBase();
+               void SetX(int x);
+               void SetY(int y);
                void SetZ(int z);
                void SetImage(vtkImageData* image);
                void SetwxVtkBaseView(wxVtkBaseView *baseview);
@@ -89,9 +94,13 @@ class LayerImageBase
                void Refresh();
                vtkLookupTable *GetvtkLookupTable();
                vtkImageReslice *GetvtkImageReslice();
+               virtual int GetX();
+               virtual int GetY();
                virtual int GetZ();
 
   private:
+               int                     _X;
+               int                     _Y;
                int                     _Z;
                bool                    _actorPresent;
                vtkImageData            *_image;
@@ -103,7 +112,7 @@ class LayerImageBase
 
                virtual void ConfigLookupTable() = 0;
                bool GetActorPresent();
-               int CleanZ(int z);
+               void CleanXYZ(double &x, double &y, double &z);
 
 
   protected: