In file inrimage/Voxel.h:

namespace yav class Voxel

a generic class for any image type voxel

Inheritance:


Public Methods

Voxel ()
empy
virtual ~Voxel ()
empty
virtual Voxel& operator= (const Voxel& v)
assign this voxel from another one
virtual double getValueAsDouble (void) const
returns this voxel value converted to a double
virtual void setValueFromDouble (double d)
assign this voxel value from a double
virtual LONGINT getValueAsLong (void) const
returns this voxel value converted to an integer
virtual Inrimage::WORD_TYPE getType (void)
assign this voxel value from an integer
virtual void print (TclString& value) const
converts this voxel value to a string
virtual void scan (const TclString& value) throw(InvalidValue)
reads this voxel value from a string
virtual void setMin (void)
set voxel value to min possible value
virtual void setMax (void)
set voxel value to max possible value
virtual double maxValue (void)
returns voxel max possible value
virtual double minValue (void)
returns voxel min possible value
static Voxel* voxelByType (Inrimage::WORD_TYPE type, unsigned int vdim = 1)
creates a voxel whose dynamic type is given Value is set to 0

Public

Exception
class InvalidValue : public Exception
scanning invalid voxel string representation

Documentation

a generic class for any image type voxel
Exception

class InvalidValue: public Exception
scanning invalid voxel string representation

Voxel()
empy

virtual ~Voxel()
empty

virtual Voxel& operator=(const Voxel& v)
assign this voxel from another one
Parameters:
v - voxel value to get

virtual double getValueAsDouble(void) const
returns this voxel value converted to a double

virtual void setValueFromDouble(double d)
assign this voxel value from a double
Parameters:
d - new voxel value

virtual LONGINT getValueAsLong(void) const
returns this voxel value converted to an integer

virtual Inrimage::WORD_TYPE getType(void)
assign this voxel value from an integer
Parameters:
d - new voxel value

virtual void print(TclString& value) const
converts this voxel value to a string
Parameters:
value - output string

virtual void scan(const TclString& value) throw(InvalidValue)
reads this voxel value from a string
Throws:
InvalidValue invalid input string format
Parameters:
value - input string

virtual void setMin(void)
set voxel value to min possible value

virtual void setMax(void)
set voxel value to max possible value

virtual double maxValue(void)
returns voxel max possible value

virtual double minValue(void)
returns voxel min possible value

static Voxel* voxelByType(Inrimage::WORD_TYPE type, unsigned int vdim = 1)
creates a voxel whose dynamic type is given Value is set to 0
Parameters:
type - dynamic voxel type
vdim - for vectorial types only: creates a scalar voxel type if vdim == 1 and a vectorial voxel type otherwise


Direct child classes:
VoxelRGBA
VoxelRGB
VoxelFloat
VoxelFV
VoxelDouble
VoxelDV
Voxel8u
Voxel8s
Voxel64u
Voxel64s
Voxel32u
Voxel32s
Voxel16u
Voxel16s

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de