VTK  9.2.6
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
vtkLabelMapLookup< T > Class Template Referenceabstract

provide an efficient numeric label lookup More...

#include <vtkLabelMapLookup.h>

Inheritance diagram for vtkLabelMapLookup< T >:
[legend]

Public Member Functions

 vtkLabelMapLookup (const double *values, int vtkNotUsed(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
 

Detailed Description

template<typename T>
class vtkLabelMapLookup< T >

provide an efficient numeric label lookup

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

See also
vtkSurfaceNets2D vtkSurfaceNets3D vtkDiscreteFlyingEdgesClipper2D

Definition at line 41 of file vtkLabelMapLookup.h.

Constructor & Destructor Documentation

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

Definition at line 47 of file vtkLabelMapLookup.h.

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

Member Function Documentation

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

Definition at line 55 of file vtkLabelMapLookup.h.

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

Definition at line 169 of file vtkLabelMapLookup.h.

Member Data Documentation

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

Definition at line 43 of file vtkLabelMapLookup.h.

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

Definition at line 44 of file vtkLabelMapLookup.h.

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

Definition at line 45 of file vtkLabelMapLookup.h.


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