this->m_Window->SetSize( w, h );
}
+// -------------------------------------------------------------------------
+void fpa::VTK::ImageMPR::
+SetWindowLevel( double w, double l )
+{
+ this->m_WidgetX->SetWindowLevel( w, l );
+ this->m_WidgetY->SetWindowLevel( w, l );
+ this->m_WidgetZ->SetWindowLevel( w, l );
+}
+
// -------------------------------------------------------------------------
void fpa::VTK::ImageMPR::
AddPolyData( vtkPolyData* pd, double opacity )
this->m_Actors[ i ]->SetMapper( this->m_Mappers[ i ] );
this->m_Actors[ i ]->GetProperty( )->SetOpacity( opacity );
this->m_Actors[ i ]->GetProperty( )->SetLineWidth( 3 );
- this->m_Actors[ i ]->GetProperty( )->SetPointSize( 10 );
+ this->m_Actors[ i ]->GetProperty( )->SetPointSize( 5 );
this->m_Renderer->AddActor( this->m_Actors[ i ] );
}
this->m_Actors[ i ]->GetProperty( )->SetColor( r, g, b );
this->m_Actors[ i ]->GetProperty( )->SetOpacity( opacity );
this->m_Actors[ i ]->GetProperty( )->SetLineWidth( 3 );
- this->m_Actors[ i ]->GetProperty( )->SetPointSize( 10 );
+ this->m_Actors[ i ]->GetProperty( )->SetPointSize( 5 );
this->m_Renderer->AddActor( this->m_Actors[ i ] );
}
hRep->GetWorldPosition( s );
}
+// -------------------------------------------------------------------------
+unsigned int fpa::VTK::ImageMPR::
+AddSeed( const double& x, const double& y, const double& z ) const
+{
+ double pos[ 3 ] = { x, y, z };
+
+ int hnd_id = this->m_SeedRepresentation->CreateHandle( pos );
+ vtkHandleWidget* hnd = this->m_SeedWidget->CreateNewHandle( );
+ vtkHandleWidget::ComputeWorldToDisplay( this->m_Renderer, x, y, z, pos );
+ this->m_SeedRepresentation->SetSeedDisplayPosition( hnd_id, pos );
+ hnd->SetEnabled( 1 );
+
+ return( this->GetNumberOfSeeds( ) - 1 );
+}
+
// -------------------------------------------------------------------------
vtkRenderWindow* fpa::VTK::ImageMPR::
GetWindow( ) const