Commit 0f90257e authored by Mathias Goldau's avatar Mathias Goldau
Browse files

[FIX] Now antialiasing works again (bug regression since only fixed in the maths VIS 2010 branch)

parent 9e885bc7
......@@ -292,17 +292,17 @@ void WMVoxelizer::update()
boost::shared_ptr< WRasterAlgorithm > rasterAlgo;
if( m_rasterAlgo->get() == std::string( "WBresenham" ) )
{
rasterAlgo = boost::shared_ptr< WBresenham >( new WBresenham( grid, m_antialiased ) );
rasterAlgo = boost::shared_ptr< WBresenham >( new WBresenham( grid, m_antialiased->get() ) );
}
else if( m_rasterAlgo->get() == std::string( "WBresenhamDBL" ) )
{
rasterAlgo = boost::shared_ptr< WBresenhamDBL >( new WBresenhamDBL( grid, m_antialiased ) );
rasterAlgo = boost::shared_ptr< WBresenhamDBL >( new WBresenhamDBL( grid, m_antialiased->get() ) );
}
else
{
errorLog() << "Invalid rasterization algorithm: " << m_rasterAlgo->get();
m_rasterAlgo->set( std::string( "WBresenham" ) );
rasterAlgo = boost::shared_ptr< WBresenham >( new WBresenham( grid, m_antialiased ) );
rasterAlgo = boost::shared_ptr< WBresenham >( new WBresenham( grid, m_antialiased->get() ) );
}
debugLog() << "Using: " << m_rasterAlgo->get() << " as rasterization Algo.";
......
......@@ -39,7 +39,8 @@
#include "WRasterAlgorithm.h"
/**
* TODO(math): document this
* Traces a given set of deterministic tracts as given by a WFiberCluster in a voxelwise manner.
* Every voxel which is hit by one or more tracts or tract-segements is marked with a scalar.
* \ingroup modules
*/
class WMVoxelizer : public WModule
......@@ -47,12 +48,12 @@ class WMVoxelizer : public WModule
friend class WMVoxelizerTest;
public:
/**
* Constructs new FiberTestModule
* Default Constructor.
*/
WMVoxelizer();
/**
* Destructs this FiberTestModule
* Default Destructor.
*/
virtual ~WMVoxelizer();
......
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