X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=plugins%2FVTKFilters%2FSphereSource.cxx;fp=plugins%2FVTKFilters%2FSphereSource.cxx;h=0000000000000000000000000000000000000000;hb=2e142df11d6f312a2a2b5097b8da73571ed523e8;hp=0eaac1be3482e7aaf6e28c872d652e23e2a9a3ed;hpb=61b3659afe961ed248f30e26f9ca8f28fcfafddc;p=cpPlugins.git diff --git a/plugins/VTKFilters/SphereSource.cxx b/plugins/VTKFilters/SphereSource.cxx deleted file mode 100644 index 0eaac1b..0000000 --- a/plugins/VTKFilters/SphereSource.cxx +++ /dev/null @@ -1,35 +0,0 @@ -#include -#include - -#include - -// ------------------------------------------------------------------------- -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$