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