]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/VTK/ImageMPR.cxx
Even more tests
[FrontAlgorithms.git] / lib / fpa / VTK / ImageMPR.cxx
index 8484a03cad504b948687ca9e6d4b5d610d8e241a..9acfa12c02cd16d0e901b997e90bb56d14abdc30 100644 (file)
@@ -255,6 +255,24 @@ AddPolyData( vtkPolyData* pd, double r, double g, double b, double opacity )
   this->m_Renderer->AddActor( this->m_Actors[ i ] );
 }
 
+// -------------------------------------------------------------------------
+void fpa::VTK::ImageMPR::
+AddPolyData( vtkPolyData* pd, vtkLookupTable* lut, double opacity )
+{
+  unsigned int i = this->m_PolyDatas.size( );
+
+  this->m_PolyDatas.push_back( pd );
+  this->m_Mappers.push_back( vtkSmartPointer< vtkPolyDataMapper >::New( ) );
+  this->m_Actors.push_back( vtkSmartPointer< vtkActor >::New( ) );
+
+  this->m_Mappers[ i ]->SetInputData( pd );
+  this->m_Mappers[ i ]->SetLookupTable( lut );
+  this->m_Actors[ i ]->SetMapper( this->m_Mappers[ i ] );
+  this->m_Actors[ i ]->GetProperty( )->SetOpacity( opacity );
+  this->m_Renderer->AddActor( this->m_Actors[ i ] );
+}
+
+
 // -------------------------------------------------------------------------
 unsigned int fpa::VTK::ImageMPR::
 GetNumberOfSeeds( ) const