#include <vtkActor.h>
#include <vtkImageMapToColors.h>
-#include <vtkImageMapToWindowLevelColors.h>
+// -------------------------------------------------------------------------
+class vtkAlgorithmOutput;
+class vtkImageData;
class vtkRenderer;
+class vtkScalarsToColors;
+class vtkWindowLevelLookupTable;
+// -------------------------------------------------------------------------
namespace cpPlugins
{
namespace Extensions
static MPRActors* New( );
ImageSliceActors* GetSliceActors( const int& i ) const;
+ void SetInputConnection( vtkAlgorithmOutput* aout );
void SetInputData( vtkImageData* image );
- void SetSegmentationData( vtkImageData* segmentation );
void PushDataInto(
vtkRenderer* x,
vtkRenderer* w
);
- // Window/Level
+ // Lookup table methods
+ vtkScalarsToColors* GetLookupTable( ) const;
+ void SetLookupTable( vtkScalarsToColors* lut );
+
+ // Grayscale window/level lookup
+ vtkWindowLevelLookupTable* GetLookupTableAsWindowLevel( ) const;
+ void SetLookupTableToWindowLevel( );
double GetMinWindow( ) const;
double GetMaxWindow( ) const;
double GetMinLevel( ) const;
void ResetWindowLevel( );
// Slice access
- vtkPlane* GetSlicePlane( const int& axis ) const;
int GetSliceNumberMinValue( const int& axis ) const;
int GetSliceNumberMaxValue( const int& axis ) const;
int GetSlice( const int& axis ) const;
MPRActors( );
virtual ~MPRActors( );
+ vtkImageData* _InputImage( ) const;
+ void _UpdateSlices( );
+
private:
// Purposely not implemented
MPRActors( const Self& );
Self& operator=( const Self& );
protected:
- vtkImageData* Image;
- vtkImageData* Segmentation;
-
- vtkSmartPointer< vtkImageMapToWindowLevelColors > ImageToWindowLevel;
- vtkSmartPointer< vtkImageMapToColors > SegmentationToColors;
-
- vtkSmartPointer< vtkActor > ImageOutlineActor;
+ vtkSmartPointer< vtkImageMapToColors > ImageMapToColors;
+ vtkSmartPointer< vtkActor > ImageOutlineActor;
- typedef cpPlugins::Extensions::Visualization::ImageSliceActors TSlice;
- vtkSmartPointer< TSlice > Slices[ 3 ];
+ typedef
+ cpPlugins::Extensions::Visualization::ImageSliceActors
+ _TSlice;
+ vtkSmartPointer< _TSlice > Slices[ 3 ];
unsigned int ImageOutlineActorIndex;
};