VTK  9.7.20260724
vtkLabeledFormatterInterface Struct Referenceabstract

#include <vtkLabeledFormatter.h>

Detailed Description

Base class for label formatters.

Subclasses implement SetFormattedString() to store or render each label. Call Dispatch() to select the correct formatting path given a resolved vtkLabeledFormatterInterfaceInput.

Definition at line 45 of file vtkLabeledFormatter.h.

Collaboration diagram for vtkLabeledFormatterInterface:
[legend]

Classes

struct  NumericComponent
 
struct  NumericVector
 

Public Member Functions

 vtkLabeledFormatterInterface (vtkLabeledDataMapper *self, vtkIntArray *typeArr, int numCurLabels)
 
virtual ~vtkLabeledFormatterInterface ()=default
 
virtual void SetFormattedString (int i, const char *text)=0
 
void operator() (const std::string &FormatString)
 
template<class TArray>
void operator() (TArray *array, int activeComp, const std::string &FormatString, NumericComponent)
 
template<class TArray>
void operator() (TArray *array, int numComp, const std::string &FormatString, NumericVector)
 
void operator() (vtkStringArray *array, const std::string &FormatString)
 
void Dispatch (const vtkLabeledFormatterInput &input)
 

Public Attributes

vtkLabeledDataMapperSelf
 
vtkIntArrayTypeArr
 
int NumCurLabels
 

Constructor & Destructor Documentation

◆ vtkLabeledFormatterInterface()

vtkLabeledFormatterInterface::vtkLabeledFormatterInterface ( vtkLabeledDataMapper * self,
vtkIntArray * typeArr,
int numCurLabels )
inline

Definition at line 51 of file vtkLabeledFormatter.h.

◆ ~vtkLabeledFormatterInterface()

virtual vtkLabeledFormatterInterface::~vtkLabeledFormatterInterface ( )
virtualdefault

Member Function Documentation

◆ SetFormattedString()

virtual void vtkLabeledFormatterInterface::SetFormattedString ( int i,
const char * text )
pure virtual

◆ operator()() [1/4]

void vtkLabeledFormatterInterface::operator() ( const std::string & FormatString)
inline

Definition at line 62 of file vtkLabeledFormatter.h.

◆ operator()() [2/4]

template<class TArray>
void vtkLabeledFormatterInterface::operator() ( TArray * array,
int activeComp,
const std::string & FormatString,
NumericComponent  )
inline

Definition at line 78 of file vtkLabeledFormatter.h.

◆ operator()() [3/4]

template<class TArray>
void vtkLabeledFormatterInterface::operator() ( TArray * array,
int numComp,
const std::string & FormatString,
NumericVector  )
inline

Definition at line 97 of file vtkLabeledFormatter.h.

◆ operator()() [4/4]

void vtkLabeledFormatterInterface::operator() ( vtkStringArray * array,
const std::string & FormatString )
inline

Definition at line 126 of file vtkLabeledFormatter.h.

◆ Dispatch()

void vtkLabeledFormatterInterface::Dispatch ( const vtkLabeledFormatterInput & input)
inline

Definition at line 147 of file vtkLabeledFormatter.h.

Member Data Documentation

◆ Self

vtkLabeledDataMapper* vtkLabeledFormatterInterface::Self

Definition at line 47 of file vtkLabeledFormatter.h.

◆ TypeArr

vtkIntArray* vtkLabeledFormatterInterface::TypeArr

Definition at line 48 of file vtkLabeledFormatter.h.

◆ NumCurLabels

int vtkLabeledFormatterInterface::NumCurLabels

Definition at line 49 of file vtkLabeledFormatter.h.


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