- this->SetNumberOfInputs( 0 );
- this->SetNumberOfOutputs( 1 );
- this->_MakeOutput< cpPlugins::Interface::Mesh >( 0 );
-
- double point[ 3 ] = { double( 0 ) };
- this->m_Parameters->ConfigureAsPoint( "Center", 3, point );
- this->m_Parameters->ConfigureAsReal( "Radius", 1 );
- this->m_Parameters->ConfigureAsUint( "PhiResolution", 8 );
- this->m_Parameters->ConfigureAsUint( "ThetaResolution", 8 );
+ this->_AddInput( "Center", false );
+ this->_AddOutput< cpPlugins::Interface::Mesh >( "Output" );
+
+ this->m_Parameters->ConfigureAsReal( "Radius" );
+ this->m_Parameters->ConfigureAsUint( "PhiResolution" );
+ this->m_Parameters->ConfigureAsUint( "ThetaResolution" );
+
+ this->m_Parameters->SetReal( "Radius", 1 );
+ this->m_Parameters->SetUint( "PhiResolution", 8 );
+ this->m_Parameters->SetUint( "ThetaResolution", 8 );