]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ThresholdImageView.h
no message
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / ThresholdImageView / ThresholdImageView.h
diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ThresholdImageView.h b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ThresholdImageView.h
new file mode 100644 (file)
index 0000000..56dd8a6
--- /dev/null
@@ -0,0 +1,58 @@
+
+
+
+/**
+ *  \file 
+ *  \brief Class ThresholdImageView . 
+ */
+
+/**
+ * \class ThresholdImageView
+ * \brief 
+ */
+#ifndef __ThresholdImageView_h__
+#define __ThresholdImageView_h__
+
+#include <vtkImageReslice.h>
+#include <vtkLookupTable.h>
+#include <vtkImageMapToColors.h>
+#include <vtkImageActor.h>
+#include <vtkImageData.h>
+#include "wxVtkBaseView.h"
+
+
+
+class  ThresholdImageView 
+  {
+  public: 
+         ThresholdImageView( );
+         ~ThresholdImageView();
+         void onThreshold();
+         void onThresholdChange();
+         void onThresholdInterpolation(bool interpolate);
+         void onThresholdChangeOpacity (int opacity);
+         void onThresholdRemove();
+         
+         void SetImage(vtkImageData* image);
+         void SetwxVtkBaseView(wxVtkBaseView *baseview);
+         
+         void SetZ(int z);
+         void SetminMax(int min, int max);
+         
+  private:
+         int                                   _Z;
+         double                                _min;
+         double                                _max;
+         bool                                  _actorPresent;
+         vtkImageData                  *_image;
+         vtkImageReslice               *_imageReslicer;
+         vtkLookupTable                *_thresholdTable;
+         vtkImageMapToColors   *_thresholdMapper;
+         vtkImageActor                 *_thresholdActor;
+         wxVtkBaseView                 *_baseView;
+  protected:
+ };
+
+#endif
+