VTK-m  2.0
Public Member Functions | Private Attributes | List of all members
vtkm::rendering::ColorLegendAnnotation Class Reference

#include <ColorLegendAnnotation.h>

Public Member Functions

 ColorLegendAnnotation ()
 
 ~ColorLegendAnnotation ()
 
 ColorLegendAnnotation (const ColorLegendAnnotation &)=delete
 
ColorLegendAnnotationoperator= (const ColorLegendAnnotation &)=delete
 
void Clear ()
 
void AddItem (const std::string &label, vtkm::rendering::Color color)
 
void SetLabelColor (vtkm::rendering::Color c)
 
void SetLabelFontScale (vtkm::Float32 s)
 
virtual void Render (const vtkm::rendering::Camera &, const vtkm::rendering::WorldAnnotator &annotator, vtkm::rendering::Canvas &canvas)
 

Private Attributes

vtkm::Float32 FontScale
 
vtkm::rendering::Color LabelColor
 
std::vector< std::string > Labels
 
std::vector< std::unique_ptr< TextAnnotationScreen > > Annot
 
std::vector< vtkm::rendering::ColorColorSwatchList
 

Constructor & Destructor Documentation

◆ ColorLegendAnnotation() [1/2]

vtkm::rendering::ColorLegendAnnotation::ColorLegendAnnotation ( )

◆ ~ColorLegendAnnotation()

vtkm::rendering::ColorLegendAnnotation::~ColorLegendAnnotation ( )

◆ ColorLegendAnnotation() [2/2]

vtkm::rendering::ColorLegendAnnotation::ColorLegendAnnotation ( const ColorLegendAnnotation )
delete

Member Function Documentation

◆ AddItem()

void vtkm::rendering::ColorLegendAnnotation::AddItem ( const std::string &  label,
vtkm::rendering::Color  color 
)

◆ Clear()

void vtkm::rendering::ColorLegendAnnotation::Clear ( )

◆ operator=()

ColorLegendAnnotation& vtkm::rendering::ColorLegendAnnotation::operator= ( const ColorLegendAnnotation )
delete

◆ Render()

virtual void vtkm::rendering::ColorLegendAnnotation::Render ( const vtkm::rendering::Camera ,
const vtkm::rendering::WorldAnnotator annotator,
vtkm::rendering::Canvas canvas 
)
virtual

◆ SetLabelColor()

void vtkm::rendering::ColorLegendAnnotation::SetLabelColor ( vtkm::rendering::Color  c)
inline

◆ SetLabelFontScale()

void vtkm::rendering::ColorLegendAnnotation::SetLabelFontScale ( vtkm::Float32  s)
inline

Member Data Documentation

◆ Annot

std::vector<std::unique_ptr<TextAnnotationScreen> > vtkm::rendering::ColorLegendAnnotation::Annot
private

◆ ColorSwatchList

std::vector<vtkm::rendering::Color> vtkm::rendering::ColorLegendAnnotation::ColorSwatchList
private

◆ FontScale

vtkm::Float32 vtkm::rendering::ColorLegendAnnotation::FontScale
private

◆ LabelColor

vtkm::rendering::Color vtkm::rendering::ColorLegendAnnotation::LabelColor
private

◆ Labels

std::vector<std::string> vtkm::rendering::ColorLegendAnnotation::Labels
private

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