]> Creatis software - cpPlugins.git/blobdiff - plugins/VTKFilters/SphereSource.cxx
Moved to version 1.0
[cpPlugins.git] / plugins / VTKFilters / SphereSource.cxx
diff --git a/plugins/VTKFilters/SphereSource.cxx b/plugins/VTKFilters/SphereSource.cxx
deleted file mode 100644 (file)
index 0eaac1b..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-#include <VTKFilters/SphereSource.h>
-#include <cpInstances/DataObjects/Mesh.h>
-
-#include <vtkSphereSource.h>
-
-// -------------------------------------------------------------------------
-cpPluginsVTKFilters::SphereSource::
-SphereSource( )
-  : Superclass( )
-{
-  this->_ConfigureOutput< cpInstances::DataObjects::Mesh >( "Output" );
-  this->m_Parameters.ConfigureAsReal( "Radius", 1 );
-  this->m_Parameters.ConfigureAsUint( "PhiResolution", 8 );
-  this->m_Parameters.ConfigureAsUint( "ThetaResolution", 8 );
-}
-
-// -------------------------------------------------------------------------
-cpPluginsVTKFilters::SphereSource::
-~SphereSource( )
-{
-}
-
-// -------------------------------------------------------------------------
-void cpPluginsVTKFilters::SphereSource::
-_GenerateData( )
-{
-  auto src = this->_CreateVTK< vtkSphereSource >( );
-  src->SetRadius( this->m_Parameters.GetReal( "Radius" ) );
-  src->SetPhiResolution( this->m_Parameters.GetUint( "PhiResolution" ) );
-  src->SetThetaResolution( this->m_Parameters.GetUint( "ThetaResolution" ) );
-  src->Update( );
-  this->GetOutput( "Output" )->SetVTK( src->GetOutput( ) );
-}
-
-// eof - $RCSfile$