Viskores  1.0
Public Member Functions | Protected Attributes | List of all members
viskores::rendering::TextAnnotationBillboard Class Reference

#include <TextAnnotationBillboard.h>

Inheritance diagram for viskores::rendering::TextAnnotationBillboard:
viskores::rendering::TextAnnotation

Public Member Functions

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

Protected Attributes

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

Additional Inherited Members

- Public Types inherited from viskores::rendering::TextAnnotation
enum  HorizontalAlignment { HorizontalAlignment::Left, HorizontalAlignment::HCenter, HorizontalAlignment::Right }
 
enum  VerticalAlignment { VerticalAlignment::Bottom, VerticalAlignment::VCenter, VerticalAlignment::Top }
 
- Static Public Attributes inherited from viskores::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()

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

Member Function Documentation

◆ Render()

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

◆ SetPosition() [1/2]

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

◆ SetPosition() [2/2]

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

Member Data Documentation

◆ Angle

viskores::Float32 viskores::rendering::TextAnnotationBillboard::Angle
protected

◆ Position

viskores::Vec3f_32 viskores::rendering::TextAnnotationBillboard::Position
protected

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