MeVisLab Toolbox Reference
ml::ConstTSubImageCursor< DATATYPE > Class Template Reference

Predeclaration for const cursor. More...

#include <mlTSubImage.h>

Inheritance diagram for ml::ConstTSubImageCursor< DATATYPE >:
ml::TSubImageCursorBase< DATATYPE >

Public Member Functions

 ConstTSubImageCursor (const TSubImage< DATATYPE > &subImage)
 
Getting the cursor position as const pointer to data.

Returns current cursor position (i.e., return the memory address of the voxel the cursor points to).

const DATATYPEgetPointer () const
 
const DATATYPEgetPointerWithOffset (const ImageVector &offset) const
 Returns cursor position of voxel given from current cursor shifted by offset.
 
const DATATYPEgetPointerWithOffset (MLint dx, MLint dy, MLint dz) const
 Returns cursor position of voxel given from current cursor shifted by (dx, dy, dz).
 
- Public Member Functions inherited from ml::TSubImageCursorBase< DATATYPE >
void setSubImagePosition (const ImageVector &position)
 Sets cursor to the given position relative to the origin of the subimage region.
 
void setSubImagePosition (MLint x, MLint y, MLint z)
 Sets cursor to the given 3d position (x, y, z) relative to the origin of the subimage region.
 
void setImagePosition (const ImageVector &position)
 Sets cursor to the given 6d position relative to the origin of the complete image region.
 
void setImagePosition (MLint x, MLint y, MLint z)
 Sets cursor to the given 3d position (x, y, z) relative to the origin of the complete image region.
 
void setPosition (const DATATYPE *pointer)
 Sets cursor to the given pointer where the pointer is the memory address of the voxel.
 
void moveByOffset (const ImageVector &offset)
 Moves cursor to cursor position + offset.
 
void moveByOffset (MLint x, MLint y, MLint z)
 Moves cursor to cursor position + (x, y, z).
 
void moveX ()
 Moves cursor forward in x direction.
 
void moveY ()
 Moves cursor forward in y direction.
 
void moveZ ()
 Moves cursor forward in z direction.
 
void moveC ()
 Moves cursor forward in c direction.
 
void moveT ()
 Moves cursor forward in t direction.
 
void moveU ()
 Moves cursor forward in u direction.
 
void reverseMoveX ()
 Moves cursor backward in x direction.
 
void reverseMoveY ()
 Moves cursor backward in y direction.
 
void reverseMoveZ ()
 Moves cursor backward in z direction.
 
void reverseMoveC ()
 Moves cursor backward in c direction.
 
void reverseMoveT ()
 Moves cursor backward in t direction.
 
void reverseMoveU ()
 Moves cursor backward in u direction.
 
DATATYPE getValue () const
 Returns voxel value at cursor position.
 
DATATYPE getValueWithOffset (const ImageVector &offset) const
 Returns voxel value at (cursor position + offset).
 
DATATYPE getValueWithOffset (MLint dx, MLint dy, MLint dz) const
 Return voxel value at (cursor position + (dx, dy, dz))
 

Additional Inherited Members

- Protected Member Functions inherited from ml::TSubImageCursorBase< DATATYPE >
 TSubImageCursorBase (const TSubImage< DATATYPE > &subImage)
 
- Protected Attributes inherited from ml::TSubImageCursorBase< DATATYPE >
DATATYPE_data
 SubImage data.
 
ImageVector _subImageOffset
 SubImage offset in original image.
 
ImageVector _stride
 Stride for the sub image.
 
DATATYPE_cursor
 Cursor address for image data access.
 

Detailed Description

template<typename DATATYPE>
class ml::ConstTSubImageCursor< DATATYPE >

Predeclaration for const cursor.

Cursor to access const data of a TSubImage.

Definition at line 921 of file mlTSubImage.h.

Constructor & Destructor Documentation

◆ ConstTSubImageCursor()

template<typename DATATYPE >
ml::ConstTSubImageCursor< DATATYPE >::ConstTSubImageCursor ( const TSubImage< DATATYPE > & subImage)
inline

Definition at line 926 of file mlTSubImage.h.

Member Function Documentation

◆ getPointer()

template<typename DATATYPE >
const DATATYPE * ml::ConstTSubImageCursor< DATATYPE >::getPointer ( ) const
inline

Definition at line 934 of file mlTSubImage.h.

◆ getPointerWithOffset() [1/2]

template<typename DATATYPE >
const DATATYPE * ml::ConstTSubImageCursor< DATATYPE >::getPointerWithOffset ( const ImageVector & offset) const
inline

Returns cursor position of voxel given from current cursor shifted by offset.

Definition at line 936 of file mlTSubImage.h.

◆ getPointerWithOffset() [2/2]

template<typename DATATYPE >
const DATATYPE * ml::ConstTSubImageCursor< DATATYPE >::getPointerWithOffset ( MLint dx,
MLint dy,
MLint dz ) const
inline

Returns cursor position of voxel given from current cursor shifted by (dx, dy, dz).

Definition at line 938 of file mlTSubImage.h.

References mlrange_cast().


The documentation for this class was generated from the following file: