| 
    MeVisLab Toolbox Reference
    
   | 
 
#include <CSOVoxelSetList.h>
  
Public Member Functions | |
| CSOVoxelSetList () | |
| Standard constructor.   | |
| ~CSOVoxelSetList () override | |
| Standard destructor.   | |
| void | destroy () | 
| Deletes internal structures.   | |
| void | setupInternalStructureAsCSOList (CSOList *csoList, PagedImage *image=nullptr) | 
| Establishes the internal structure as the given CSOList.   | |
| void | setupInternalStructureAsImage (const PagedImage *image) | 
| Establishes the internal structure fitting to the given image.   | |
| int | numCSOVoxelSet () const | 
| Returns the number of CSOVoxelSets.   | |
| CSOVoxelSet * | csoVoxelSetAt (size_t index) const | 
| Returns the pointer to a CSOVoxelSet at a given index.   | |
| CSOVoxelSet * | csoVoxelSetWithId (int id) | 
| Returns the pointer to a CSOVoxelSet with a given id. NULL if it does not exist.   | |
| CSOVoxelSet * | addCSOVoxelSet () | 
| Adds and returns a new CSOVoxelSet.   | |
| void | addOrReplaceCSOVoxelSetWithId (int id, const CSOVoxelSet &other) | 
| Adds or replaces an existing CSOVoxelSet in this list.   | |
| void | removeCSOVoxelSetWithId (int id) | 
| Removes a CSOVoxelSet.   | |
| int | numCSOVoxelSetGroup () const | 
| Returns the number of CSOVoxelSetGroups.   | |
| CSOVoxelSetGroup * | csoVoxelSetGroupAt (size_t index) const | 
| Returns the pointer to a CSOVoxelSetGroup at a given index.   | |
| CSOVoxelSetGroup * | csoVoxelSetGroupWithId (int id) | 
| Returns the pointer to a CSOVoxelSetGroup with a given id. NULL if it does not exist.   | |
| CSOVoxelSetGroup * | addCSOVoxelSetGroup () | 
| Adds and returns a new CSOVoxelSetGroup.   | |
| int | getMaxTimepointIndex () const | 
| Computes and returns the maximum timepoint index.   | |
| MLdouble | getMinVoxelValue () const | 
| Computes and returns the minimum voxel value.   | |
| MLdouble | getMaxVoxelValue () const | 
| Computes and returns the maximum voxel value.   | |
| bool | isInsideImage (const Vector3 &position) | 
| Returns whether a given position is inside the association image.   | |
| const SubImageBox & | getImageBox () const | 
| Returns the image box (which is empty if no valid PagedImage was available).   | |
| void | setSubImageBox (const SubImageBox &subImageBox) | 
| Sets the SubImageBox.   | |
| Matrix4 | getVoxelToWorldMatrix () const | 
| Returns the image matrix if a valid PagedImage was set. Otherwise returns the identity matrix.   | |
| void | setVoxelToWorldMatrix (const Matrix4 &voxelToWorldMatrix) | 
| Sets the voxelToWorldMatrix.   | |
  Public Member Functions inherited from ml::Base | |
| Base () | |
| Constructor.   | |
| virtual | ~Base () | 
| Destructor.   | |
| virtual Base * | deepCopy () const | 
| Creates a deep copy of the given object.   | |
| bool | isOfAllowedType (const std::vector< const RuntimeType * > &types) const | 
| Checks whether this object's type is equal to or derived from one of the types given in the argument.   | |
| virtual bool | isRefCountedBase () const | 
| Returns whether the instance is derived from RefCountedBase.   | |
| virtual std::string | detailString () const | 
| Returns a string describing this object.   | |
| virtual bool | implementsPersistence (PersistenceInterface) const | 
| Override this method to declare which persistence interfaces are implemented by your derived class.   | |
| virtual std::string | persistentState () const | 
| Returns a string describing the object's internal state.   | |
| virtual void | setPersistentState (const std::string &state) | 
| Restores the object's internal state from a string that had been previously generated using persistentState().   | |
| virtual void | writeTo (AbstractPersistenceOutputStream *) const | 
| Writes the objects state to the data stream object.   | |
| virtual void | readFrom (AbstractPersistenceInputStream *, int) | 
| Reads the objects state from the data stream object.   | |
| 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):   | |
Additional Inherited Members | |
  Public Types inherited from ml::Base | |
| enum | PersistenceInterface { PersistenceByString , PersistenceByTreeNode , PersistenceByStream } | 
| This enum describes the different persistence interfaces available.  More... | |
Definition at line 31 of file CSOVoxelSetList.h.
| ml::CSOVoxelSetList::CSOVoxelSetList | ( | ) | 
Standard constructor.
      
  | 
  override | 
Standard destructor.
| CSOVoxelSet * ml::CSOVoxelSetList::addCSOVoxelSet | ( | ) | 
Adds and returns a new CSOVoxelSet.
| CSOVoxelSetGroup * ml::CSOVoxelSetList::addCSOVoxelSetGroup | ( | ) | 
Adds and returns a new CSOVoxelSetGroup.
| void ml::CSOVoxelSetList::addOrReplaceCSOVoxelSetWithId | ( | int | id, | 
| const CSOVoxelSet & | other ) | 
Adds or replaces an existing CSOVoxelSet in this list.
      
  | 
  inline | 
Returns the pointer to a CSOVoxelSet at a given index.
Definition at line 57 of file CSOVoxelSetList.h.
      
  | 
  inline | 
Returns the pointer to a CSOVoxelSetGroup at a given index.
Definition at line 72 of file CSOVoxelSetList.h.
| CSOVoxelSetGroup * ml::CSOVoxelSetList::csoVoxelSetGroupWithId | ( | int | id | ) | 
Returns the pointer to a CSOVoxelSetGroup with a given id. NULL if it does not exist.
| CSOVoxelSet * ml::CSOVoxelSetList::csoVoxelSetWithId | ( | int | id | ) | 
Returns the pointer to a CSOVoxelSet with a given id. NULL if it does not exist.
| void ml::CSOVoxelSetList::destroy | ( | ) | 
Deletes internal structures.
      
  | 
  inline | 
Returns the image box (which is empty if no valid PagedImage was available).
Definition at line 88 of file CSOVoxelSetList.h.
| int ml::CSOVoxelSetList::getMaxTimepointIndex | ( | ) | const | 
Computes and returns the maximum timepoint index.
| MLdouble ml::CSOVoxelSetList::getMaxVoxelValue | ( | ) | const | 
Computes and returns the maximum voxel value.
| MLdouble ml::CSOVoxelSetList::getMinVoxelValue | ( | ) | const | 
Computes and returns the minimum voxel value.
      
  | 
  inline | 
Returns the image matrix if a valid PagedImage was set. Otherwise returns the identity matrix.
Definition at line 92 of file CSOVoxelSetList.h.
Returns whether a given position is inside the association image.
If there is no associated image, the method always returns true.
| ml::CSOVoxelSetList::ML_SET_ADDSTATE_VERSION | ( | 2 | ) | 
      
  | 
  inline | 
Returns the number of CSOVoxelSets.
Definition at line 55 of file CSOVoxelSetList.h.
      
  | 
  inline | 
Returns the number of CSOVoxelSetGroups.
Definition at line 70 of file CSOVoxelSetList.h.
Removes a CSOVoxelSet.
      
  | 
  inline | 
| 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.
| 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).
Sets the voxelToWorldMatrix.
Definition at line 94 of file CSOVoxelSetList.h.