My Project
Public Types | Public Member Functions | Static Public Member Functions | List of all members
mcrt_dataio::telemetry::Overlay Class Reference

Public Types

enum  Align { SMALL, MIDDLE, BIG }
 
using Arg = scene_rdl2::grid_util::Arg
 
using Parser = scene_rdl2::grid_util::Parser
 
using BBox2i = scene_rdl2::math::BBox2i
 

Public Member Functions

 Overlay (const unsigned width, const unsigned height)
 
void resize (const unsigned width, const unsigned height)
 
void clear (const C3 &c3, const unsigned char alpha, bool doParallel)
 
void boxFill (const C3 &c3, const unsigned char alpha, const BBox2i &bbox, bool doParallel)
 
void fill (unsigned char r, unsigned char g, unsigned char b, unsigned char a)
 
unsigned getWidth () const
 
unsigned getHeight () const
 
unsigned getMaxYLines (const Font &font, unsigned &offsetBottomPixY, unsigned &stepPixY) const
 
std::shared_ptr< OverlayCharItemgetNewOverlayCharItem ()
 
void restoreOverlayCharItemMem (std::shared_ptr< OverlayCharItem > ptr)
 
void drawStrClear ()
 
bool drawStr (Font &font, const unsigned startX, const unsigned startY, const std::string &str, const C3 &c3, std::string &error)
 
void drawStrFlush (bool doParallel)
 
void drawBoxClear ()
 
void drawBox (const BBox2i box, const C3 &c3, const unsigned char alpha)
 
void drawBoxBar (const BBox2i box, const C3 &c3, const unsigned char alpha)
 
void drawBoxFlush (bool doParallel)
 
unsigned getFontStepX () const
 
size_t getDrawStrItemTotal () const
 
BBox2i calcDrawBbox (const size_t startStrItemId, const size_t endStrItemId) const
 
void finalizeRgb888 (std::vector< unsigned char > &rgbFrame, unsigned frameWidth, unsigned frameHeight, bool top2bottomFlag, Align hAlign, Align vAlign, std::vector< unsigned char > *bgArchive, bool doParallel) const
 
bool savePPM (const std::string &filename) const
 
Parser & getParser ()
 

Static Public Member Functions

static size_t msgDisplayLen (const std::string &msg)
 
static size_t msgDisplayWidth (const std::string &msg)
 

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