Commit 40859320 authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[ADD #467] possibility de/activate rendering of voxels

parent dc449135
......@@ -90,9 +90,12 @@ const char** WMVoxelizer::getXPMIcon() const
void WMVoxelizer::properties()
{
m_antialiased = m_properties->addProperty( "Antialiasing", "Enable/Disable antialiased drawing of voxels.", true, m_fullUpdate );
m_antialiased = m_properties->addProperty( "Antialiasing", "Enable/disable antialiased rasterization of voxels.", true, m_fullUpdate );
m_voxelsPerUnit = m_properties->addProperty( "Voxels per Unit", "Specified the number of voxels per unit in the coordinate system. This "
"is useful to increase the resolution of the grid", 1.0, m_fullUpdate );
m_renderingActive = m_properties->addProperty( "Rendering", "Enable/disable rendering of voxels.", false, m_fullUpdate );
// for selecting the parameterization method
m_paramAlgoSelections = boost::shared_ptr< WItemSelection >( new WItemSelection() );
m_paramAlgoSelections->addItem( "No Parameterization", "Disable parameterization." ); // NOTE: you can add XPM images here.
......@@ -189,7 +192,10 @@ void WMVoxelizer::moduleMain()
}
m_rootNode->clear();
m_rootNode->insert( genDataSetGeode( result[0] ) );
if( m_renderingActive->get() )
{
m_rootNode->insert( genDataSetGeode( result[0] ) );
}
}
infoLog() << "Finished.";
......
......@@ -234,10 +234,8 @@ private:
*/
boost::shared_ptr< WCondition > m_fullUpdate;
/**
* Enable/Disable anti-aliased drawing of voxels
*/
WPropBool m_antialiased;
WPropBool m_antialiased; //!< Enable/disable anti-aliased rasterization of voxels
WPropBool m_renderingActive; //!< Enable/disable rendering of voxels.
/**
* List for selecting the rasterization method.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment