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

#include <TextAnnotationScreen.h>

Inheritance diagram for vtkm::rendering::TextAnnotationScreen:
vtkm::rendering::TextAnnotation

Public Member Functions

 TextAnnotationScreen (const std::string &text, const vtkm::rendering::Color &color, vtkm::Float32 scale, const vtkm::Vec2f_32 &position, vtkm::Float32 angleDegrees=0)
 
 ~TextAnnotationScreen ()
 
void SetPosition (const vtkm::Vec2f_32 &position)
 
void SetPosition (vtkm::Float32 posx, vtkm::Float32 posy)
 
void Render (const vtkm::rendering::Camera &camera, const vtkm::rendering::WorldAnnotator &annotator, vtkm::rendering::Canvas &canvas) const override
 
- Public Member Functions inherited from vtkm::rendering::TextAnnotation
 TextAnnotation (const std::string &text, const vtkm::rendering::Color &color, vtkm::Float32 scalar)
 
virtual ~TextAnnotation ()
 
void SetText (const std::string &text)
 
const std::string & GetText () const
 
void SetRawAnchor (const vtkm::Vec2f_32 &anchor)
 Set the anchor point relative to the box containing the text. More...
 
void SetRawAnchor (vtkm::Float32 h, vtkm::Float32 v)
 
void SetAlignment (HorizontalAlignment h, VerticalAlignment v)
 
void SetScale (vtkm::Float32 scale)
 

Protected Attributes

vtkm::Vec2f_32 Position
 
vtkm::Float32 Angle
 
- Protected Attributes inherited from vtkm::rendering::TextAnnotation
std::string Text
 
Color TextColor
 
vtkm::Float32 Scale
 
vtkm::Vec2f_32 Anchor
 

Additional Inherited Members

- Public Types inherited from vtkm::rendering::TextAnnotation
enum  HorizontalAlignment { HorizontalAlignment::Left, HorizontalAlignment::HCenter, HorizontalAlignment::Right }
 
enum  VerticalAlignment { VerticalAlignment::Bottom, VerticalAlignment::VCenter, VerticalAlignment::Top }
 
- Static Public Attributes inherited from vtkm::rendering::TextAnnotation
static constexpr HorizontalAlignment Left = HorizontalAlignment::Left
 
static constexpr HorizontalAlignment HCenter = HorizontalAlignment::HCenter
 
static constexpr HorizontalAlignment Right = HorizontalAlignment::Right
 
static constexpr VerticalAlignment Bottom = VerticalAlignment::Bottom
 
static constexpr VerticalAlignment VCenter = VerticalAlignment::VCenter
 
static constexpr VerticalAlignment Top = VerticalAlignment::Top
 

Constructor & Destructor Documentation

◆ TextAnnotationScreen()

vtkm::rendering::TextAnnotationScreen::TextAnnotationScreen ( const std::string &  text,
const vtkm::rendering::Color color,
vtkm::Float32  scale,
const vtkm::Vec2f_32 position,
vtkm::Float32  angleDegrees = 0 
)

◆ ~TextAnnotationScreen()

vtkm::rendering::TextAnnotationScreen::~TextAnnotationScreen ( )

Member Function Documentation

◆ Render()

void vtkm::rendering::TextAnnotationScreen::Render ( const vtkm::rendering::Camera camera,
const vtkm::rendering::WorldAnnotator annotator,
vtkm::rendering::Canvas canvas 
) const
overridevirtual

◆ SetPosition() [1/2]

void vtkm::rendering::TextAnnotationScreen::SetPosition ( const vtkm::Vec2f_32 position)

◆ SetPosition() [2/2]

void vtkm::rendering::TextAnnotationScreen::SetPosition ( vtkm::Float32  posx,
vtkm::Float32  posy 
)

Member Data Documentation

◆ Angle

vtkm::Float32 vtkm::rendering::TextAnnotationScreen::Angle
protected

◆ Position

vtkm::Vec2f_32 vtkm::rendering::TextAnnotationScreen::Position
protected

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