this->Modified( );
}
+// -------------------------------------------------------------------------
+void cpExtensions::Visualization::ImageInteractorStyle::
+AssociateInteractor( vtkRenderWindowInteractor* rwi )
+{
+ if( rwi != NULL )
+ {
+ this->AssociatedInteractors.push_back( rwi );
+ this->Modified( );
+
+ } // fi
+}
+
// -------------------------------------------------------------------------
void cpExtensions::Visualization::ImageInteractorStyle::
OnMouseMove( )
// Invoke possible events
this->MouseMoveCommand( this->Data, button, pos, alt, ctr, sft );
rwi->Render( );
+ this->_RenderAssociatedInteractors( );
}
// -------------------------------------------------------------------------
// Invoke possible events
this->MouseWheelCommand( this->Data, 1, alt, ctr, sft );
rwi->Render( );
+ this->_RenderAssociatedInteractors( );
}
// -------------------------------------------------------------------------
// Invoke possible events
this->MouseWheelCommand( this->Data, -1, alt, ctr, sft );
rwi->Render( );
+ this->_RenderAssociatedInteractors( );
}
// -------------------------------------------------------------------------
this->Data, Self::ButtonID_Left, pos, alt, ctr, sft
);
rwi->Render( );
+ this->_RenderAssociatedInteractors( );
}
// -------------------------------------------------------------------------
this->Data, Self::ButtonID_Left, pos, alt, ctr, sft
);
rwi->Render( );
+ this->_RenderAssociatedInteractors( );
}
// -------------------------------------------------------------------------
this->Data, Self::ButtonID_Middle, pos, alt, ctr, sft
);
rwi->Render( );
+ this->_RenderAssociatedInteractors( );
}
// -------------------------------------------------------------------------
this->Data, Self::ButtonID_Middle, pos, alt, ctr, sft
);
rwi->Render( );
+ this->_RenderAssociatedInteractors( );
}
// -------------------------------------------------------------------------
this->Data, Self::ButtonID_Right, pos, alt, ctr, sft
);
rwi->Render( );
+ this->_RenderAssociatedInteractors( );
}
// -------------------------------------------------------------------------
this->Data, Self::ButtonID_Right, pos, alt, ctr, sft
);
rwi->Render( );
+ this->_RenderAssociatedInteractors( );
}
// -------------------------------------------------------------------------
return;
this->KeyCommand( this->Data, rwi->GetKeyCode( ) );
rwi->Render( );
+ this->_RenderAssociatedInteractors( );
}
// -------------------------------------------------------------------------
if( rwi == NULL )
return;
rwi->Render( );
+ this->_RenderAssociatedInteractors( );
}
// -------------------------------------------------------------------------
if( rwi == NULL )
return;
rwi->Render( );
+ this->_RenderAssociatedInteractors( );
}
// -------------------------------------------------------------------------
if( rwi == NULL )
return;
rwi->Render( );
+ this->_RenderAssociatedInteractors( );
}
// -------------------------------------------------------------------------
if( rwi == NULL )
return;
rwi->Render( );
+ this->_RenderAssociatedInteractors( );
}
// -------------------------------------------------------------------------
return( true );
}
+// -------------------------------------------------------------------------
+void cpExtensions::Visualization::ImageInteractorStyle::
+_RenderAssociatedInteractors( )
+{
+ for( unsigned int i = 0; i < this->AssociatedInteractors.size( ); ++i )
+ this->AssociatedInteractors[ i ]->Render( );
+}
+
/*
#include <cmath>
#include <ctime>