28 #include "../common/WAssert.h"
29 #include "../common/WException.h"
30 #include "../common/WPrototyped.h"
31 #include "WDataTexture3D.h"
33 #include "WGridRegular3D.h"
34 #include "WValueSet.h"
36 #include "WDataSetSingle.h"
42 boost::shared_ptr< WGrid > newGrid )
46 WAssert( newValueSet,
"Need a value set for new data set." );
47 WAssert( newGrid,
"Need a grid for new data set." );
48 WAssert( newValueSet->size() == newGrid->size(),
49 "Number of grid position unequal number of values in value set." );
57 boost::shared_ptr< WGridRegular3D > regGrid = boost::shared_dynamic_cast<
WGridRegular3D >(
m_grid );
58 if( regGrid && ( m_valueSet->dimension() < 5 ) && ( m_valueSet->dimension() != 0 ) )
115 return "WDataSetSingle";
120 return "A single dataset containing a number of WValues on a structured"
121 "grid. Single, in this case, means not time-dependent and not one type of"
122 "data for several subjects.";
139 case W_DT_UNSIGNED_CHAR:
147 case W_DT_SIGNED_INT:
160 WAssert(
false,
"Unknow data type in dataset." );