#include <vlvolprocessor.h>
Inheritance diagram for vlVolProcessor:

Public Member Functions | |
| vlVolProcessor () | |
| Default constructor for vlVolProcessor. | |
| virtual | ~vlVolProcessor () |
| Default destructor. | |
| virtual vlVarList * | config () |
| Returns a pointer to the configuration variables of the vol processor. | |
| virtual const vlVarList * | results () const |
| Returns a pointer to the variables which store results of the vol processor. | |
| virtual bool | setVolume (vlVolume *vol) |
| Sets the volume on which the vol processsor will run. | |
| virtual void | init () |
| This function is called after execution of setVolume(). | |
| virtual bool | run ()=0 |
| Run the vol processor. | |
Protected Member Functions | |
| vlVolume * | vol () |
| Pointer to the volume data. | |
| vlVarListAdmin & | configRef () |
| Pointer to the config variable data. | |
| vlVarListAdmin & | resultsRef () |
| Pointer to the results variable data. | |
Private Attributes | |
| vlVolume * | m_vol |
| Volume to work with. | |
| vlVarListAdmin | m_config |
| The configuration variables. | |
| vlVarListAdmin | m_results |
| The result variables. | |
To implement a new volume processor, subclass from this class and implement the methods.
Definition at line 58 of file vlvolprocessor.h.
|
|
This will create an instance of m_config and m_results, set m_vol to NULL. Definition at line 32 of file vlvolprocessor.cpp. References API_VERSION_MAJOR, API_VERSION_MINOR, API_VERSION_REV, vlPlugin::infoRef(), m_vol, vlPluginInfo::setAPIVersion(), vlPluginInfo::setServiceGroup(), VL_BASE_SERVICE, and VL_BASE_SERVICE_DESC. |
|
|
Definition at line 40 of file vlvolprocessor.cpp. |
|
|
The variables are stored in a vlVarList. The API of that class can be used to set values to the variables.
Definition at line 45 of file vlvolprocessor.cpp. References m_config. Referenced by CreateVolume(), and queryPlugin(). |
|
|
|
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 in vlVolProcessorAlphaAdd, vlVolProcessorCentralDiff, vlVolProcessorConcatenate, VolumeCrop, vlVolProcessorDilate, vlVolProcessorErode, vlVolProcessorRegionGrow, vlRegionGrowOffsetFinder, vlVolProcessorSobel, and vlVolProcessorThresh. Definition at line 73 of file vlvolprocessor.cpp. Referenced by setVolume(), and vlVolProcessorTest::vlVolProcessorTest(). |
|
|
The variables are stored in a vlVarList. The API of that class can be used to get the values of the variables.
Definition at line 51 of file vlvolprocessor.cpp. References m_results. Referenced by CreateVolume(). |
|
|
Definition at line 124 of file vlvolprocessor.h. References m_results. Referenced by GaussianApprox::computeApproxGaussBlur(), vlVolProcessorDilate::dilate(), vlVolProcessorErode::erode(), vlVolProcessorRegionGrow::regionGrow(), vlRegionGrowOffsetFinder::regionGrowOffsets(), vlVolProcessorSobel::run(), vlVolProcessorCentralDiff::run(), and vlVolProcessorThresh::thresholding(). |
|
|
Implemented in vlVolProcessorAlphaAdd, vlVolProcessorCentralDiff, vlVolProcessorConcatenate, VolumeCrop, vlVolProcessorDilate, vlVolProcessorErode, GaussianApprox, vlVolProcessorRegionGrow, vlRegionGrowOffsetFinder, vlVolProcessorTest, vlVolProcessorSobel, and vlVolProcessorThresh. Referenced by CreateVolume(). |
|
|
Definition at line 57 of file vlvolprocessor.cpp. References init(), vlVolume::isValid(), and m_vol. Referenced by CreateVolume(), and queryPlugin(). |
|
|
|
Definition at line 131 of file vlvolprocessor.h. Referenced by config(), and configRef(). |
|
|
Definition at line 134 of file vlvolprocessor.h. Referenced by results(), and resultsRef(). |
|
|
Definition at line 128 of file vlvolprocessor.h. Referenced by setVolume(), vlVolProcessor(), and vol(). |
1.3.3