MeVisLab Scripting Reference
MLWriteablePagedImageWrapper Class Reference
Inheritance diagram for MLWriteablePagedImageWrapper:
MLPagedImageWrapper

Public Slots

Property write access


void setImageExtent (const QList< qint64 > &ext)
 
void setImageExtent (quint64 x, quint64 y, quint64 z=1, quint64 c=1, quint64 t=1, quint64 u=1)
 
void setPageExtent (quint64 x, quint64 y, quint64 z=1, quint64 c=1, quint64 t=1, quint64 u=1)
 
void setPageExtent (const QList< qint64 > &ext)
 
void setVoxelToWorldMatrix (const QVariantList &matrix)
 
void setVoxelToWorldMatrix (const SbMatrixd &matrix)
 
void setVoxelSize (double vx, double vy, double vz)
 
void setVoxelSize (const QList< double > voxelSize)
 
void setMinVoxelValue (double value)
 
void setMaxVoxelValue (double value)
 
void setDataType (int dataType)
 
void setDataTypeFromName (const char *name)
 
void setDataTypeFromNumPyType (int numPyDataType)
 
void setInvalid ()
 
void setValid (bool flag=true)
 
void setStateInfo (const char *stateInfo)
 
void setImageProperties (MLPagedImageWrapper *image)
 
void setInputSubImageDataType (int index, int dataType)
 
void setInputSubImageDataTypeFromName (int index, const char *name)
 
void setCDimensionInfos (const QStringList &infos)
 
void setTDimensionInfos (const QList< QDateTime > &infos)
 
void setUDimensionInfos (const QStringList &infos)
 
- Public Slots inherited from MLPagedImageWrapper
QList< qint64 > imageExtent () const
 
QList< qint64 > pageExtent () const
 
int dataType () const
 
int numPyDataType () const
 
const char * dataTypeName () const
 
QList< double > voxelSize () const
 
double voxelVolumeInCubicMillimeters () const
 
double voxelVolumeInMilliliters () const
 
QVariantList worldToVoxelMatrix () const
 
QVariantList voxelToWorldMatrix () const
 
SbMatrixd worldToVoxelMatrixInventor () const
 
SbMatrixd voxelToWorldMatrixInventor () const
 
QList< double > mapVoxelToWorld (QList< double > vector) const
 
QList< double > mapVoxelToWorld (double x, double y, double z) const
 
QList< double > mapWorldToVoxel (QList< double > vector) const
 
QList< double > mapWorldToVoxel (double x, double y, double z) const
 
double minVoxelValue () const
 
double maxVoxelValue () const
 
QStringList getCDimensionInfos () const
 
QList< QDateTime > getTDimensionInfos () const
 
QStringList getUDimensionInfos () const
 
PySubImage getTile (const QList< qint64 > &pos, const QList< qint64 > &extent, int dataType=-2, double scale=1.0, double shift=0.)
 
double getInterpolatedValue (const QList< double > xyzPosition, qint64 c=0, qint64 t=0, qint64 u=0, double outsideFillValue=0)
 
QPixmap getSliceAsQPixmap (qint64 z=0, qint64 t=0, qint64 u=0)
 
QImage getSliceAsQImage (qint64 z=0, qint64 t=0, qint64 u=0)
 

Additional Inherited Members

- Public Types inherited from MLPagedImageWrapper
enum  DataTypes {
  MLuint8Type = ::MLuint8Type , MLint8Type = ::MLint8Type , MLuint16Type = ::MLuint16Type , MLint16Type = ::MLint16Type ,
  MLuint32Type = ::MLuint32Type , MLint32Type = ::MLint32Type , MLuint64Type = ::MLuint64Type , MLint64Type = ::MLint64Type ,
  MLfloatType = ::MLfloatType , MLdoubleType = ::MLdoubleType , MLcomplexfType = ::MLComplexfType , MLcomplexdType = ::MLComplexdType ,
  MLComplexfType = ::MLComplexfType , MLComplexdType = ::MLComplexdType , MLQuaternionfType = ::MLQuaternionfType , MLQuaterniondType = ::MLQuaterniondType ,
  MLVector2fType = ::MLVector2fType , MLVector2dType = ::MLVector2dType , MLVector3fType = ::MLVector3fType , MLVector3dType = ::MLVector3dType ,
  MLVector4fType = ::MLVector4fType , MLVector4dType = ::MLVector4dType , MLVector5fType = ::MLVector5fType , MLVector5dType = ::MLVector5dType ,
  MLVector6fType = ::MLVector6fType , MLVector6dType = ::MLVector6dType , MLVector7fType = ::MLVector7fType , MLVector7dType = ::MLVector7dType ,
  MLVector8fType = ::MLVector8fType , MLVector8dType = ::MLVector8dType , MLVector9fType = ::MLVector9fType , MLVector9dType = ::MLVector9dType ,
  MLVector10fType = ::MLVector10fType , MLVector10dType = ::MLVector10dType , MLVector16fType = ::MLVector16fType , MLVector16dType = ::MLVector16dType ,
  MLVector32fType = ::MLVector32fType , MLVector32dType = ::MLVector32dType , MLVector64fType = ::MLVector64fType , MLVector64dType = ::MLVector64dType ,
  MLMatrix2fType = ::MLMatrix2fType , MLMatrix2dType = ::MLMatrix2dType , MLMatrix3fType = ::MLMatrix3fType , MLMatrix3dType = ::MLMatrix3dType ,
  MLMatrix4fType = ::MLMatrix4fType , MLMatrix4dType = ::MLMatrix4dType , MLMatrix5fType = ::MLMatrix5fType , MLMatrix5dType = ::MLMatrix5dType ,
  MLMatrix6fType = ::MLMatrix6fType , MLMatrix6dType = ::MLMatrix6dType
}
 
enum  Options { UseImageExtent = -4711 }
 

Detailed Description

This class allows read/write access to a ml::PagedImage.

It is available to Python modules that implement calculateOutputProperties.

Member Function Documentation

◆ setCDimensionInfos

void MLWriteablePagedImageWrapper::setCDimensionInfos ( const QStringList &  infos)
slot

get information about C dimension

◆ setDataType

void MLWriteablePagedImageWrapper::setDataType ( int  dataType)
slot

set datatype from ML datatype id (you may use the MLDataType names MLuint8Type etc.

which are available as enum values on this object).

◆ setDataTypeFromName

void MLWriteablePagedImageWrapper::setDataTypeFromName ( const char *  name)
slot

set the datatype from the an ML datatype string name

◆ setDataTypeFromNumPyType

void MLWriteablePagedImageWrapper::setDataTypeFromNumPyType ( int  numPyDataType)
slot

set the datatype from NumPy (use ndarray.dtype.num and not ndarray.dtype)

◆ setImageExtent [1/2]

void MLWriteablePagedImageWrapper::setImageExtent ( const QList< qint64 > &  ext)
slot

set the image extent

◆ setImageExtent [2/2]

void MLWriteablePagedImageWrapper::setImageExtent ( quint64  x,
quint64  y,
quint64  z = 1,
quint64  c = 1,
quint64  t = 1,
quint64  u = 1 
)
slot

set the image extent

◆ setImageProperties

void MLWriteablePagedImageWrapper::setImageProperties ( MLPagedImageWrapper image)
slot

take over the essential image properties (but not the data/pages) of the given image (this is typically done to copy the image properties from an input image to an output image).

◆ setInputSubImageDataType

void MLWriteablePagedImageWrapper::setInputSubImageDataType ( int  index,
int  dataType 
)
slot

set the ML datatype for the input image index (default is datatype of output)

◆ setInputSubImageDataTypeFromName

void MLWriteablePagedImageWrapper::setInputSubImageDataTypeFromName ( int  index,
const char *  name 
)
slot

set the ML datatype for the input image index (default is datatype of output)

◆ setInvalid

void MLWriteablePagedImageWrapper::setInvalid ( )
inlineslot

invalidate the output image

◆ setMaxVoxelValue

void MLWriteablePagedImageWrapper::setMaxVoxelValue ( double  value)
inlineslot

set the maximum voxel value

◆ setMinVoxelValue

void MLWriteablePagedImageWrapper::setMinVoxelValue ( double  value)
inlineslot

set the minimum voxel value

◆ setPageExtent [1/2]

void MLWriteablePagedImageWrapper::setPageExtent ( const QList< qint64 > &  ext)
slot

set the page extent

◆ setPageExtent [2/2]

void MLWriteablePagedImageWrapper::setPageExtent ( quint64  x,
quint64  y,
quint64  z = 1,
quint64  c = 1,
quint64  t = 1,
quint64  u = 1 
)
slot

set the page extent

◆ setStateInfo

void MLWriteablePagedImageWrapper::setStateInfo ( const char *  stateInfo)
inlineslot

set the state info of the image (only useful if the image invalid)

◆ setTDimensionInfos

void MLWriteablePagedImageWrapper::setTDimensionInfos ( const QList< QDateTime > &  infos)
slot

get information about T dimension

◆ setUDimensionInfos

void MLWriteablePagedImageWrapper::setUDimensionInfos ( const QStringList &  infos)
slot

get information about U dimension

◆ setValid

void MLWriteablePagedImageWrapper::setValid ( bool  flag = true)
inlineslot

make the output image valid (which is the default when calculateOutputProperties is called)

◆ setVoxelSize [1/2]

void MLWriteablePagedImageWrapper::setVoxelSize ( const QList< double >  voxelSize)
slot

set the voxel size

◆ setVoxelSize [2/2]

void MLWriteablePagedImageWrapper::setVoxelSize ( double  vx,
double  vy,
double  vz 
)
slot

set the voxel size

◆ setVoxelToWorldMatrix [1/2]

void MLWriteablePagedImageWrapper::setVoxelToWorldMatrix ( const QVariantList &  matrix)
slot

set the voxel to world matrix (and update the worldToVoxel matrix and voxelsize)

◆ setVoxelToWorldMatrix [2/2]

void MLWriteablePagedImageWrapper::setVoxelToWorldMatrix ( const SbMatrixd &  matrix)
slot

set the voxel to world matrix (and update the worldToVoxel matrix and voxelsize)