]> Creatis software - cpPlugins.git/blobdiff - plugins/MeshSources/SphereSource.cxx
...
[cpPlugins.git] / plugins / MeshSources / SphereSource.cxx
index fcf27cf7e31ec02e7cc17ae976c95c09638337be..fba068adccbb4d4ce29307c41a9be565037432e5 100644 (file)
@@ -1,5 +1,5 @@
-#include <plugins/MeshSources/SphereSource.h>
-#include <cpPlugins/Mesh.h>
+#include <MeshSources/SphereSource.h>
+#include <cpPlugins/DataObjects/Mesh.h>
 
 #include <vtkSphereSource.h>
 
@@ -8,13 +8,10 @@ cpPluginsMeshSources::SphereSource::
 SphereSource( )
   : Superclass( )
 {
-  this->_AddOutput< cpPlugins::Mesh >( "Output" );
-  this->m_Parameters.ConfigureAsReal( "Radius" );
-  this->m_Parameters.ConfigureAsUint( "PhiResolution" );
-  this->m_Parameters.ConfigureAsUint( "ThetaResolution" );
-  this->m_Parameters.SetReal( "Radius", 1 );
-  this->m_Parameters.SetUint( "PhiResolution", 8 );
-  this->m_Parameters.SetUint( "ThetaResolution", 8 );
+  this->_ConfigureOutput< cpPlugins::DataObjects::Mesh >( "Output" );
+  this->m_Parameters.ConfigureAsReal( "Radius", 1 );
+  this->m_Parameters.ConfigureAsUint( "PhiResolution", 8 );
+  this->m_Parameters.ConfigureAsUint( "ThetaResolution", 8 );
 }
 
 // -------------------------------------------------------------------------