cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | List of all members
svlOverlayText Class Reference

#include <svlOverlayObjects.h>

Inheritance diagram for svlOverlayText:
svlOverlayStaticText svlOverlayInput svlOverlay

Public Member Functions

 svlOverlayText ()
 
 svlOverlayText (unsigned int videoch, bool visible, const std::string &inputname, svlRect rect, double fontsize, svlRGB txtcolor)
 
 svlOverlayText (unsigned int videoch, bool visible, const std::string &inputname, svlRect rect, double fontsize, svlRGB txtcolor, svlRGB bgcolor)
 
virtual ~svlOverlayText ()
 
void SetRect (svlRect rect)
 
void SetRect (int left, int top, int right, int bottom)
 
void SetFontSize (double size)
 
void SetTextColor (svlRGB txtcolor)
 
void SetBackgroundColor (svlRGB bgcolor)
 
void SetBackground (bool enable)
 
svlRect GetRect () const
 
void GetRect (int &left, int &top, int &right, int &bottom) const
 
double GetFontSize () const
 
svlRGB GetTextColor () const
 
svlRGB GetBackgroundColor () const
 
bool GetBackground () const
 
svlRect GetTextSize (const std::string &text)
 
- Public Member Functions inherited from svlOverlayStaticText
 svlOverlayStaticText ()
 
 svlOverlayStaticText (unsigned int videoch, bool visible, const std::string &text, svlRect rect, double fontsize, svlRGB txtcolor)
 
 svlOverlayStaticText (unsigned int videoch, bool visible, const std::string &text, svlRect rect, double fontsize, svlRGB txtcolor, svlRGB bgcolor)
 
virtual ~svlOverlayStaticText ()
 
void SetText (const std::string &text)
 
void SetRect (svlRect rect)
 
void SetRect (int left, int top, int right, int bottom)
 
void SetFontSize (double size)
 
void SetTextColor (svlRGB txtcolor)
 
void SetBackgroundColor (svlRGB bgcolor)
 
void SetBackground (bool enable)
 
const std::string & GetText () const
 
svlRect GetRect () const
 
void GetRect (int &left, int &top, int &right, int &bottom) const
 
double GetFontSize () const
 
svlRGB GetTextColor () const
 
svlRGB GetBackgroundColor () const
 
bool GetBackground () const
 
svlRect GetTextSize (const std::string &text)
 
- Public Member Functions inherited from svlOverlay
 svlOverlay ()
 
 svlOverlay (unsigned int videoch, bool visible)
 
virtual ~svlOverlay ()
 
void SetVideoChannel (unsigned int videoch)
 
void SetVisible (bool visible)
 
unsigned int GetVideoChannel () const
 
bool GetVisible () const
 
bool IsUsed () const
 
void SetTransform (const vct3x3 &transform, const double timestamp=-1.0)
 
double GetTransformTimestamp () const
 
void SetTransformID (int ID)
 
int GetTransformID () const
 
bool IsTransformed () const
 
void SetTransformSynchronized (bool transform_synchronized)
 
bool GetTransformSynchronized () const
 
- Public Member Functions inherited from svlOverlayInput
 svlOverlayInput ()
 
 svlOverlayInput (const std::string &inputname)
 
virtual ~svlOverlayInput ()
 
void SetInputName (const std::string &inputname)
 
const std::string & GetInputName () const
 
void SetInputSynchronized (bool input_synchronized)
 
bool GetInputSynchronized () const
 

Protected Member Functions

virtual bool IsInputTypeValid (svlStreamType inputtype)
 
virtual void DrawInternal (svlSampleImage *bgimage, svlSample *input)
 

Additional Inherited Members

- Protected Attributes inherited from svlOverlay
unsigned int VideoCh
 
bool Visible
 
vct3x3 Transform
 
double TransformTimestamp
 
int TransformID
 
bool Transformed
 
bool TransformSynchronized
 
- Protected Attributes inherited from svlOverlayInput
std::string InputName
 
bool InputSynchronized
 

Constructor & Destructor Documentation

svlOverlayText::svlOverlayText ( )
svlOverlayText::svlOverlayText ( unsigned int  videoch,
bool  visible,
const std::string &  inputname,
svlRect  rect,
double  fontsize,
svlRGB  txtcolor 
)
svlOverlayText::svlOverlayText ( unsigned int  videoch,
bool  visible,
const std::string &  inputname,
svlRect  rect,
double  fontsize,
svlRGB  txtcolor,
svlRGB  bgcolor 
)
virtual svlOverlayText::~svlOverlayText ( )
virtual

Member Function Documentation

virtual void svlOverlayText::DrawInternal ( svlSampleImage bgimage,
svlSample input 
)
protectedvirtual

Reimplemented from svlOverlayStaticText.

bool svlOverlayText::GetBackground ( ) const
svlRGB svlOverlayText::GetBackgroundColor ( ) const
double svlOverlayText::GetFontSize ( ) const
svlRect svlOverlayText::GetRect ( ) const
void svlOverlayText::GetRect ( int &  left,
int &  top,
int &  right,
int &  bottom 
) const
svlRGB svlOverlayText::GetTextColor ( ) const
svlRect svlOverlayText::GetTextSize ( const std::string &  text)
virtual bool svlOverlayText::IsInputTypeValid ( svlStreamType  inputtype)
protectedvirtual

Implements svlOverlayInput.

void svlOverlayText::SetBackground ( bool  enable)
void svlOverlayText::SetBackgroundColor ( svlRGB  bgcolor)
void svlOverlayText::SetFontSize ( double  size)
void svlOverlayText::SetRect ( svlRect  rect)
void svlOverlayText::SetRect ( int  left,
int  top,
int  right,
int  bottom 
)
void svlOverlayText::SetTextColor ( svlRGB  txtcolor)

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