X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2FcpExtensions%2FInteraction%2FImageInteractorStyle.cxx;h=0e6dce0235da38df90e2f4a6eb5e38bab91ec51b;hb=dbc5b32e13cf4a299ce29a5666a8e0a2ff5e62a8;hp=a23e3749d6e2ae4828c86b1af652124c57c26bc3;hpb=c0627ed97baf80b6751379801fc4d5c377b45467;p=cpPlugins.git diff --git a/lib/cpExtensions/Interaction/ImageInteractorStyle.cxx b/lib/cpExtensions/Interaction/ImageInteractorStyle.cxx index a23e374..0e6dce0 100644 --- a/lib/cpExtensions/Interaction/ImageInteractorStyle.cxx +++ b/lib/cpExtensions/Interaction/ImageInteractorStyle.cxx @@ -96,6 +96,24 @@ SetSeedWidgetCommand( vtkCommand* cmd ) AddObserver( vtkCommand::PlacePointEvent, cmd ); } +// ------------------------------------------------------------------------- +unsigned int cpExtensions::Interaction::ImageInteractorStyle:: +GetNumberOfSeeds( ) const +{ + if( this->m_SeedWidget != NULL ) + return( this->m_SeedWidget->Representation->GetNumberOfSeeds( ) ); + else + return( 0 ); +} + +// ------------------------------------------------------------------------- +void cpExtensions::Interaction::ImageInteractorStyle:: +GetSeed( unsigned int id, double pos[ 3 ] ) const +{ + if( this->m_SeedWidget != NULL ) + this->m_SeedWidget->Representation->GetSeedWorldPosition( id, pos ); +} + // ------------------------------------------------------------------------- cpExtensions::Interaction::ImageInteractorStyle:: ImageInteractorStyle( )