VTK  9.7.1
Classes | Public Member Functions | Public Attributes | List of all members
vtkLabeledFormatterInterface Struct Referenceabstract

Base class for label formatters. More...

#include <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

vtkLabeledDataMapper * Self
 
vtkIntArray * TypeArr
 
int NumCurLabels
 

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.

Constructor & Destructor Documentation

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

Definition at line 51 of file vtkLabeledFormatter.h.

virtual vtkLabeledFormatterInterface::~vtkLabeledFormatterInterface ( )
virtualdefault

Member Function Documentation

virtual void vtkLabeledFormatterInterface::SetFormattedString ( int  i,
const char *  text 
)
pure virtual
void vtkLabeledFormatterInterface::operator() ( const std::string &  FormatString)
inline

Definition at line 62 of file vtkLabeledFormatter.h.

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

Definition at line 78 of file vtkLabeledFormatter.h.

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

Definition at line 97 of file vtkLabeledFormatter.h.

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

Definition at line 126 of file vtkLabeledFormatter.h.

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

Definition at line 147 of file vtkLabeledFormatter.h.

Member Data Documentation

vtkLabeledDataMapper* vtkLabeledFormatterInterface::Self

Definition at line 47 of file vtkLabeledFormatter.h.

vtkIntArray* vtkLabeledFormatterInterface::TypeArr

Definition at line 48 of file vtkLabeledFormatter.h.

int vtkLabeledFormatterInterface::NumCurLabels

Definition at line 49 of file vtkLabeledFormatter.h.


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