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

#include <TextRenderer.h>

Public Member Functions

VTKM_CONT TextRenderer (const vtkm::rendering::Canvas *canvas, const vtkm::rendering::BitmapFont &font, const vtkm::rendering::Canvas::FontTextureType &fontTexture, vtkm::rendering::TextRendererBatcher *textBatcher)
 
VTKM_CONT void RenderText (const vtkm::Vec2f_32 &position, vtkm::Float32 scale, vtkm::Float32 angle, vtkm::Float32 windowAspect, const vtkm::Vec2f_32 &anchor, const vtkm::rendering::Color &color, const std::string &text)
 
VTKM_CONT void RenderText (const vtkm::Vec3f_32 &origin, const vtkm::Vec3f_32 &right, const vtkm::Vec3f_32 &up, vtkm::Float32 scale, const vtkm::Vec2f_32 &anchor, const vtkm::rendering::Color &color, const std::string &text)
 
VTKM_CONT void RenderText (const vtkm::Matrix< vtkm::Float32, 4, 4 > &transform, vtkm::Float32 scale, const vtkm::Vec2f_32 &anchor, const vtkm::rendering::Color &color, const std::string &text, const vtkm::Float32 &depth=0.f)
 

Private Attributes

const vtkm::rendering::CanvasCanvas
 
vtkm::rendering::BitmapFont Font
 
vtkm::rendering::Canvas::FontTextureType FontTexture
 
vtkm::rendering::TextRendererBatcherTextBatcher
 

Constructor & Destructor Documentation

◆ TextRenderer()

VTKM_CONT vtkm::rendering::TextRenderer::TextRenderer ( const vtkm::rendering::Canvas canvas,
const vtkm::rendering::BitmapFont font,
const vtkm::rendering::Canvas::FontTextureType fontTexture,
vtkm::rendering::TextRendererBatcher textBatcher 
)

Member Function Documentation

◆ RenderText() [1/3]

VTKM_CONT void vtkm::rendering::TextRenderer::RenderText ( const vtkm::Matrix< vtkm::Float32, 4, 4 > &  transform,
vtkm::Float32  scale,
const vtkm::Vec2f_32 anchor,
const vtkm::rendering::Color color,
const std::string &  text,
const vtkm::Float32 depth = 0.f 
)

◆ RenderText() [2/3]

VTKM_CONT void vtkm::rendering::TextRenderer::RenderText ( const vtkm::Vec2f_32 position,
vtkm::Float32  scale,
vtkm::Float32  angle,
vtkm::Float32  windowAspect,
const vtkm::Vec2f_32 anchor,
const vtkm::rendering::Color color,
const std::string &  text 
)

◆ RenderText() [3/3]

VTKM_CONT void vtkm::rendering::TextRenderer::RenderText ( const vtkm::Vec3f_32 origin,
const vtkm::Vec3f_32 right,
const vtkm::Vec3f_32 up,
vtkm::Float32  scale,
const vtkm::Vec2f_32 anchor,
const vtkm::rendering::Color color,
const std::string &  text 
)

Member Data Documentation

◆ Canvas

const vtkm::rendering::Canvas* vtkm::rendering::TextRenderer::Canvas
private

◆ Font

vtkm::rendering::BitmapFont vtkm::rendering::TextRenderer::Font
private

◆ FontTexture

vtkm::rendering::Canvas::FontTextureType vtkm::rendering::TextRenderer::FontTexture
private

◆ TextBatcher

vtkm::rendering::TextRendererBatcher* vtkm::rendering::TextRenderer::TextBatcher
private

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