Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitkGenericLookupTable.h File Reference
#include <map>
#include <sstream>
#include <cstdlib>
#include <string>
#include <itkDataObject.h>
#include "mitkNumericTypes.h"
#include <MitkCoreExports.h>
#include <nlohmann/json.hpp>

Go to the source code of this file.

Classes

class  mitk::GenericLookupTable< T >
 Template class for generating lookup-tables. More...
 
class  mitk::GenericLookupTable< T >
 Template class for generating lookup-tables. More...
 

Namespaces

 mitk
 Find image slices visible on a given plane.
 

Macros

#define mitkSpecializeGenericLookupTable(LookupTableName, Type)
 
#define mitkSpecializeGenericLookupTableOperator(LookupTableName)
 

Functions

template<typename T >
void mitk::from_json (const nlohmann::json &, GenericLookupTable< T > &)
 
template<typename T >
void mitk::to_json (nlohmann::json &j, const GenericLookupTable< T > &t)
 

Macro Definition Documentation

◆ mitkSpecializeGenericLookupTable

#define mitkSpecializeGenericLookupTable (   LookupTableName,
  Type 
)

Generates a specialized subclass of mitk::GenericLookupTable. This way, GetNameOfClass() returns the value provided by LookupTableName. Please see mitkProperties.h for examples.

Parameters
LookupTableNamethe name of the instantiation of GenericLookupTable
Typethe value type of the GenericLookupTable

Definition at line 118 of file mitkGenericLookupTable.h.

◆ mitkSpecializeGenericLookupTableOperator

#define mitkSpecializeGenericLookupTableOperator (   LookupTableName)

Generates the ostream << operator for the lookuptable. This definition of a global function must be in a cpp file, therefore it is split from the class declaration macro mitkSpecializeGenericLookupTable.

Definition at line 139 of file mitkGenericLookupTable.h.