#include #include #include // ------------------------------------------------------------------------- cpPluginsVTKFilters::CylinderSource:: CylinderSource( ) : Superclass( ) { this->_ConfigureOutput< cpInstances::DataObjects::Mesh >( "Output" ); this->m_Parameters.ConfigureAsReal( "Height", 1 ); this->m_Parameters.ConfigureAsReal( "Radius", 1 ); this->m_Parameters.ConfigureAsUint( "Resolution", 8 ); } // ------------------------------------------------------------------------- cpPluginsVTKFilters::CylinderSource:: ~CylinderSource( ) { } // ------------------------------------------------------------------------- void cpPluginsVTKFilters::CylinderSource:: _GenerateData( ) { auto src = this->_CreateVTK< vtkCylinderSource >( ); src->SetHeight( this->m_Parameters.GetReal( "Height" ) ); src->SetRadius( this->m_Parameters.GetReal( "Radius" ) ); src->SetResolution( this->m_Parameters.GetUint( "Resolution" ) ); src->Update( ); this->GetOutput( "Output" )->SetVTK( src->GetOutput( ) ); } // eof - $RCSfile$