Medical Imaging Interaction Toolkit  2023.04.00
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 41 of file mitkGenericLookupTable.h.

Member Typedef Documentation

◆ IdentifierType

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

Definition at line 44 of file mitkGenericLookupTable.h.

◆ LookupTableType

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

Definition at line 46 of file mitkGenericLookupTable.h.

◆ Self

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

Definition at line 48 of file mitkGenericLookupTable.h.

◆ ValueType

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

Definition at line 45 of file mitkGenericLookupTable.h.

Constructor & Destructor Documentation

◆ GenericLookupTable()

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

Definition at line 50 of file mitkGenericLookupTable.h.

◆ ~GenericLookupTable()

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

Definition at line 51 of file mitkGenericLookupTable.h.

Member Function Documentation

◆ GetLookupTable()

template<typename T >
const LookupTableType& mitk::GenericLookupTable< T >::GetLookupTable ( ) const
inline

Definition at line 69 of file mitkGenericLookupTable.h.

◆ GetNameOfClass()

template<typename T >
virtual const char* mitk::GenericLookupTable< T >::GetNameOfClass ( ) const
inlinevirtual

Definition at line 52 of file mitkGenericLookupTable.h.

◆ GetTableValue()

template<typename T >
ValueType mitk::GenericLookupTable< T >::GetTableValue ( IdentifierType  id) const
inline

Definition at line 60 of file mitkGenericLookupTable.h.

◆ operator!=()

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

Definition at line 71 of file mitkGenericLookupTable.h.

◆ operator=()

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

Definition at line 72 of file mitkGenericLookupTable.h.

◆ operator==()

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

Definition at line 70 of file mitkGenericLookupTable.h.

◆ SetTableValue()

template<typename T >
void mitk::GenericLookupTable< T >::SetTableValue ( IdentifierType  id,
ValueType  value 
)
inline

Definition at line 53 of file mitkGenericLookupTable.h.

◆ ValueExists()

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

Definition at line 54 of file mitkGenericLookupTable.h.

Member Data Documentation

◆ m_LookupTable


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