VTK  9.7.20260801
vtkLabelMapLookup< T > Class Template Referenceabstract

#include <vtkLabelMapLookup.h>

Detailed Description

template<typename T>
class vtkLabelMapLookup< T >

provide an efficient numeric label lookup

vtkLabelMapLookup is a light weight helper object that enables faster lookup of a segmentation label from a set of labels. It uses caching, and varying lookup strategies depending on the size of the set of labels.

Note that, due to speed concerns, vtkLabelMapLookup does not inherit from vtkObject hence does not support the usual VTK reference counting.

See also
vtkSurfaceNets2D vtkSurfaceNets3D vtkDiscreteFlyingEdgesClipper2D

Definition at line 36 of file vtkLabelMapLookup.h.

Inheritance diagram for vtkLabelMapLookup< T >:
[legend]

Public Member Functions

 vtkLabelMapLookup (const double *values, int numValues)
 
virtual ~vtkLabelMapLookup ()=default
 
virtual bool IsLabelValue (T label)=0
 
bool IsLabelValueInCache (T label, bool &inLabelSet)
 

Static Public Member Functions

static vtkLabelMapLookup< T > * CreateLabelLookup (const double *values, vtkIdType numLabels)
 

Public Attributes

CachedValue
 
CachedOutValue
 
bool CachedOutValueInitialized
 

Constructor & Destructor Documentation

◆ vtkLabelMapLookup()

template<typename T>
vtkLabelMapLookup< T >::vtkLabelMapLookup ( const double * values,
int numValues )
inline

Definition at line 42 of file vtkLabelMapLookup.h.

◆ ~vtkLabelMapLookup()

template<typename T>
virtual vtkLabelMapLookup< T >::~vtkLabelMapLookup ( )
virtualdefault

Member Function Documentation

◆ IsLabelValue()

template<typename T>
virtual bool vtkLabelMapLookup< T >::IsLabelValue ( T label)
pure virtual

◆ IsLabelValueInCache()

template<typename T>
bool vtkLabelMapLookup< T >::IsLabelValueInCache ( T label,
bool & inLabelSet )
inline

Definition at line 50 of file vtkLabelMapLookup.h.

◆ CreateLabelLookup()

template<typename T>
vtkLabelMapLookup< T > * vtkLabelMapLookup< T >::CreateLabelLookup ( const double * values,
vtkIdType numLabels )
static

Definition at line 164 of file vtkLabelMapLookup.h.

Member Data Documentation

◆ CachedValue

template<typename T>
T vtkLabelMapLookup< T >::CachedValue

Definition at line 38 of file vtkLabelMapLookup.h.

◆ CachedOutValue

template<typename T>
T vtkLabelMapLookup< T >::CachedOutValue

Definition at line 39 of file vtkLabelMapLookup.h.

◆ CachedOutValueInitialized

template<typename T>
bool vtkLabelMapLookup< T >::CachedOutValueInitialized

Definition at line 40 of file vtkLabelMapLookup.h.


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