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

#include <BitmapFont.h>

Classes

struct  Character
 

Public Member Functions

 BitmapFont ()
 
const CharacterGetChar (char c) const
 
const VTKM_CONT std::vector< unsigned char > & GetRawImageData () const
 
vtkm::Float32 GetTextWidth (const std::string &text) const
 
void GetCharPolygon (char character, vtkm::Float32 &x, vtkm::Float32 &y, vtkm::Float32 &vl, vtkm::Float32 &vr, vtkm::Float32 &vt, vtkm::Float32 &vb, vtkm::Float32 &tl, vtkm::Float32 &tr, vtkm::Float32 &tt, vtkm::Float32 &tb, char nextchar=0) const
 

Public Attributes

std::string Name
 
std::string ImageFile
 
int Height
 
int Ascender
 
int Descender
 
int ImgW
 
int ImgH
 
int PadL
 
int PadR
 
int PadT
 
int PadB
 
int ShortMap [256]
 
std::vector< CharacterChars
 
std::vector< unsigned char > RawImageFileData
 

Constructor & Destructor Documentation

◆ BitmapFont()

vtkm::rendering::BitmapFont::BitmapFont ( )

Member Function Documentation

◆ GetChar()

const Character& vtkm::rendering::BitmapFont::GetChar ( char  c) const

◆ GetCharPolygon()

void vtkm::rendering::BitmapFont::GetCharPolygon ( char  character,
vtkm::Float32 x,
vtkm::Float32 y,
vtkm::Float32 vl,
vtkm::Float32 vr,
vtkm::Float32 vt,
vtkm::Float32 vb,
vtkm::Float32 tl,
vtkm::Float32 tr,
vtkm::Float32 tt,
vtkm::Float32 tb,
char  nextchar = 0 
) const

◆ GetRawImageData()

const VTKM_CONT std::vector<unsigned char>& vtkm::rendering::BitmapFont::GetRawImageData ( ) const
inline

◆ GetTextWidth()

vtkm::Float32 vtkm::rendering::BitmapFont::GetTextWidth ( const std::string &  text) const

Member Data Documentation

◆ Ascender

int vtkm::rendering::BitmapFont::Ascender

◆ Chars

std::vector<Character> vtkm::rendering::BitmapFont::Chars

◆ Descender

int vtkm::rendering::BitmapFont::Descender

◆ Height

int vtkm::rendering::BitmapFont::Height

◆ ImageFile

std::string vtkm::rendering::BitmapFont::ImageFile

◆ ImgH

int vtkm::rendering::BitmapFont::ImgH

◆ ImgW

int vtkm::rendering::BitmapFont::ImgW

◆ Name

std::string vtkm::rendering::BitmapFont::Name

◆ PadB

int vtkm::rendering::BitmapFont::PadB

◆ PadL

int vtkm::rendering::BitmapFont::PadL

◆ PadR

int vtkm::rendering::BitmapFont::PadR

◆ PadT

int vtkm::rendering::BitmapFont::PadT

◆ RawImageFileData

std::vector<unsigned char> vtkm::rendering::BitmapFont::RawImageFileData

◆ ShortMap

int vtkm::rendering::BitmapFont::ShortMap[256]

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