void cpExtensions::Visualization::ImageInteractorStyle::
OnMouseMove( )
{
+ this->Superclass::OnMouseMove( );
+
// Get current position on the associated actors
vtkRenderWindowInteractor* rwi = this->GetInteractor( );
if( rwi == NULL || this->MouseMoveCommand == NULL )
return;
- double pos[ 3 ];
- if( !( this->_PickPosition( pos ) ) )
- return;
// Get modifiers
bool alt = ( rwi->GetAltKey( ) == 1 );
bool sft = ( rwi->GetShiftKey( ) == 1 );
ButtonID button = this->GetButtonID( );
+ double pos[ 3 ];
+ if( !( this->_PickPosition( pos ) ) )
+ return;
+
// Invoke possible events
this->MouseMoveCommand( this->Data, button, pos, alt, ctr, sft );
rwi->Render( );
bool sft = ( rwi->GetShiftKey( ) == 1 );
// Invoke possible events
- this->MouseClickCommand( this->Data, Self::ButtonID_Left, pos, alt, ctr, sft );
+ this->MouseClickCommand(
+ this->Data, Self::ButtonID_Left, pos, alt, ctr, sft
+ );
rwi->Render( );
}
bool sft = ( rwi->GetShiftKey( ) == 1 );
// Invoke possible events
- this->MouseDoubleClickCommand( this->Data, Self::ButtonID_Left, pos, alt, ctr, sft );
+ this->MouseDoubleClickCommand(
+ this->Data, Self::ButtonID_Left, pos, alt, ctr, sft
+ );
rwi->Render( );
}
bool sft = ( rwi->GetShiftKey( ) == 1 );
// Invoke possible events
- this->MouseClickCommand( this->Data, Self::ButtonID_Middle, pos, alt, ctr, sft );
+ this->MouseClickCommand(
+ this->Data, Self::ButtonID_Middle, pos, alt, ctr, sft
+ );
rwi->Render( );
}
bool sft = ( rwi->GetShiftKey( ) == 1 );
// Invoke possible events
- this->MouseDoubleClickCommand( this->Data, Self::ButtonID_Middle, pos, alt, ctr, sft );
+ this->MouseDoubleClickCommand(
+ this->Data, Self::ButtonID_Middle, pos, alt, ctr, sft
+ );
rwi->Render( );
}
bool sft = ( rwi->GetShiftKey( ) == 1 );
// Invoke possible events
- this->MouseClickCommand( this->Data, Self::ButtonID_Right, pos, alt, ctr, sft );
+ this->MouseClickCommand(
+ this->Data, Self::ButtonID_Right, pos, alt, ctr, sft
+ );
rwi->Render( );
}
bool sft = ( rwi->GetShiftKey( ) == 1 );
// Invoke possible events
- this->MouseDoubleClickCommand( this->Data, Self::ButtonID_Right, pos, alt, ctr, sft );
+ this->MouseDoubleClickCommand(
+ this->Data, Self::ButtonID_Right, pos, alt, ctr, sft
+ );
rwi->Render( );
}