]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Plugins/BasicFilters/SphereMeshSource.cxx
...
[cpPlugins.git] / lib / cpPlugins / Plugins / BasicFilters / SphereMeshSource.cxx
index 2ed0b7d79abc994afe3a2fbcfe8e93af206516ca..cad8eb80535cca632641a426017003274788195f 100644 (file)
@@ -10,9 +10,9 @@ cpPlugins::BasicFilters::SphereMeshSource::
 SphereMeshSource( )
   : Superclass( )
 {
-  this->_MakeOutput< cpPlugins::Interface::Mesh >( "Output" );
+  this->_AddInput( "Center" );
+  this->_AddOutput< cpPlugins::Interface::Mesh >( "Output" );
 
-  this->m_Parameters->ConfigureAsPoint( "Center" );
   this->m_Parameters->ConfigureAsReal( "Radius" );
   this->m_Parameters->ConfigureAsUint( "PhiResolution" );
   this->m_Parameters->ConfigureAsUint( "ThetaResolution" );
@@ -32,9 +32,12 @@ cpPlugins::BasicFilters::SphereMeshSource::
 std::string cpPlugins::BasicFilters::SphereMeshSource::
 _GenerateData( )
 {
-  itk::Point< double, 3 > center =
-    this->m_Parameters->GetPoint< itk::Point< double, 3 > >( "Center", 3 );
-  // TODO: center.Fill( double( 0 ) ); // TODO
+  itk::Point< double, 3 > center;
+  center.Fill( double( 0 ) );
+  /* TODO
+     itk::Point< double, 3 > center =
+     this->m_Parameters->GetPoint< itk::Point< double, 3 > >( "Center", 3 );
+  */
   double radius = this->m_Parameters->GetReal( "Radius" );
   unsigned int phi = this->m_Parameters->GetUint( "PhiResolution" );
   unsigned int theta = this->m_Parameters->GetUint( "ThetaResolution" );