); \
}
+// -------------------------------------------------------------------------
class vtkAlgorithmOutput;
+class vtkImageData;
+// -------------------------------------------------------------------------
namespace cpPlugins
{
namespace Extensions
vtkTypeMacro( ImageSliceActors, vtkPropCollection );
cpPlugins_ImageSliceActors( Image, vtkImageActor );
- cpPlugins_ImageSliceActors( Segmentation, vtkImageActor );
cpPlugins_ImageSliceActors( Text, vtkTextActor );
cpPlugins_ImageSliceActors( Plane, vtkActor );
static ImageSliceActors* New( );
void SetInputConnection( vtkAlgorithmOutput* aout, int axis );
- void SetSegmentationConnection( vtkAlgorithmOutput* aout );
+ void SetInputData( vtkImageData* data, int axis );
double* GetDisplayBounds( ) const;
void GetDisplayBounds( double bounds[ 6 ] ) const;
int GetSliceNumberMinValue( ) const;
int GetSliceNumberMaxValue( ) const;
void SetSliceNumber( const int& slice );
- void UpdateText( const double& w, const double& l );
+ void UpdateText( );
protected:
ImageSliceActors( );
Self& operator=( const Self& );
protected:
- vtkAlgorithmOutput* InputAlgorithm;
- vtkAlgorithmOutput* SegmentationAlgorithm;
-
vtkSmartPointer< vtkImageSliceMapper > SliceMapper;
- vtkSmartPointer< vtkImageSliceMapper > SegmentationSliceMapper;
vtkSmartPointer< vtkPolyData > PlaneSource;
vtkSmartPointer< vtkPolyDataMapper > PlaneMapper;
- char TextBuffer[ 512 ];
+ char TextBuffer[ 1024 ];
vtkSmartPointer< vtkImageActor > ImageActor;
- vtkSmartPointer< vtkImageActor > SegmentationActor;
vtkSmartPointer< vtkTextActor > TextActor;
vtkSmartPointer< vtkActor > PlaneActor;
unsigned int ImageActorIndex;
- unsigned int SegmentationActorIndex;
unsigned int TextActorIndex;
unsigned int PlaneActorIndex;
};