Program: wxMaracas
Module: $RCSfile: volume.cxx,v $
Language: C++
- Date: $Date: 2010/03/15 14:12:30 $
- Version: $Revision: 1.6 $
+ Date: $Date: 2010/04/20 14:42:44 $
+ Version: $Revision: 1.7 $
Copyright: (c) 2002, 2003
License:
#endif // KGFO_USE_VTK
-//#ifdef KGFO_USE_IDO
-
-// -------------------------------------------------------------------------
-//const int kVolume::IDOTypes[] = { VOL_CHAR, VOL_FLOAT, VOL_DOUBLE, VOL_LONG,
-// VOL_SHORT, VOL_UCHAR, VOL_ULONG,
-// VOL_USHORT };
-
-//#endif // KGFO_USE_IDO
-
// -------------------------------------------------------------------------
const void* kVolume::BLANK = ( void* ) 0;
const void* kVolume::NOALLOC = ( void* )-1;
switch( _type ) {
- case CHAR: p = ( double )( ( char*** )_images )[ z ][ y ][ x ]; break;
- case FLOAT: p = ( double )( ( float*** )_images )[ z ][ y ][ x ]; break;
+ case CHAR: p = ( double )( ( char*** )_images )[ z ][ y ][ x ]; break;
+ case FLOAT: p = ( double )( ( float*** )_images )[ z ][ y ][ x ]; break;
case DOUBLE: p = ( double )( ( double*** )_images )[ z ][ y ][ x ]; break;
- case INT: p = ( double )( ( int*** )_images )[ z ][ y ][ x ]; break;
- case SHORT: p = ( double )( ( short*** )_images )[ z ][ y ][ x ]; break;
- case UCHAR: p = ( double )( ( uchar*** )_images )[ z ][ y ][ x ]; break;
- case UINT: p = ( double )( ( uint*** )_images )[ z ][ y ][ x ]; break;
+ case INT: p = ( double )( ( int*** )_images )[ z ][ y ][ x ]; break;
+ case SHORT: p = ( double )( ( short*** )_images )[ z ][ y ][ x ]; break;
+ case UCHAR: p = ( double )( ( uchar*** )_images )[ z ][ y ][ x ]; break;
+ case UINT: p = ( double )( ( uint*** )_images )[ z ][ y ][ x ]; break;
case USHORT: p = ( double )( ( ushort*** )_images )[ z ][ y ][ x ]; break;
default: p = 0.0; break;