OpenWalnut
1.5.0dev
|
This class is the base for all specific parameterization algorithms. More...
#include <WRasterParameterization.h>
Public Member Functions | |
WRasterParameterization (std::shared_ptr< WGridRegular3D > grid) | |
Default constructor. More... | |
virtual | ~WRasterParameterization () |
Destructor. More... | |
virtual void | parameterizeVoxel (const WVector3i &voxel, size_t voxelIdx, const int axis, const double value, const WPosition &start, const WPosition &end)=0 |
This method allows this parameterization to update. More... | |
virtual std::shared_ptr< WDataSetScalar > | getDataSet ()=0 |
Gets the dataset representing the parameterization. More... | |
virtual void | newLine (const WLine &line) |
Gets called for each new line getting rasterized. More... | |
virtual void | newSegment (const WPosition &start, const WPosition &end) |
Gets called for each new line segment getting rasterized, as one segment can have multiple voxels. More... | |
virtual void | finished () |
This method gets called whenever all lines got rasterized. More... | |
Protected Attributes | |
std::shared_ptr< WGridRegular3D > | m_grid |
The grid, which needs to be used for the created dataset and to which the parameterizeVoxel method is relating to. More... | |
This class is the base for all specific parameterization algorithms.
Derive from it to write your own class, which is able to create a new dataset basing on the parameterization of several lines. This might be useful for datasets which contain the current fiber direction at a voxel, datasets integrating the length of fibers along a fiber or parameterizing the volume using the centerline.
Definition at line 41 of file WRasterParameterization.h.
|
explicit |
Default constructor.
It needs a grid as the parameterization volume HAS to be in the same grid.
grid | the grid to use for parameterization. |
Definition at line 29 of file WRasterParameterization.cpp.
|
virtual |
Destructor.
Definition at line 35 of file WRasterParameterization.cpp.
|
virtual |
This method gets called whenever all lines got rasterized.
Reimplemented in WCenterlineParameterization.
Definition at line 52 of file WRasterParameterization.cpp.
|
pure virtual |
Gets the dataset representing the parameterization.
Implemented in WIntegrationParameterization, and WCenterlineParameterization.
|
virtual |
Gets called for each new line getting rasterized.
line | the new line. |
Reimplemented in WIntegrationParameterization, and WCenterlineParameterization.
Definition at line 40 of file WRasterParameterization.cpp.
Referenced by WCenterlineParameterization::newLine().
Gets called for each new line segment getting rasterized, as one segment can have multiple voxels.
start | start point of the new line segment |
end | end point of the new line segment |
Reimplemented in WIntegrationParameterization, and WCenterlineParameterization.
Definition at line 46 of file WRasterParameterization.cpp.
Referenced by WCenterlineParameterization::newSegment().
|
pure virtual |
This method allows this parameterization to update.
It gets called for every voxel which is rasterized by the WRasterAlgorithm.
voxel | the voxel to parameterize |
voxelIdx | the voxel index in the common grid calculated using "voxel" (this is for convenience) |
axis | Along which axis the traversal takes place. Since when walking in e.g. X-direction there are not supporting voxels in the |
value | the new voxel value |
start | Start point of the line segment (used to computed the distance) |
end | End point of the line segment (used to computed the distance) |
Implemented in WIntegrationParameterization, and WCenterlineParameterization.
|
protected |
The grid, which needs to be used for the created dataset and to which the parameterizeVoxel method is relating to.
Definition at line 101 of file WRasterParameterization.h.
Referenced by WCenterlineParameterization::finished(), WCenterlineParameterization::parameterizeVoxel(), and WIntegrationParameterization::parameterizeVoxel().