Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
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 30 of file mitkGenericLookupTable.h.

Member Typedef Documentation

◆ IdentifierType

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

Definition at line 49 of file mitkGenericLookupTable.h.

◆ LookupTableType

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

Definition at line 51 of file mitkGenericLookupTable.h.

◆ Self

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

Definition at line 53 of file mitkGenericLookupTable.h.

◆ ValueType

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

Definition at line 50 of file mitkGenericLookupTable.h.

Constructor & Destructor Documentation

◆ GenericLookupTable()

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

Definition at line 55 of file mitkGenericLookupTable.h.

◆ ~GenericLookupTable()

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

Definition at line 56 of file mitkGenericLookupTable.h.

Member Function Documentation

◆ GetLookupTable()

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

Definition at line 74 of file mitkGenericLookupTable.h.

Referenced by mitk::to_json().

◆ GetNameOfClass()

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

Definition at line 57 of file mitkGenericLookupTable.h.

◆ GetTableValue()

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

Definition at line 65 of file mitkGenericLookupTable.h.

◆ operator!=()

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

Definition at line 76 of file mitkGenericLookupTable.h.

◆ operator=()

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

Definition at line 77 of file mitkGenericLookupTable.h.

◆ operator==()

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

Definition at line 75 of file mitkGenericLookupTable.h.

◆ SetTableValue()

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

Definition at line 58 of file mitkGenericLookupTable.h.

◆ ValueExists()

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

Definition at line 59 of file mitkGenericLookupTable.h.

Member Data Documentation

◆ m_LookupTable


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