VTK-m  2.2
Public Types | Public Member Functions | Private Attributes | List of all members
vtkm::rendering::TextRendererBatcher Class Reference

#include <TextRendererBatcher.h>

Public Types

using FontTextureType = vtkm::rendering::Canvas::FontTextureType
 
using ScreenCoordsType = vtkm::Id4
 
using TextureCoordsType = vtkm::Vec4f_32
 
using ColorType = vtkm::Vec4f_32
 
using ScreenCoordsArrayHandle = vtkm::cont::ArrayHandle< ScreenCoordsType >
 
using TextureCoordsArrayHandle = vtkm::cont::ArrayHandle< TextureCoordsType >
 
using ColorsArrayHandle = vtkm::cont::ArrayHandle< ColorType >
 
using DepthsArrayHandle = vtkm::cont::ArrayHandle< vtkm::Float32 >
 

Public Member Functions

 TextRendererBatcher (const vtkm::rendering::Canvas::FontTextureType &fontTexture)
 
void BatchText (const ScreenCoordsArrayHandle &screenCoords, const TextureCoordsArrayHandle &textureCoords, const vtkm::rendering::Color &color, const vtkm::Float32 &depth)
 
void Render (const vtkm::rendering::Canvas *canvas) const
 

Private Attributes

vtkm::rendering::Canvas::FontTextureType FontTexture
 
std::vector< ScreenCoordsTypeScreenCoords
 
std::vector< TextureCoordsTypeTextureCoords
 
std::vector< ColorTypeColors
 
std::vector< vtkm::Float32Depths
 

Member Typedef Documentation

◆ ColorsArrayHandle

◆ ColorType

◆ DepthsArrayHandle

◆ FontTextureType

◆ ScreenCoordsArrayHandle

◆ ScreenCoordsType

◆ TextureCoordsArrayHandle

◆ TextureCoordsType

Constructor & Destructor Documentation

◆ TextRendererBatcher()

vtkm::rendering::TextRendererBatcher::TextRendererBatcher ( const vtkm::rendering::Canvas::FontTextureType fontTexture)

Member Function Documentation

◆ BatchText()

void vtkm::rendering::TextRendererBatcher::BatchText ( const ScreenCoordsArrayHandle screenCoords,
const TextureCoordsArrayHandle textureCoords,
const vtkm::rendering::Color color,
const vtkm::Float32 depth 
)

◆ Render()

void vtkm::rendering::TextRendererBatcher::Render ( const vtkm::rendering::Canvas canvas) const

Member Data Documentation

◆ Colors

std::vector<ColorType> vtkm::rendering::TextRendererBatcher::Colors
private

◆ Depths

std::vector<vtkm::Float32> vtkm::rendering::TextRendererBatcher::Depths
private

◆ FontTexture

vtkm::rendering::Canvas::FontTextureType vtkm::rendering::TextRendererBatcher::FontTexture
private

◆ ScreenCoords

std::vector<ScreenCoordsType> vtkm::rendering::TextRendererBatcher::ScreenCoords
private

◆ TextureCoords

std::vector<TextureCoordsType> vtkm::rendering::TextRendererBatcher::TextureCoords
private

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