VHTK::ScalarCompositionFilter Class Reference
[Volumetric Data Nodes]

This filter composes two or more scalar image volumes. More...

Inheritance diagram for VHTK::ScalarCompositionFilter:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 ScalarCompositionFilter (H3D::Inst< H3D::SFNode > _metadata=0, H3D::Inst< H3D::Field > _dataChanged=0, H3D::Inst< H3D::SFBool > _scaleVectors=0, H3D::Inst< SFImage > _image=0, H3D::Inst< MFScalarImageNode > _scalarVolume=0, H3D::Inst< MFVectorImageNode > _vectorVolume=0, H3D::Inst< H3D::SFString > _pixelComponentType=0, H3D::Inst< H3D::SFInt32 > _bitsPerPixel=0, H3D::Inst< H3D::SFString > _method=0)
 Constructor.

Public Attributes

auto_ptr< H3D::SFStringmethod
 The method of composition.

Static Public Attributes

static H3D::H3DNodeDatabase database
 X3D node/field database.

Protected Member Functions

virtual bool convertData (void *&data, int &width, int &height, int &depth, H3D::Vec3f &pixelSize)
template<typename DST_TYPE >
bool doConvertData (DST_TYPE *&data, int &width, int &height, int &depth, H3D::Vec3f &pixelSize)

Friends

class ScalarImageFilterHelper


Detailed Description

This filter composes two or more scalar image volumes.

X3D Interface

 NameTypeDefault valueDescription
method SFString   "SUM"   The method of composition. Valid values are SUM and SUB.  
 
Derived from ScalarImageFilter  
scalarVolume MFScalarImageNode   []   Scalar volume(s) to extract data from.  
vectorVolume MFVectorImageNode   []   Vector volume(s) to extract data from.  
pixelComponentType SFString   ""   The type of the target volume. One of SIGNED, UNSIGNED or RATIONAL. If empty the source volume type is used.  
bitsPerPixel SFInt32   0   The number of bits per voxel for the target volume. If zero the source volume type is used.  


Constructor & Destructor Documentation

VHTK::ScalarCompositionFilter::ScalarCompositionFilter ( H3D::Inst< H3D::SFNode _metadata = 0,
H3D::Inst< H3D::Field _dataChanged = 0,
H3D::Inst< H3D::SFBool _scaleVectors = 0,
H3D::Inst< SFImage _image = 0,
H3D::Inst< MFScalarImageNode _scalarVolume = 0,
H3D::Inst< MFVectorImageNode _vectorVolume = 0,
H3D::Inst< H3D::SFString _pixelComponentType = 0,
H3D::Inst< H3D::SFInt32 _bitsPerPixel = 0,
H3D::Inst< H3D::SFString _method = 0 
)

Constructor.


Member Function Documentation

virtual bool VHTK::ScalarCompositionFilter::convertData ( void *&  data,
int &  width,
int &  height,
int &  depth,
H3D::Vec3f &  pixelSize 
) [inline, protected, virtual]

template<typename DST_TYPE >
bool VHTK::ScalarCompositionFilter::doConvertData ( DST_TYPE *&  data,
int &  width,
int &  height,
int &  depth,
H3D::Vec3f &  pixelSize 
) [inline, protected]


Member Data Documentation

X3D node/field database.

Reimplemented from VHTK::ScalarImageFilter.

The method of composition.

Valid values are

  • SUM - voxelwise sum of the individual volumes
  • SUB - first scalar volume minus the remaining volumes


Generated on Thu Oct 1 08:53:37 2009 for Volume Haptics Toolkit by  doxygen 1.5.8