/**
- * \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();
- ~LayerImageBase();
+ virtual ~LayerImageBase();
void SetZ(int z);
void SetImage(vtkImageData* image);
void SetwxVtkBaseView(wxVtkBaseView *baseview);
void onThresholdChangeOpacity (int opacity);
void onThresholdRemove();
wxVtkBaseView *GetwxVtkBaseView();
+ void Refresh();
+ vtkLookupTable *GetvtkLookupTable();
+ vtkImageReslice *GetvtkImageReslice();
+ virtual int GetZ();
private:
int _Z;
wxVtkBaseView *_baseView;
virtual void ConfigLookupTable() = 0;
- int GetZ();
bool GetActorPresent();
+ int CleanZ(int z);
+
protected:
vtkLookupTable* GetThresholdTable();