Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::GenericLookupTable< T > Class Template Reference

Template class for generating lookup-tables. More...

#include <mitkGenericLookupTable.h>

Inheritance diagram for mitk::GenericLookupTable< T >:
Collaboration diagram for mitk::GenericLookupTable< T >:

Public Types

typedef unsigned int IdentifierType
 
typedef T ValueType
 
typedef std::map< IdentifierType, ValueTypeLookupTableType
 
typedef GenericLookupTable Self
 

Public Member Functions

 GenericLookupTable ()
 
virtual ~GenericLookupTable ()
 
virtual const char * GetNameOfClass () const
 
void SetTableValue (IdentifierType id, ValueType value)
 
bool ValueExists (IdentifierType id) const
 
ValueType GetTableValue (IdentifierType id) const
 
const LookupTableTypeGetLookupTable () const
 
bool operator== (const Self &lookupTable) const
 
bool operator!= (const Self &lookupTable) const
 
virtual Selfoperator= (const Self &other)
 

Protected Attributes

LookupTableType m_LookupTable
 

Detailed Description

template<typename T>
class mitk::GenericLookupTable< T >

Template class for generating lookup-tables.

This class template can be instantiated for all classes/internal types that fulfills these requirements:

  • an operator<< so that the properties value can be put into a std::stringstream
  • an operator== so that two properties can be checked for equality

The main purpose of this class is to be used in conjunction with GenericLookupTableProperty. This enables passing of arbitrary lookup tables to mappers to configure the rendering process.

Definition at line 45 of file mitkGenericLookupTable.h.

Member Typedef Documentation

template<typename T>
typedef unsigned int mitk::GenericLookupTable< T >::IdentifierType

Definition at line 48 of file mitkGenericLookupTable.h.

template<typename T>
typedef std::map<IdentifierType, ValueType> mitk::GenericLookupTable< T >::LookupTableType

Definition at line 50 of file mitkGenericLookupTable.h.

template<typename T>
typedef GenericLookupTable mitk::GenericLookupTable< T >::Self

Definition at line 52 of file mitkGenericLookupTable.h.

template<typename T>
typedef T mitk::GenericLookupTable< T >::ValueType

Definition at line 49 of file mitkGenericLookupTable.h.

Constructor & Destructor Documentation

template<typename T>
mitk::GenericLookupTable< T >::GenericLookupTable ( )
inline

Definition at line 54 of file mitkGenericLookupTable.h.

template<typename T>
virtual mitk::GenericLookupTable< T >::~GenericLookupTable ( )
inlinevirtual

Definition at line 55 of file mitkGenericLookupTable.h.

Member Function Documentation

template<typename T>
const LookupTableType& mitk::GenericLookupTable< T >::GetLookupTable ( ) const
inline
template<typename T>
virtual const char* mitk::GenericLookupTable< T >::GetNameOfClass ( ) const
inlinevirtual
template<typename T>
bool mitk::GenericLookupTable< T >::operator!= ( const Self lookupTable) const
inline

Definition at line 75 of file mitkGenericLookupTable.h.

template<typename T>
virtual Self& mitk::GenericLookupTable< T >::operator= ( const Self other)
inlinevirtual

Definition at line 76 of file mitkGenericLookupTable.h.

template<typename T>
bool mitk::GenericLookupTable< T >::operator== ( const Self lookupTable) const
inline

Definition at line 74 of file mitkGenericLookupTable.h.

template<typename T>
bool mitk::GenericLookupTable< T >::ValueExists ( IdentifierType  id) const
inline

Definition at line 58 of file mitkGenericLookupTable.h.

Member Data Documentation


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