Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

vlVolProcessorAlphaAdd Class Reference

This is a class for performing region growing on vlVolumes. More...

#include <alphaadd.h>

Inheritance diagram for vlVolProcessorAlphaAdd:

vlVolProcessor vlPlugin List of all members.

Public Member Functions

 vlVolProcessorAlphaAdd ()
 Default constructor.

virtual ~vlVolProcessorAlphaAdd ()
 Default destructor.

void init ()
 This function is called after execution of setVolume().

bool run ()
 Run the vol processor.

template<> bool runT (vlColorRGBAub &dummy)
template<> bool runT (vlColorRGBub &dummy)

Protected Member Functions

template<class DataType> bool runT (DataType &dummy)
template<class DataType> bool alphaAdd (DataType &dummy)
template<class DataType> bool alphaAddReal (vlVolIter< DataType > *iter, vlVolIter< vlColorRGBAub > *rgbaIter)

Protected Attributes

vlVolumem_rgbaVol
 Mask volume.


Detailed Description

More document will come soon.

Author:
Sarang Lakare <sarang@users.sf.net>

Definition at line 41 of file alphaadd.h.


Constructor & Destructor Documentation

vlVolProcessorAlphaAdd::vlVolProcessorAlphaAdd  ) 
 

Definition at line 44 of file alphaadd.cpp.

References vlPlugin::infoRef(), vlPluginInfo::setName(), vlPluginInfo::setService(), and vlPluginInfo::setVersion().

vlVolProcessorAlphaAdd::~vlVolProcessorAlphaAdd  )  [virtual]
 

Definition at line 54 of file alphaadd.cpp.


Member Function Documentation

template<class DataType>
bool vlVolProcessorAlphaAdd::alphaAdd DataType &  dummy  )  [protected]
 

template<class DataType>
bool vlVolProcessorAlphaAdd::alphaAddReal vlVolIter< DataType > *  iter,
vlVolIter< vlColorRGBAub > *  rgbaIter
[protected]
 

Definition at line 71 of file alphaadd.cpp.

References vlVolIterConst< DataType, Layout >::end(), vlVolIterConst< DataType, Layout >::get(), vlVolIterConst< DataType, Layout >::next(), vlVolIter< DataType, Layout >::set(), uint8, vlColorRGBAub, and vlColorRGBub.

void vlVolProcessorAlphaAdd::init  )  [virtual]
 

If the volume argument is not valid, then init() is not called. Implement this function if you need to do any initialization before the user calls run. For e.g., this is the right place to add config parameters which are volume type dependent.

Reimplemented from vlVolProcessor.

Definition at line 58 of file alphaadd.cpp.

References vlVarListAdmin::add(), vlVarListAdmin::clear(), vlVolProcessor::configRef(), uint32, UnsignedInt8, VL_NOCHANGE, and vlBitOperation.

bool vlVolProcessorAlphaAdd::run  )  [virtual]
 

Returns:
true if successful, false otherwise.

Implements vlVolProcessor.

Definition at line 115 of file alphaadd.cpp.

References callFunctionOnDataTypeNoArgs, vlVolProcessor::configRef(), vlVolume::dim(), vlVarList::get(), vlVarList::isDefined(), vlVarList::isValid(), m_rgbaVol, runT(), and vlVolProcessor::vol().

template<>
bool vlVolProcessorAlphaAdd::runT vlColorRGBub dummy  ) 
 

template<>
bool vlVolProcessorAlphaAdd::runT vlColorRGBAub dummy  ) 
 

template<class DataType>
bool vlVolProcessorAlphaAdd::runT DataType &  dummy  )  [protected]
 

Definition at line 135 of file alphaadd.cpp.

Referenced by run().


Member Data Documentation

vlVolume* vlVolProcessorAlphaAdd::m_rgbaVol [protected]
 

Definition at line 66 of file alphaadd.h.

Referenced by run().


The documentation for this class was generated from the following files:
Generated on Fri Mar 18 11:33:23 2005 for OpenVL by doxygen 1.3.3