![]() |
MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Class template representing a single row of an existing volume. More...
#include <mdsVolumeView.h>

Public Types | |
| enum | { CLASS_VOLUME_VIEW } |
| Simple tag of "volume view" classes. More... | |
| enum | { TEMPLATE_PARAMETER_IS_NOT_VOLUME = V::CLASS_VOLUME } |
| Check that V is a volume. More... | |
| typedef mds::math::CVectorBase < CVolumeRow< V > > | tBase |
| Base class. | |
| typedef CVectorTraits < CVolumeRow< V > >::tElement | tElement |
| Element tyoe. | |
| typedef CVolumeRow< V > | tVector |
| Vector type. | |
| typedef V | tVolume |
| Volume type. | |
| typedef V::tVoxel | tVoxel |
| Voxel type. | |
Public Member Functions | |
| tVoxel & | at (tSize x) |
| Returns a subscripted voxel of the row. | |
| const tVoxel & | at (tSize x) const |
| void | copyFrom (const tVoxel *pSrc) |
| Fills the row using a given input buffer. | |
| void | copyTo (tVoxel *pDst) const |
| Copies the row data to the output buffer. | |
| CVolumeRow (const tVolume &Volume, tSize y, tSize z) | |
| Constructor. | |
| CVolumeRow (const CVolumeRow &Row) | |
| Copy constructor. | |
| CVolumeRow & | fill (const tVoxel &c) |
| Fills the row using a given voxel value. | |
| template<class Function > | |
| Function | forEach (Function Func) |
| Calls a function object for every voxel in the row. | |
| template<class Function > | |
| Function | forEach (Function Func) const |
| Calls a function object for every voxel in the row. | |
| template<class Function > | |
| Function | forEach (Function Func) |
| Calls a function object for every vector element. | |
| template<class Function > | |
| Function | forEach (Function Func) const |
| Calls a function object for every vector element. | |
| tVector & | getImpl () |
| Returns reference to the vector implementation. | |
| const tVector & | getImpl () const |
| tSize | getSize () const |
| Returns the row size. | |
| tSize | getStride () const |
| Returns stride between two neigbouring elements. | |
| tVoxel & | operator() (tSize x) |
| Returns a subscripted voxel of the row. | |
| const tVoxel & | operator() (tSize x) const |
| template<class Derived > | |
| CVolumeRow & | operator*= (const mds::math::CVectorBase< Derived > &Row) |
| Voxel wise product. | |
| template<typename U > | |
| CVolumeRow & | operator*= (const U &c) |
| Multiplies all voxels by scalar. | |
| template<class Derived > | |
| CVolumeRow< V > & | operator*= (const mds::math::CVectorBase< Derived > &Row) |
| template<typename U > | |
| CVolumeRow< V > & | operator*= (const U &c) |
| template<class Derived > | |
| CVolumeRow & | operator+= (const mds::math::CVectorBase< Derived > &Row) |
| Voxel wise addition. | |
| template<typename U > | |
| CVolumeRow & | operator+= (const U &c) |
| Adds scalar to all voxels. | |
| template<class Derived > | |
| CVolumeRow< V > & | operator+= (const mds::math::CVectorBase< Derived > &Row) |
| template<typename U > | |
| CVolumeRow< V > & | operator+= (const U &c) |
| template<class Derived > | |
| CVolumeRow & | operator-= (const mds::math::CVectorBase< Derived > &Row) |
| Voxel wise subtraction. | |
| template<typename U > | |
| CVolumeRow & | operator-= (const U &c) |
| Subtracts scalar from all voxels. | |
| template<class Derived > | |
| CVolumeRow< V > & | operator-= (const mds::math::CVectorBase< Derived > &Row) |
| template<typename U > | |
| CVolumeRow< V > & | operator-= (const U &c) |
| template<class Derived > | |
| CVolumeRow & | operator/= (const mds::math::CVectorBase< Derived > &Row) |
| Voxel wise division. | |
| template<typename U > | |
| CVolumeRow & | operator/= (const U &c) |
| Divides all voxels by scalar. | |
| template<class Derived > | |
| CVolumeRow< V > & | operator/= (const mds::math::CVectorBase< Derived > &Row) |
| template<typename U > | |
| CVolumeRow< V > & | operator/= (const U &c) |
| template<class Function > | |
| Function | pforEach (Function Func) |
| Calls a function object for every voxel in the row. | |
| template<class Function > | |
| Function | pforEach (Function Func) const |
| Calls a function object for every voxel in the row. | |
| template<class Function > | |
| Function | pforEach (Function Func) |
| template<class Function > | |
| Function | pforEach (Function Func) const |
| tVector & | set (tSize i, const tElement &Value) |
| Sets the vector element at the position [i]. | |
| CVolumeRow & | set (tSize x, const tVoxel &Value) |
| Changes value of a voxel in the row. | |
| tSize | size () const |
| Returns the row size. | |
Protected Member Functions | |
| CVolumeRow & | operator= (const CVolumeRow &) |
| Proctected assignment operator. | |
Protected Attributes | |
| tVolume & | m_Volume |
| Reference to the original volume. | |
| tSize | m_y |
| Coordinates of the volume row. | |
| tSize | m_z |
Class template representing a single row of an existing volume.
| typedef mds::math::CVectorBase<CVolumeRow<V> > mds::img::CVolumeRow< V >::tBase |
Base class.
typedef CVectorTraits<CVolumeRow< V > >::tElement mds::math::CVectorBase< CVolumeRow< V > >::tElement [inherited] |
Element tyoe.
typedef CVolumeRow< V > mds::math::CVectorBase< CVolumeRow< V > >::tVector [inherited] |
Vector type.
| typedef V mds::img::CVolumeRow< V >::tVolume |
Volume type.
| typedef V::tVoxel mds::img::CVolumeRow< V >::tVoxel |
Voxel type.
| anonymous enum |
| CVolumeRow::CVolumeRow | ( | const tVolume & | Volume, |
| tSize | y, | ||
| tSize | z | ||
| ) |
Constructor.
| CVolumeRow::CVolumeRow | ( | const CVolumeRow< V > & | Row | ) |
Copy constructor.
| tVoxel& mds::img::CVolumeRow< V >::at | ( | tSize | x | ) |
Returns a subscripted voxel of the row.
Reimplemented from mds::math::CVectorBase< CVolumeRow< V > >.
| const tVoxel& mds::img::CVolumeRow< V >::at | ( | tSize | x | ) | const |
Reimplemented from mds::math::CVectorBase< CVolumeRow< V > >.
| void CVolumeRow::copyFrom | ( | const tVoxel * | pSrc | ) |
Fills the row using a given input buffer.
| void CVolumeRow::copyTo | ( | tVoxel * | pDst | ) | const |
Copies the row data to the output buffer.
| CVolumeRow< V > & CVolumeRow::fill | ( | const tVoxel & | c | ) |
Fills the row using a given voxel value.
| Function mds::img::CVolumeRow< V >::forEach | ( | Function | Func | ) |
Calls a function object for every voxel in the row.
Reimplemented from mds::math::CVectorBase< CVolumeRow< V > >.
| Function mds::img::CVolumeRow< V >::forEach | ( | Function | Func | ) | const |
Calls a function object for every voxel in the row.
Reimplemented from mds::math::CVectorBase< CVolumeRow< V > >.
| Function mds::img::CVolumeRow< V >::forEach | ( | Function | Func | ) |
Calls a function object for every vector element.
Reimplemented from mds::math::CVectorBase< CVolumeRow< V > >.
| Function mds::img::CVolumeRow< V >::forEach | ( | Function | Func | ) | const |
Calls a function object for every vector element.
Reimplemented from mds::math::CVectorBase< CVolumeRow< V > >.
| tVector& mds::math::CVectorBase< CVolumeRow< V > >::getImpl | ( | ) | [inherited] |
Returns reference to the vector implementation.
| const tVector& mds::math::CVectorBase< CVolumeRow< V > >::getImpl | ( | ) | const [inherited] |
| tSize mds::img::CVolumeRow< V >::getSize | ( | ) | const |
Returns the row size.
Reimplemented from mds::math::CVectorBase< CVolumeRow< V > >.
| tSize mds::img::CVolumeRow< V >::getStride | ( | ) | const |
Returns stride between two neigbouring elements.
Reimplemented from mds::math::CVectorBase< CVolumeRow< V > >.
| tVoxel& mds::img::CVolumeRow< V >::operator() | ( | tSize | x | ) |
Returns a subscripted voxel of the row.
Reimplemented from mds::math::CVectorBase< CVolumeRow< V > >.
| const tVoxel& mds::img::CVolumeRow< V >::operator() | ( | tSize | x | ) | const |
Reimplemented from mds::math::CVectorBase< CVolumeRow< V > >.
| CVolumeRow< V > & mds::img::CVolumeRow< V >::operator*= | ( | const mds::math::CVectorBase< Derived > & | Row | ) |
Voxel wise product.
| CVolumeRow< V > & mds::img::CVolumeRow< V >::operator*= | ( | const U & | c | ) |
Multiplies all voxels by scalar.
| CVolumeRow<V>& mds::img::CVolumeRow< V >::operator*= | ( | const mds::math::CVectorBase< Derived > & | Row | ) |
| CVolumeRow<V>& mds::img::CVolumeRow< V >::operator*= | ( | const U & | c | ) |
| CVolumeRow< V > & mds::img::CVolumeRow< V >::operator+= | ( | const mds::math::CVectorBase< Derived > & | Row | ) |
Voxel wise addition.
| CVolumeRow< V > & mds::img::CVolumeRow< V >::operator+= | ( | const U & | c | ) |
Adds scalar to all voxels.
| CVolumeRow<V>& mds::img::CVolumeRow< V >::operator+= | ( | const mds::math::CVectorBase< Derived > & | Row | ) |
| CVolumeRow<V>& mds::img::CVolumeRow< V >::operator+= | ( | const U & | c | ) |
| CVolumeRow< V > & mds::img::CVolumeRow< V >::operator-= | ( | const mds::math::CVectorBase< Derived > & | Row | ) |
Voxel wise subtraction.
| CVolumeRow< V > & mds::img::CVolumeRow< V >::operator-= | ( | const U & | c | ) |
Subtracts scalar from all voxels.
| CVolumeRow<V>& mds::img::CVolumeRow< V >::operator-= | ( | const mds::math::CVectorBase< Derived > & | Row | ) |
| CVolumeRow<V>& mds::img::CVolumeRow< V >::operator-= | ( | const U & | c | ) |
| CVolumeRow< V > & mds::img::CVolumeRow< V >::operator/= | ( | const mds::math::CVectorBase< Derived > & | Row | ) |
Voxel wise division.
| CVolumeRow< V > & mds::img::CVolumeRow< V >::operator/= | ( | const U & | c | ) |
Divides all voxels by scalar.
| CVolumeRow<V>& mds::img::CVolumeRow< V >::operator/= | ( | const mds::math::CVectorBase< Derived > & | Row | ) |
| CVolumeRow<V>& mds::img::CVolumeRow< V >::operator/= | ( | const U & | c | ) |
| CVolumeRow& mds::img::CVolumeRow< V >::operator= | ( | const CVolumeRow< V > & | ) | [protected] |
Proctected assignment operator.
| Function mds::img::CVolumeRow< V >::pforEach | ( | Function | Func | ) |
Calls a function object for every voxel in the row.
| Function mds::img::CVolumeRow< V >::pforEach | ( | Function | Func | ) | const |
Calls a function object for every voxel in the row.
| Function mds::img::CVolumeRow< V >::pforEach | ( | Function | Func | ) |
| Function mds::img::CVolumeRow< V >::pforEach | ( | Function | Func | ) | const |
| tVector& mds::math::CVectorBase< CVolumeRow< V > >::set | ( | tSize | i, |
| const tElement & | Value | ||
| ) | [inherited] |
Sets the vector element at the position [i].
| CVolumeRow& mds::img::CVolumeRow< V >::set | ( | tSize | x, |
| const tVoxel & | Value | ||
| ) |
Changes value of a voxel in the row.
| tSize mds::img::CVolumeRow< V >::size | ( | ) | const |
Returns the row size.
Reimplemented from mds::math::CVectorBase< CVolumeRow< V > >.
tVolume& mds::img::CVolumeRow< V >::m_Volume [protected] |
Reference to the original volume.
tSize mds::img::CVolumeRow< V >::m_y [protected] |
Coordinates of the volume row.
tSize mds::img::CVolumeRow< V >::m_z [protected] |
1.7.6.1