public:
typedef MPRActors Self;
+ typedef ImageSliceActors::TCursorCommand TCursorCommand;
+ typedef ImageSliceActors::TMouseCommand TMouseCommand;
+ typedef ImageSliceActors::TMouseWheelCommand TMouseWheelCommand;
+ typedef ImageSliceActors::TKeyCommand TKeyCommand;
+
public:
vtkTypeMacro( MPRActors, vtkPropCollection );
// Creation
static MPRActors* New( );
+ void AddCursorCommand( TCursorCommand command, void* data )
+ {
+ this->Slices[ 0 ][ 0 ]->AddCursorCommand( command, data );
+ this->Slices[ 0 ][ 1 ]->AddCursorCommand( command, data );
+ this->Slices[ 0 ][ 2 ]->AddCursorCommand( command, data );
+ }
+
ImageSliceActors* GetSliceActors( const int& i ) const;
int AddInputConnection( vtkAlgorithmOutput* aout );
unsigned int i, double r, double g, double b
);
+ double GetWindow( )
+ {
+ return( this->Slices[ 0 ][ 0 ]->GetWindow( ) );
+ }
+ double GetLevel( )
+ {
+ return( this->Slices[ 0 ][ 0 ]->GetLevel( ) );
+ }
+
// Slice access
int GetSliceNumberMinValue( const int& axis ) const;
int GetSliceNumberMaxValue( const int& axis ) const;
protected:
vtkSmartPointer< vtkActor > ImageOutlineActor;
vtkSmartPointer< ImageSliceActors > Slices[ 2 ][ 3 ];
+
+ std::vector< TCursorCommand > CursorCommands;
+ std::vector< TMouseCommand > MouseCommands;
+ std::vector< TMouseCommand > MouseClickCommands;
+ std::vector< TMouseCommand > MouseDoubleClickCommands;
+ std::vector< TMouseWheelCommand > MouseWheelCommands;
+ std::vector< TKeyCommand > KeyCommands;
};
} // ecapseman