Commit 72608c3f authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[FIX] handle vector datasets correctly for the slices and textures

parent 115d4237
......@@ -145,3 +145,8 @@ wmath::WVector3D WDataSetVector::getVectorAt( size_t index ) const
return wmath::WVector3D( 0, 0, 0 );
}
bool WDataSetVector::isTexture() const
{
return false;
}
......@@ -81,6 +81,13 @@ public:
*/
wmath::WVector3D getVectorAt( size_t index ) const;
/**
* Determines whether this dataset can be used as a texture.
*
* \return true if usable as texture.
*/
virtual bool isTexture() const;
/**
* Overwrites the isVectorDataSet check.
*
......
......@@ -293,7 +293,7 @@ void WMainWindow::moduleSpecificSetup( boost::shared_ptr< WModule > module )
boost::shared_ptr< WMData > dataModule = boost::shared_static_cast< WMData >( module );
// grab data and identify type
if ( dataModule->getDataSet()->isA< WDataSetSingle >() )
if ( dataModule->getDataSet()->isA< WDataSetSingle >() && dataModule->getDataSet()->isTexture() )
{
// it is a dataset single
// load a nav slice module if a WDataSetSingle is available!?
......
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