Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | List of all members
BIAS::DrawTextWx< StorageType > Class Template Reference

Writing a text in an bias image usig a wx device context This class uses wxDC and thus it can only be used in wx GUI applications. More...

#include <Gui/DrawTextWx.hh>

Public Types

enum  EHorizontalAlign { H_ALIGN_LEFT, H_ALIGN_CENTER, H_ALIGN_RIGHT }
 
enum  EVerticalAlign { V_ALIGN_TOP, V_ALIGN_CENTER, V_ALIGN_BOTTOM }
 

Public Member Functions

 DrawTextWx ()
 
 ~DrawTextWx ()
 

Static Public Member Functions

static int GetTextExtend (const std::string &text, unsigned &width, unsigned &height, const unsigned point_size=8)
 returns size of the bounding box of the text More...
 
static int Text (Image< StorageType > &im, const std::string &text, const unsigned &pos_x, const unsigned &pos_y, const ColourRGB< StorageType > &foreground_color=COLOR_WHITE, const ColourRGB< StorageType > &background_color=COLOR_BLACK, const unsigned point_size=8, const enum EVerticalAlign vertical_align=V_ALIGN_TOP, const enum EHorizontalAlign horizontal_align=H_ALIGN_LEFT)
 write text in an image !!! Can only be used in wx-GUI applications which implement wxApp !!! More...
 

Detailed Description

template<class StorageType>
class BIAS::DrawTextWx< StorageType >

Writing a text in an bias image usig a wx device context This class uses wxDC and thus it can only be used in wx GUI applications.

!! It does not work for console applications !!!

Author
woelk 09/2009 (c) www.vision-n.de
Examples:
ExampleDrawTextWx.cpp.

Definition at line 45 of file DrawTextWx.hh.

Member Enumeration Documentation

template<class StorageType>
enum BIAS::DrawTextWx::EHorizontalAlign
Enumerator
H_ALIGN_LEFT 
H_ALIGN_CENTER 
H_ALIGN_RIGHT 

Definition at line 50 of file DrawTextWx.hh.

template<class StorageType>
enum BIAS::DrawTextWx::EVerticalAlign
Enumerator
V_ALIGN_TOP 
V_ALIGN_CENTER 
V_ALIGN_BOTTOM 

Definition at line 48 of file DrawTextWx.hh.

Constructor & Destructor Documentation

template<class StorageType>
BIAS::DrawTextWx< StorageType >::DrawTextWx ( )
inline

Definition at line 52 of file DrawTextWx.hh.

template<class StorageType>
BIAS::DrawTextWx< StorageType >::~DrawTextWx ( )
inline

Definition at line 54 of file DrawTextWx.hh.

Member Function Documentation

template<class StorageType >
int DrawTextWx::GetTextExtend ( const std::string &  text,
unsigned &  width,
unsigned &  height,
const unsigned  point_size = 8 
)
static

returns size of the bounding box of the text

Definition at line 15 of file DrawTextWx.cpp.

References BIAS::AsciiToWx().

template<class StorageType >
int DrawTextWx::Text ( Image< StorageType > &  im,
const std::string &  text,
const unsigned &  pos_x,
const unsigned &  pos_y,
const ColourRGB< StorageType > &  foreground_color = COLOR_WHITE,
const ColourRGB< StorageType > &  background_color = COLOR_BLACK,
const unsigned  point_size = 8,
const enum EVerticalAlign  vertical_align = V_ALIGN_TOP,
const enum EHorizontalAlign  horizontal_align = H_ALIGN_LEFT 
)
static

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