MeVisLab Toolbox Reference
ml::CSOVoxelSetList Class Reference

#include <CSOVoxelSetList.h>

Inheritance diagram for ml::CSOVoxelSetList:
ml::Base

Public Member Functions

 CSOVoxelSetList ()
 Standard constructor. More...
 
 ~CSOVoxelSetList () override
 Standard destructor. More...
 
void destroy ()
 Deletes internal structures. More...
 
void setupInternalStructureAsCSOList (CSOList *csoList, PagedImage *image=nullptr)
 Establishes the internal structure as the given CSOList. More...
 
void setupInternalStructureAsImage (const PagedImage *image)
 Establishes the internal structure fitting to the given image. More...
 
int numCSOVoxelSet () const
 Returns the number of CSOVoxelSets. More...
 
CSOVoxelSetcsoVoxelSetAt (size_t index) const
 Returns the pointer to a CSOVoxelSet at a given index. More...
 
CSOVoxelSetcsoVoxelSetWithId (int id)
 Returns the pointer to a CSOVoxelSet with a given id. NULL if it does not exist. More...
 
CSOVoxelSetaddCSOVoxelSet ()
 Adds and returns a new CSOVoxelSet. More...
 
void addOrReplaceCSOVoxelSetWithId (int id, const CSOVoxelSet &other)
 Adds or replaces an existing CSOVoxelSet in this list. More...
 
void removeCSOVoxelSetWithId (int id)
 Removes a CSOVoxelSet. More...
 
int numCSOVoxelSetGroup () const
 Returns the number of CSOVoxelSetGroups. More...
 
CSOVoxelSetGroupcsoVoxelSetGroupAt (size_t index) const
 Returns the pointer to a CSOVoxelSetGroup at a given index. More...
 
CSOVoxelSetGroupcsoVoxelSetGroupWithId (int id)
 Returns the pointer to a CSOVoxelSetGroup with a given id. NULL if it does not exist. More...
 
CSOVoxelSetGroupaddCSOVoxelSetGroup ()
 Adds and returns a new CSOVoxelSetGroup. More...
 
int getMaxTimepointIndex () const
 Computes and returns the maximum timepoint index. More...
 
MLdouble getMinVoxelValue () const
 Computes and returns the minimum voxel value. More...
 
MLdouble getMaxVoxelValue () const
 Computes and returns the maximum voxel value. More...
 
bool isInsideImage (const Vector3 &position)
 Returns whether a given position is inside the association image. More...
 
const SubImageBoxgetImageBox () const
 Returns the image box (which is empty if no valid PagedImage was available). More...
 
void setSubImageBox (const SubImageBox &subImageBox)
 Sets the SubImageBox. More...
 
Matrix4 getVoxelToWorldMatrix () const
 Returns the image matrix if a valid PagedImage was set. Otherwise returns the identity matrix. More...
 
void setVoxelToWorldMatrix (const Matrix4 &voxelToWorldMatrix)
 Sets the voxelToWorldMatrix. More...
 
- Public Member Functions inherited from ml::Base
 Base ()
 Constructor. More...
 
virtual ~Base ()
 Destructor. More...
 
virtual BasedeepCopy () const
 Set addStateToTree version number that can be accessed via getAddStateVersion() More...
 
bool isOfAllowedType (const std::vector< const RuntimeType * > &types) const
 Check if this object's type is equal to or derived from one of the types given in the argument. More...
 
virtual bool isRefCountedBase () const
 Returns if the instance is derived from RefCountedBase. More...
 
virtual std::string detailString () const
 Return a string describing this object. More...
 
virtual bool implementsPersistence (PersistenceInterface) const
 Override this method to declare which persistence interfaces are implemented by your derived class. More...
 
virtual std::string persistentState () const
 Returns a string describing the object's internal state. More...
 
virtual void setPersistentState (const std::string &state)
 Restores the object's internal state from a string that had been previously generated using persistentState(). More...
 
virtual void writeTo (AbstractPersistenceOutputStream *) const
 Write the objects state to the data stream object. More...
 
virtual void readFrom (AbstractPersistenceInputStream *, int)
 Read the objects state from the data stream object. More...
 
void addStateToTree (TreeNode *parent) const override
 
 ML_SET_ADDSTATE_VERSION (2)
 
void readStateFromTree (TreeNode *parent) override
 Implements import functionality (as used by the LoadBase module): More...
 

Additional Inherited Members

- Public Types inherited from ml::Base
enum  PersistenceInterface { PersistenceByString , PersistenceByTreeNode , PersistenceByStream }
 This enum describes the different persistence interfaces available. More...
 
- Protected Member Functions inherited from ml::Base
virtual char * getPersistentState () const
 Returns a C string describing the object's internal state. More...
 
virtual void setPersistentState (const char *)
 Restores the object's internal state from a string that had been previously generated using getPersistentState(). More...
 
virtual void clearPersistentState (char *) const
 Disposes a string previously allocated by getPersistentState(). More...
 

Detailed Description

Definition at line 31 of file CSOVoxelSetList.h.

Constructor & Destructor Documentation

◆ CSOVoxelSetList()

ml::CSOVoxelSetList::CSOVoxelSetList ( )

Standard constructor.

◆ ~CSOVoxelSetList()

ml::CSOVoxelSetList::~CSOVoxelSetList ( )
override

Standard destructor.

Member Function Documentation

◆ addCSOVoxelSet()

CSOVoxelSet* ml::CSOVoxelSetList::addCSOVoxelSet ( )

Adds and returns a new CSOVoxelSet.

◆ addCSOVoxelSetGroup()

CSOVoxelSetGroup* ml::CSOVoxelSetList::addCSOVoxelSetGroup ( )

Adds and returns a new CSOVoxelSetGroup.

◆ addOrReplaceCSOVoxelSetWithId()

void ml::CSOVoxelSetList::addOrReplaceCSOVoxelSetWithId ( int  id,
const CSOVoxelSet other 
)

Adds or replaces an existing CSOVoxelSet in this list.

◆ addStateToTree()

void ml::CSOVoxelSetList::addStateToTree ( TreeNode parent) const
overridevirtual

Persistence Implements export functionality (as used by the SaveBase module):

Reimplemented from ml::Base.

◆ csoVoxelSetAt()

CSOVoxelSet* ml::CSOVoxelSetList::csoVoxelSetAt ( size_t  index) const
inline

Returns the pointer to a CSOVoxelSet at a given index.

Definition at line 57 of file CSOVoxelSetList.h.

◆ csoVoxelSetGroupAt()

CSOVoxelSetGroup* ml::CSOVoxelSetList::csoVoxelSetGroupAt ( size_t  index) const
inline

Returns the pointer to a CSOVoxelSetGroup at a given index.

Definition at line 72 of file CSOVoxelSetList.h.

◆ csoVoxelSetGroupWithId()

CSOVoxelSetGroup* ml::CSOVoxelSetList::csoVoxelSetGroupWithId ( int  id)

Returns the pointer to a CSOVoxelSetGroup with a given id. NULL if it does not exist.

◆ csoVoxelSetWithId()

CSOVoxelSet* ml::CSOVoxelSetList::csoVoxelSetWithId ( int  id)

Returns the pointer to a CSOVoxelSet with a given id. NULL if it does not exist.

◆ destroy()

void ml::CSOVoxelSetList::destroy ( )

Deletes internal structures.

◆ getImageBox()

const SubImageBox& ml::CSOVoxelSetList::getImageBox ( ) const
inline

Returns the image box (which is empty if no valid PagedImage was available).

Definition at line 88 of file CSOVoxelSetList.h.

◆ getMaxTimepointIndex()

int ml::CSOVoxelSetList::getMaxTimepointIndex ( ) const

Computes and returns the maximum timepoint index.

◆ getMaxVoxelValue()

MLdouble ml::CSOVoxelSetList::getMaxVoxelValue ( ) const

Computes and returns the maximum voxel value.

◆ getMinVoxelValue()

MLdouble ml::CSOVoxelSetList::getMinVoxelValue ( ) const

Computes and returns the minimum voxel value.

◆ getVoxelToWorldMatrix()

Matrix4 ml::CSOVoxelSetList::getVoxelToWorldMatrix ( ) const
inline

Returns the image matrix if a valid PagedImage was set. Otherwise returns the identity matrix.

Definition at line 92 of file CSOVoxelSetList.h.

◆ isInsideImage()

bool ml::CSOVoxelSetList::isInsideImage ( const Vector3 position)

Returns whether a given position is inside the association image.

If there is no associated image, the method always returns true.

◆ ML_SET_ADDSTATE_VERSION()

ml::CSOVoxelSetList::ML_SET_ADDSTATE_VERSION ( )

◆ numCSOVoxelSet()

int ml::CSOVoxelSetList::numCSOVoxelSet ( ) const
inline

Returns the number of CSOVoxelSets.

Definition at line 55 of file CSOVoxelSetList.h.

◆ numCSOVoxelSetGroup()

int ml::CSOVoxelSetList::numCSOVoxelSetGroup ( ) const
inline

Returns the number of CSOVoxelSetGroups.

Definition at line 70 of file CSOVoxelSetList.h.

◆ readStateFromTree()

void ml::CSOVoxelSetList::readStateFromTree ( TreeNode parent)
overridevirtual

Implements import functionality (as used by the LoadBase module):

Reimplemented from ml::Base.

◆ removeCSOVoxelSetWithId()

void ml::CSOVoxelSetList::removeCSOVoxelSetWithId ( int  id)

Removes a CSOVoxelSet.

◆ setSubImageBox()

void ml::CSOVoxelSetList::setSubImageBox ( const SubImageBox subImageBox)
inline

Sets the SubImageBox.

Definition at line 90 of file CSOVoxelSetList.h.

◆ setupInternalStructureAsCSOList()

void ml::CSOVoxelSetList::setupInternalStructureAsCSOList ( CSOList csoList,
PagedImage image = nullptr 
)

Establishes the internal structure as the given CSOList.

If a PagedImage is given, only the voxel positions that are actually inside that image are stored.

◆ setupInternalStructureAsImage()

void ml::CSOVoxelSetList::setupInternalStructureAsImage ( const PagedImage image)

Establishes the internal structure fitting to the given image.

There will be one CSOVoxelSet per z-slice (and c/t/u).

◆ setVoxelToWorldMatrix()

void ml::CSOVoxelSetList::setVoxelToWorldMatrix ( const Matrix4 voxelToWorldMatrix)
inline

Sets the voxelToWorldMatrix.

Definition at line 94 of file CSOVoxelSetList.h.


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