VTK-m
2.2
|
#include <TextAnnotationBillboard.h>
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) | |
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 |
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 |
||
) |
|
overridevirtual |
Implements vtkm::rendering::TextAnnotation.
void vtkm::rendering::TextAnnotationBillboard::SetPosition | ( | const vtkm::Vec3f_32 & | position | ) |
void vtkm::rendering::TextAnnotationBillboard::SetPosition | ( | vtkm::Float32 | posx, |
vtkm::Float32 | posy, | ||
vtkm::Float32 | posz | ||
) |
|
protected |
|
protected |