#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$