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

vlVolProcessorCentralDiff Class Reference

This plugin computes a central difference gradient volume from the input volume. More...

#include <centraldiff.h>

Inheritance diagram for vlVolProcessorCentralDiff:

vlVolProcessor vlPlugin List of all members.

Public Member Functions

 vlVolProcessorCentralDiff ()
 Default constructor.

virtual ~vlVolProcessorCentralDiff ()
 Default destructor.

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

bool run ()

Protected Member Functions

template<class DataType> bool runT (DataType &dummy)

Protected Attributes

vlVolumem_cdVolume

Detailed Description

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

Definition at line 41 of file volprocessing/centraldiff/centraldiff.h.


Constructor & Destructor Documentation

vlVolProcessorCentralDiff::vlVolProcessorCentralDiff  ) 
 

Definition at line 43 of file volprocessing/centraldiff/centraldiff.cpp.

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

vlVolProcessorCentralDiff::~vlVolProcessorCentralDiff  )  [virtual]
 

Definition at line 53 of file volprocessing/centraldiff/centraldiff.cpp.


Member Function Documentation

void vlVolProcessorCentralDiff::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 volprocessing/centraldiff/centraldiff.cpp.

References vlVarListAdmin::clear(), and vlVolProcessor::configRef().

bool vlVolProcessorCentralDiff::run  )  [virtual]
 

add the result

Implements vlVolProcessor.

Definition at line 64 of file volprocessing/centraldiff/centraldiff.cpp.

References vlVarListAdmin::add(), callFunctionOnDataTypeNoArgs, Float, vlVolume::isValid(), m_cdVolume, vlVolProcessor::resultsRef(), runT(), and vlVolProcessor::vol().

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

Definition at line 92 of file volprocessing/centraldiff/centraldiff.cpp.

References vlVoxelOp::CentralDiff, vlVoxelOpValue::dl(), vlVolIterConst< DataType, Layout >::end(), vlVolIterConst< DataType, Layout >::getOp(), m_cdVolume, vlVolIterConst< DataType, Layout >::nextXYZ(), vlVolIter< DataType, Layout >::set(), vlVolIterConst< DataType, Layout >::setVoxelOperation(), and vlVolProcessor::vol().

Referenced by run().


Member Data Documentation

vlVolume* vlVolProcessorCentralDiff::m_cdVolume [protected]
 

Definition at line 59 of file volprocessing/centraldiff/centraldiff.h.

Referenced by run(), and runT().


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