typedef MPRObjects Self;
typedef cpExtensions::Visualization::MPRActors TMPRActors;
+ typedef TMPRActors::TCursorCommand TCursorCommand;
+ typedef TMPRActors::TMouseCommand TMouseCommand;
+ typedef TMPRActors::TMouseWheelCommand TMouseWheelCommand;
+ typedef TMPRActors::TKeyCommand TKeyCommand;
+
public:
vtkTypeMacro( MPRObjects, vtkObject );
// Creation
static MPRObjects* New( );
+ void AddCursorCommand( TCursorCommand command, void* data )
+ {
+ this->m_MPRActors->AddCursorCommand( command, data );
+ }
+
void SetRenderWindows(
vtkRenderWindow* wx, vtkRenderWindow* wy,
vtkRenderWindow* wz, vtkRenderWindow* w3D
TMPRActors* GetMPRActors( );
const TMPRActors* GetMPRActors( ) const;
+ double GetWindow( ) const
+ {
+ return( this->m_MPRActors->GetWindow( ) );
+ }
+ double GetLevel( ) const
+ {
+ return( this->m_MPRActors->GetLevel( ) );
+ }
+
protected:
MPRObjects( );
virtual ~MPRObjects( );
// Internal pipelines
vtkSmartPointer< TMPRActors > m_MPRActors;
vtkSmartPointer< vtkRenderer > m_Renderers[ 4 ];
+
+ 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