open_iA  2020.01
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Public Types | Public Member Functions | List of all members
iAModality Class Reference

class holding the data of a single image channel More...

#include <iAModality.h>

Collaboration diagram for iAModality:

Public Types

enum  RenderFlag {
  NoRenderer = 0x0, MainRenderer = 0x01, MagicLens = 0x02, BoundingBox = 0x04,
  Slicer = 0x08
}
 

Public Member Functions

int channel () const
 return the channel in the specified file that the data in this class comes from (don't confuse with channelID!) More...
 
uint channelID () const
 return ID of channel used in mdichild to represent this modality in slicer (don't confuse with channelID!) More...
 
vtkSmartPointer< vtkImageData > component (size_t idx) const
 return a specific component of this modality More...
 
size_t componentCount () const
 return the number of components in this modality More...
 
void computeHistogramData (size_t numBin)
 
void computeImageStatistics ()
 
const iAImageCoordConverterconverter () const
 
int depth () const
 
QString fileName () const
 returns file holding the modality data More...
 
bool hasRenderFlag (RenderFlag flag) const
 
int height () const
 
const QSharedPointer< iAHistogramDatahistogramData () const
 
 iAModality (QString const &name, QString const &filename, int channelNo, vtkSmartPointer< vtkImageData > imgData, int renderFlags)
 create modality from name, file and image data More...
 
 iAModality (QString const &name, QString const &filename, std::vector< vtkSmartPointer< vtkImageData > > imgs, int renderFlags)
 create modality from name, file and image data More...
 
vtkSmartPointer< vtkImageData > image () const
 get the main image of this modality (typically only the one is available, unless there are multiple components, see ComponentCount() and GetComponent() More...
 
QString imageName (int componentIdx)
 return the name of the given component More...
 
const iAImageInfoinfo () const
 return statistical information about the image More...
 
void loadTransferFunction ()
 
QString name () const
 returns name of the modality More...
 
QString orientationString ()
 
const double * origin () const
 
QString positionString ()
 
QSharedPointer< iAVolumeRendererrenderer ()
 
int renderFlags () const
 
void setChannelID (uint id)
 set ID of channel used in mdichild to represent this modality in slicer More...
 
void setData (vtkSmartPointer< vtkImageData > imgData)
 
void setFileName (QString const &fileName)
 set the filename (to be used if it has changed externally; does not save the file!) More...
 
void setName (QString const &name)
 set name of the modality More...
 
void setOrigin (double origin[3])
 
void setRenderer (QSharedPointer< iAVolumeRenderer > renderer)
 
void setRenderFlag (int renderFlag)
 set flag indicating location where to render More...
 
void setSpacing (double spacing[3])
 
void setStringSettings (QString const &pos, QString const &ori, QString const &tfFile)
 
void setVolSettings (const iAVolumeSettings &volSettings)
 
void setVolSettingsSavedStatusFalse ()
 
const double * spacing () const
 
QSharedPointer< iAModalityTransfertransfer ()
 
QString transferFileName () const
 get the name of the transfer function file More...
 
void updateRenderer ()
 
bool volSettingsSavedStatus ()
 
const iAVolumeSettingsvolumeSettings () const
 
int width () const
 

Detailed Description

class holding the data of a single image channel

Member Enumeration Documentation

◆ RenderFlag

Enumerator
NoRenderer 
MainRenderer 
MagicLens 
BoundingBox 
Slicer 

Constructor & Destructor Documentation

◆ iAModality() [1/2]

iAModality::iAModality ( QString const &  name,
QString const &  filename,
int  channelNo,
vtkSmartPointer< vtkImageData >  imgData,
int  renderFlags 
)

create modality from name, file and image data

◆ iAModality() [2/2]

iAModality::iAModality ( QString const &  name,
QString const &  filename,
std::vector< vtkSmartPointer< vtkImageData > >  imgs,
int  renderFlags 
)

create modality from name, file and image data

Member Function Documentation

◆ channel()

int iAModality::channel ( ) const

return the channel in the specified file that the data in this class comes from (don't confuse with channelID!)

◆ channelID()

uint iAModality::channelID ( ) const

return ID of channel used in mdichild to represent this modality in slicer (don't confuse with channelID!)

◆ component()

vtkSmartPointer< vtkImageData > iAModality::component ( size_t  idx) const

return a specific component of this modality

◆ componentCount()

size_t iAModality::componentCount ( ) const

return the number of components in this modality

◆ computeHistogramData()

void iAModality::computeHistogramData ( size_t  numBin)

◆ computeImageStatistics()

void iAModality::computeImageStatistics ( )

◆ converter()

const iAImageCoordConverter & iAModality::converter ( ) const

◆ depth()

int iAModality::depth ( ) const

◆ fileName()

QString iAModality::fileName ( ) const

returns file holding the modality data

◆ hasRenderFlag()

bool iAModality::hasRenderFlag ( RenderFlag  flag) const

◆ height()

int iAModality::height ( ) const

◆ histogramData()

const QSharedPointer< iAHistogramData > iAModality::histogramData ( ) const

◆ image()

vtkSmartPointer< vtkImageData > iAModality::image ( ) const

get the main image of this modality (typically only the one is available, unless there are multiple components, see ComponentCount() and GetComponent()

◆ imageName()

QString iAModality::imageName ( int  componentIdx)

return the name of the given component

◆ info()

const iAImageInfo & iAModality::info ( ) const

return statistical information about the image

◆ loadTransferFunction()

void iAModality::loadTransferFunction ( )

◆ name()

QString iAModality::name ( ) const

returns name of the modality

◆ orientationString()

QString iAModality::orientationString ( )

◆ origin()

const double * iAModality::origin ( ) const

◆ positionString()

QString iAModality::positionString ( )

◆ renderer()

QSharedPointer< iAVolumeRenderer > iAModality::renderer ( )

◆ renderFlags()

int iAModality::renderFlags ( ) const

◆ setChannelID()

void iAModality::setChannelID ( uint  id)

set ID of channel used in mdichild to represent this modality in slicer

◆ setData()

void iAModality::setData ( vtkSmartPointer< vtkImageData >  imgData)

◆ setFileName()

void iAModality::setFileName ( QString const &  fileName)

set the filename (to be used if it has changed externally; does not save the file!)

◆ setName()

void iAModality::setName ( QString const &  name)

set name of the modality

◆ setOrigin()

void iAModality::setOrigin ( double  origin[3])

◆ setRenderer()

void iAModality::setRenderer ( QSharedPointer< iAVolumeRenderer renderer)

◆ setRenderFlag()

void iAModality::setRenderFlag ( int  renderFlag)

set flag indicating location where to render

◆ setSpacing()

void iAModality::setSpacing ( double  spacing[3])

◆ setStringSettings()

void iAModality::setStringSettings ( QString const &  pos,
QString const &  ori,
QString const &  tfFile 
)

◆ setVolSettings()

void iAModality::setVolSettings ( const iAVolumeSettings volSettings)

◆ setVolSettingsSavedStatusFalse()

void iAModality::setVolSettingsSavedStatusFalse ( )
inline

◆ spacing()

const double * iAModality::spacing ( ) const

◆ transfer()

QSharedPointer< iAModalityTransfer > iAModality::transfer ( )

◆ transferFileName()

QString iAModality::transferFileName ( ) const

get the name of the transfer function file

◆ updateRenderer()

void iAModality::updateRenderer ( )

◆ volSettingsSavedStatus()

bool iAModality::volSettingsSavedStatus ( )
inline

◆ volumeSettings()

const iAVolumeSettings & iAModality::volumeSettings ( ) const

◆ width()

int iAModality::width ( ) const

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