]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/Interaction/ImageInteractorStyle.cxx
First dump for version 0.1.0
[cpPlugins.git] / lib / cpExtensions / Interaction / ImageInteractorStyle.cxx
index a23e3749d6e2ae4828c86b1af652124c57c26bc3..c037193fe97097b0d960316109a6dd0ae477f0aa 100644 (file)
@@ -96,6 +96,34 @@ 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::
+GetSeedAsPoint( unsigned int id, double pos[ 3 ] ) const
+{
+  if( this->m_SeedWidget != NULL )
+    this->m_SeedWidget->Representation->GetSeedWorldPosition( id, pos );
+}
+
+// -------------------------------------------------------------------------
+void cpExtensions::Interaction::ImageInteractorStyle::
+GetSeedAsIndex( unsigned int id, int idx[ 3 ] ) const
+{
+  /* TODO
+     if( this->m_SeedWidget != NULL )
+     this->m_SeedWidget->Representation->GetSeedWorldPosition( id, pos );
+  */
+}
+
 // -------------------------------------------------------------------------
 cpExtensions::Interaction::ImageInteractorStyle::
 ImageInteractorStyle( )