MeVisLab Toolbox Reference
ml::RasterFunctionList Class Reference

Base object class to handle a list of raster functions. More...

#include <mlRasterFunctionList.h>

Inheritance diagram for ml::RasterFunctionList:
ml::Base

Public Member Functions

 RasterFunctionList ()
 Constructor. It does nothing, i.e. an empty list is created. More...
 
 ~RasterFunctionList () override
 Destructor. It removes all handled raster functions and the list. More...
 
virtual size_t getListSize ()
 Permits access to the list of raster functions. More...
 
virtual void setListElement (size_t idx, const RasterFunction &elem)
 Permits access to the list of raster functions. More...
 
virtual void appendToList (const RasterFunction &elem)
 Permits access to the list of raster functions. More...
 
virtual const RasterFunctiongetListElement (size_t idx)
 Permits access to the list of raster functions. More...
 
std::string persistentState () const override
 Persistence support. Still unimplemented, only for later usage. More...
 
void setPersistentState (const std::string &) override
 Restores the object's internal state from a string that had been previously generated using persistentState(). More...
 
RasterFunctiongetPtr (MLssize_t index=-1)
 Returns pointer to the RasterFunction at given index index. More...
 
void setValue (MLssize_t index, const RasterFunction &obj)
 Sets new raster function obj at index index, index -1 sets the last element. More...
 
void removeValue (MLssize_t index=-1)
 Remove RasterFunction from list. If index is -1 the last element is removed. More...
 
void clear ()
 Clears the inner list. 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 void addStateToTree (TreeNode *) const
 Attaches the object state as children of the given parent node. More...
 
virtual void readStateFromTree (TreeNode *)
 Reads the object state from the children of the given parent node. 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...
 

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

Base object class to handle a list of raster functions.

Definition at line 34 of file mlRasterFunctionList.h.

Constructor & Destructor Documentation

◆ RasterFunctionList()

ml::RasterFunctionList::RasterFunctionList ( )
inline

Constructor. It does nothing, i.e. an empty list is created.

Definition at line 38 of file mlRasterFunctionList.h.

◆ ~RasterFunctionList()

ml::RasterFunctionList::~RasterFunctionList ( )
inlineoverride

Destructor. It removes all handled raster functions and the list.

Definition at line 41 of file mlRasterFunctionList.h.

Member Function Documentation

◆ appendToList()

virtual void ml::RasterFunctionList::appendToList ( const RasterFunction elem)
inlinevirtual

Permits access to the list of raster functions.

Definition at line 55 of file mlRasterFunctionList.h.

◆ clear()

void ml::RasterFunctionList::clear ( )

Clears the inner list.

◆ getListElement()

virtual const RasterFunction& ml::RasterFunctionList::getListElement ( size_t  idx)
inlinevirtual

Permits access to the list of raster functions.

Definition at line 59 of file mlRasterFunctionList.h.

◆ getListSize()

virtual size_t ml::RasterFunctionList::getListSize ( )
inlinevirtual

Permits access to the list of raster functions.

Permits access to the list of raster functions.

Definition at line 47 of file mlRasterFunctionList.h.

◆ getPtr()

RasterFunction* ml::RasterFunctionList::getPtr ( MLssize_t  index = -1)

Returns pointer to the RasterFunction at given index index.

On index -1 the last element is returned and on invalid indexes NULL is returned.

◆ persistentState()

std::string ml::RasterFunctionList::persistentState ( ) const
inlineoverridevirtual

Persistence support. Still unimplemented, only for later usage.

Reimplemented from ml::Base.

Definition at line 63 of file mlRasterFunctionList.h.

◆ removeValue()

void ml::RasterFunctionList::removeValue ( MLssize_t  index = -1)

Remove RasterFunction from list. If index is -1 the last element is removed.

◆ setListElement()

virtual void ml::RasterFunctionList::setListElement ( size_t  idx,
const RasterFunction elem 
)
inlinevirtual

Permits access to the list of raster functions.

Definition at line 51 of file mlRasterFunctionList.h.

◆ setPersistentState()

void ml::RasterFunctionList::setPersistentState ( const std::string &  state)
inlineoverridevirtual

Restores the object's internal state from a string that had been previously generated using persistentState().

Reimplemented from ml::Base.

Definition at line 65 of file mlRasterFunctionList.h.

◆ setValue()

void ml::RasterFunctionList::setValue ( MLssize_t  index,
const RasterFunction obj 
)

Sets new raster function obj at index index, index -1 sets the last element.

On index == -1 and on empty lists, one element is inserted.


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