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

#include <TextAnnotationBillboard.h>

Inheritance diagram for vtkm::rendering::TextAnnotationBillboard:
vtkm::rendering::TextAnnotation

Public Member Functions

 TextAnnotationBillboard (const std::string &text, const vtkm::rendering::Color &color, vtkm::Float32 scalar, const vtkm::Vec3f_32 &position, vtkm::Float32 angleDegrees=0)
 
 ~TextAnnotationBillboard ()
 
void SetPosition (const vtkm::Vec3f_32 &position)
 
void SetPosition (vtkm::Float32 posx, vtkm::Float32 posy, vtkm::Float32 posz)
 
void Render (const vtkm::rendering::Camera &camera, const vtkm::rendering::WorldAnnotator &worldAnnotator, 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::Vec3f_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

◆ TextAnnotationBillboard()

vtkm::rendering::TextAnnotationBillboard::TextAnnotationBillboard ( const std::string &  text,
const vtkm::rendering::Color color,
vtkm::Float32  scalar,
const vtkm::Vec3f_32 position,
vtkm::Float32  angleDegrees = 0 
)

◆ ~TextAnnotationBillboard()

vtkm::rendering::TextAnnotationBillboard::~TextAnnotationBillboard ( )

Member Function Documentation

◆ Render()

void vtkm::rendering::TextAnnotationBillboard::Render ( const vtkm::rendering::Camera camera,
const vtkm::rendering::WorldAnnotator worldAnnotator,
vtkm::rendering::Canvas canvas 
) const
overridevirtual

◆ SetPosition() [1/2]

void vtkm::rendering::TextAnnotationBillboard::SetPosition ( const vtkm::Vec3f_32 position)

◆ SetPosition() [2/2]

void vtkm::rendering::TextAnnotationBillboard::SetPosition ( vtkm::Float32  posx,
vtkm::Float32  posy,
vtkm::Float32  posz 
)

Member Data Documentation

◆ Angle

vtkm::Float32 vtkm::rendering::TextAnnotationBillboard::Angle
protected

◆ Position

vtkm::Vec3f_32 vtkm::rendering::TextAnnotationBillboard::Position
protected

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