#include #include #include // ------------------------------------------------------------------------- cpPluginsMeshSources::CylinderSource:: CylinderSource( ) : Superclass( ) { this->_AddOutput< cpPlugins::Mesh >( "Output" ); this->m_Parameters.ConfigureAsReal( "Height" ); this->m_Parameters.ConfigureAsReal( "Radius" ); this->m_Parameters.ConfigureAsUint( "Resolution" ); this->m_Parameters.SetReal( "Radius", 1 ); this->m_Parameters.SetUint( "Resolution", 8 ); } // ------------------------------------------------------------------------- cpPluginsMeshSources::CylinderSource:: ~CylinderSource( ) { } // ------------------------------------------------------------------------- void cpPluginsMeshSources::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$