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

Predeclaration for cursor. More...

#include <mlTSubImage.h>

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

Public Member Functions

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

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

DATATYPE * getPointer () const
 
DATATYPE * getPointerWithOffset (const ImageVector &offset) const
 Returns cursor position of voxel given from current cursor shifted by offset. More...
 
DATATYPE * getPointerWithOffset (MLint dx, MLint dy, MLint dz) const
 Returns cursor position of voxel given from current cursor shifted by (dx, dy, dz). More...
 
Set voxel values at cursor position.
void setValue (DATATYPE value) const
 Sets voxel value at cursor position to value. More...
 
void setValueWithOffset (const ImageVector &offset, DATATYPE value) const
 Sets voxel value at (cursor position + offset) to value. More...
 
void setValueWithOffset (MLint dx, MLint dy, MLint dz, DATATYPE value) const
 Sets voxel value at (cursor position + (dx, dy, dz)) to value. More...
 
- 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. More...
 
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. More...
 
void setImagePosition (const ImageVector &position)
 Sets cursor to the given 6d position relative to the origin of the complete image region. More...
 
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. More...
 
void setPosition (const DATATYPE *pointer)
 Sets cursor to the given pointer where the pointer is the memory address of the voxel. More...
 
void moveByOffset (const ImageVector &offset)
 Moves cursor to cursor position + offset. More...
 
void moveByOffset (MLint x, MLint y, MLint z)
 Moves cursor to cursor position + (x, y, z). More...
 
void moveX ()
 Moves cursor forward in x direction. More...
 
void moveY ()
 Moves cursor forward in y direction. More...
 
void moveZ ()
 Moves cursor forward in z direction. More...
 
void moveC ()
 Moves cursor forward in c direction. More...
 
void moveT ()
 Moves cursor forward in t direction. More...
 
void moveU ()
 Moves cursor forward in u direction. More...
 
void reverseMoveX ()
 Moves cursor backward in x direction. More...
 
void reverseMoveY ()
 Moves cursor backward in y direction. More...
 
void reverseMoveZ ()
 Moves cursor backward in z direction. More...
 
void reverseMoveC ()
 Moves cursor backward in c direction. More...
 
void reverseMoveT ()
 Moves cursor backward in t direction. More...
 
void reverseMoveU ()
 Moves cursor backward in u direction. More...
 
DATATYPE getValue () const
 Returns voxel value at cursor position. More...
 
DATATYPE getValueWithOffset (const ImageVector &offset) const
 Returns voxel value at (cursor position + offset). More...
 
DATATYPE getValueWithOffset (MLint dx, MLint dy, MLint dz) const
 Return voxel value at (cursor position + (dx, dy, dz)) More...
 

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. More...
 
ImageVector _subImageOffset
 SubImage offset in original image. More...
 
ImageVector _stride
 Stride for the sub image. More...
 
DATATYPE * _cursor
 Cursor address for image data access. More...
 

Detailed Description

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

Predeclaration for cursor.

Cursor to access data of a TSubImage for reading and writing.

Definition at line 1187 of file mlTSubImage.h.

Constructor & Destructor Documentation

◆ TSubImageCursor()

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

Definition at line 1193 of file mlTSubImage.h.

Member Function Documentation

◆ getPointer()

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

Definition at line 1201 of file mlTSubImage.h.

◆ getPointerWithOffset() [1/2]

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

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

Definition at line 1203 of file mlTSubImage.h.

◆ getPointerWithOffset() [2/2]

template<typename DATATYPE >
DATATYPE* ml::TSubImageCursor< 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 1205 of file mlTSubImage.h.

◆ setValue()

template<typename DATATYPE >
void ml::TSubImageCursor< DATATYPE >::setValue ( DATATYPE  value) const
inline

Sets voxel value at cursor position to value.

Definition at line 1217 of file mlTSubImage.h.

◆ setValueWithOffset() [1/2]

template<typename DATATYPE >
void ml::TSubImageCursor< DATATYPE >::setValueWithOffset ( const ImageVector offset,
DATATYPE  value 
) const
inline

Sets voxel value at (cursor position + offset) to value.

Definition at line 1219 of file mlTSubImage.h.

◆ setValueWithOffset() [2/2]

template<typename DATATYPE >
void ml::TSubImageCursor< DATATYPE >::setValueWithOffset ( MLint  dx,
MLint  dy,
MLint  dz,
DATATYPE  value 
) const
inline

Sets voxel value at (cursor position + (dx, dy, dz)) to value.

Definition at line 1221 of file mlTSubImage.h.


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