AppCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
EM::Printer::EPrinterGraf Class Reference

#include <EPrinterGraf.h>

Inheritance diagram for EM::Printer::EPrinterGraf:
Inheritance graph
[legend]
Collaboration diagram for EM::Printer::EPrinterGraf:
Collaboration graph
[legend]

Public Member Functions

 EPrinterGraf ()
 
virtual ~EPrinterGraf ()
 
virtual long SetFont (std::string name, long size, bool bold, bool italic)
 
virtual long SetFont (std::string fontName, long size, bool bold, bool italic, bool underline)
 
virtual long DrawText (float x, float y, long width, long height, std::string text, Alignement align, short rotation=0)
 
virtual long CalculateMetrics ()
 
virtual long SetMetrics (Metrics metric)
 
virtual long SetFontEncoding (FontEncoding encode)
 
virtual long SetCurrentPos (float x, float y)
 
virtual long GetPositionX ()
 
virtual long GetPositionY ()
 
virtual long DrawEllipse (float, float, float, float)
 
virtual long DrawBox (float x1, float y1, float x2, float y2)
 
virtual long DrawLine (float x1, float y1, float x2, float y2)
 
virtual long DrawPicture (float x, float y, std::string fileName)
 
virtual long DrawPicture (float x, float y, std::string fileName, long width, long height)
 
virtual long DrawQRCode (long x, long y, long width, long height, std::string data)
 DrawQRCode. More...
 
virtual long GetHeight ()
 
virtual long GetWidth ()
 
virtual long GetTextHeight ()
 
virtual float GetTextHeightMM ()
 
virtual long GetTextWidth (std::string text)
 
virtual int GetHeightMM ()
 
virtual int GetWidthMM ()
 
long SetSize (float width, float height)
 
long SetFont (QFont paFont)
 
long SetPointerToApp (QApplication *)
 
long SetPen (uint width, Qt::PenStyle style=Qt::SolidLine)
 
long SetImage (int width, int height)
 
QImage * GetCanvas ()
 
virtual long StartPrint ()
 
virtual long EndPrint ()
 
virtual unsigned char * GetDataForPrinter (unsigned long &length, unsigned long &width, unsigned long &height)
 
void SetPredTlac (long predtlac)
 
 EPrinterGraf ()
 
virtual ~EPrinterGraf ()
 
virtual long SetFont (std::string name, long size, bool bold, bool italic)
 
virtual long SetFont (std::string fontName, long size, bool bold, bool italic, bool underline)
 
virtual long DrawText (float x, float y, long width, long height, std::string text, Alignement align, short rotation=0)
 
virtual long CalculateMetrics ()
 
virtual long SetMetrics (Metrics metric)
 
virtual long SetFontEncoding (FontEncoding encode)
 
virtual long SetCurrentPos (float x, float y)
 
virtual long GetPositionX ()
 
virtual long GetPositionY ()
 
virtual long DrawEllipse (float, float, float, float)
 
virtual long DrawBox (float x1, float y1, float x2, float y2)
 
virtual long DrawLine (float x1, float y1, float x2, float y2)
 
virtual long DrawPicture (float x, float y, std::string fileName)
 
virtual long DrawPicture (float x, float y, std::string fileName, long width, long height)
 
virtual long DrawQRCode (long x, long y, long width, long height, std::string data)
 DrawQRCode. More...
 
virtual long GetHeight ()
 
virtual long GetWidth ()
 
virtual long GetTextHeight ()
 
virtual float GetTextHeightMM ()
 
virtual long GetTextWidth (std::string text)
 
virtual int GetHeightMM ()
 
virtual int GetWidthMM ()
 
long SetSize (float width, float height)
 
long SetFont (QFont paFont)
 
long SetPointerToApp (QApplication *)
 
long SetPen (uint width, Qt::PenStyle style=Qt::SolidLine)
 
long SetImage (int width, int height)
 
QImage * GetCanvas ()
 
virtual long StartPrint ()
 
virtual long EndPrint ()
 
virtual unsigned char * GetDataForPrinter (unsigned long &length, unsigned long &width, unsigned long &height)
 
void SetPredTlac (long predtlac)
 
- Public Member Functions inherited from EM::Printer::EPrinter
 EPrinter ()
 
virtual ~EPrinter ()
 
virtual std::string GetExtendedProperties (std::string str)
 
virtual long NewPage ()
 
virtual long GetStatus ()
 
void SetRatioX (float x)
 
void SetRatioY (float y)
 
float GetRatioX ()
 
float GetRatioY ()
 
void SetTemplateVersion (long templateVersion)
 
long GetTemplateVersion ()
 
 EPrinter ()
 
virtual ~EPrinter ()
 
virtual std::string GetExtendedProperties (std::string str)
 
virtual long NewPage ()
 
virtual long GetStatus ()
 
void SetRatioX (float x)
 
void SetRatioY (float y)
 
float GetRatioX ()
 
float GetRatioY ()
 
void SetTemplateVersion (long templateVersion)
 
long GetTemplateVersion ()
 
- Public Member Functions inherited from EM::Printer::EImageIface
 EImageIface ()
 
virtual ~EImageIface ()
 
virtual Metrics GetMetrics ()
 
virtual FontEncoding GetFontEncoding ()
 
virtual long SetAlign (Alignement align)
 
virtual long SetBkColor (int colorIdx)
 
virtual long SetTextColor (int colorIdx)
 
virtual long SetDrawedObjectColors (int borderColorIdx, int fillColorIdx)
 
void SetDefaultPath (const std::string &defaultPath)
 
std::string GetDefaultPath () const
 
 EImageIface ()
 
virtual ~EImageIface ()
 
virtual Metrics GetMetrics ()
 
virtual FontEncoding GetFontEncoding ()
 
virtual long SetAlign (Alignement align)
 
virtual long SetBkColor (int colorIdx)
 
virtual long SetTextColor (int colorIdx)
 
virtual long SetDrawedObjectColors (int borderColorIdx, int fillColorIdx)
 
void SetDefaultPath (const std::string &defaultPath)
 
std::string GetDefaultPath () const
 

Additional Inherited Members

- Public Types inherited from EM::Printer::EImageIface
enum  Metrics {
  Pixel = 0, Milimeter = 1, Centimeter = 2, Pixel = 0,
  Milimeter = 1, Centimeter = 2
}
 
enum  FontEncoding { None = 0, Utf8 = 1, None = 0, Utf8 = 1 }
 
enum  Metrics {
  Pixel = 0, Milimeter = 1, Centimeter = 2, Pixel = 0,
  Milimeter = 1, Centimeter = 2
}
 
enum  FontEncoding { None = 0, Utf8 = 1, None = 0, Utf8 = 1 }
 
- Static Public Member Functions inherited from EM::Printer::EPrinter
static void SetActPrinter (EPrinter *actPrinter)
 
static EPrinterGetActPrinter ()
 
static void SetActPrinter (EPrinter *actPrinter)
 
static EPrinterGetActPrinter ()
 
- Static Protected Attributes inherited from EM::Printer::EPrinter
static EPrintermActPrinter = NULL
 

Constructor & Destructor Documentation

INTERNAL EPrinterGraf::EPrinterGraf ( )
EPrinterGraf::~EPrinterGraf ( )
virtual
EM::Printer::EPrinterGraf::EPrinterGraf ( )
virtual EM::Printer::EPrinterGraf::~EPrinterGraf ( )
virtual

Member Function Documentation

long EPrinterGraf::CalculateMetrics ( )
virtual

public virtual CalculateMetrics Vypocitanie mierky

Returns
long navratova hodnota 0
Remarks
Pixel, CENTIMETER, MILIMETER

SetImage( 432, getHeight*d->mRatioY );

Reimplemented from EM::Printer::EImageIface.

Here is the call graph for this function:

Here is the caller graph for this function:

virtual long EM::Printer::EPrinterGraf::CalculateMetrics ( )
virtual

public virtual CalculateMetrics Vypocitanie mierky

Returns
long navratova hodnota 0
Remarks
Pixel, CENTIMETER, MILIMETER

Reimplemented from EM::Printer::EImageIface.

long EPrinterGraf::DrawBox ( float  x1,
float  y1,
float  x2,
float  y2 
)
virtual

public virtual DrawBox Vykreslenie stvoruholnika

Parameters
x1float * [vstup]
y1float * [vstup]
x2float * [vstup]
y2float * [vstup]
Returns
long navratova hodnota 0

Reimplemented from EM::Printer::EImageIface.

virtual long EM::Printer::EPrinterGraf::DrawBox ( float  x1,
float  y1,
float  x2,
float  y2 
)
virtual

public virtual DrawBox Vykreslenie stvoruholnika

Parameters
x1float * [vstup]
y1float * [vstup]
x2float * [vstup]
y2float * [vstup]
Returns
long navratova hodnota 0

Reimplemented from EM::Printer::EImageIface.

long EPrinterGraf::DrawEllipse ( float  x,
float  y,
float  w,
float  h 
)
virtual

public virtual DrawEllipse Vykreslenie elipsy

Parameters
xfloat * [vstup]
yfloat * [vstup]
wfloat * [vstup]
hfloat * [vstup]
Returns
long navratova hodnota 0

Reimplemented from EM::Printer::EImageIface.

virtual long EM::Printer::EPrinterGraf::DrawEllipse ( float  x,
float  y,
float  w,
float  h 
)
virtual

public virtual DrawEllipse Vykreslenie elipsy

Parameters
xfloat * [vstup]
yfloat * [vstup]
wfloat * [vstup]
hfloat * [vstup]
Returns
long navratova hodnota 0

Reimplemented from EM::Printer::EImageIface.

virtual long EM::Printer::EPrinterGraf::DrawLine ( float  x1,
float  y1,
float  x2,
float  y2 
)
virtual

public virtual DrawLine Vykreslovanie ciar

Parameters
x1float * [vstup]
y1float * [vstup]
x2float * [vstup]
y2float * [vstup]
Returns
long navratova hodnota 0

Reimplemented from EM::Printer::EImageIface.

long EPrinterGraf::DrawLine ( float  x1,
float  y1,
float  x2,
float  y2 
)
virtual

public virtual DrawLine Vykreslovanie ciar

Parameters
x1float * [vstup]
y1float * [vstup]
x2float * [vstup]
y2float * [vstup]
Returns
long navratova hodnota 0

Reimplemented from EM::Printer::EImageIface.

virtual long EM::Printer::EPrinterGraf::DrawPicture ( float  x,
float  y,
std::string  fileName 
)
virtual

Reimplemented from EM::Printer::EImageIface.

virtual long EM::Printer::EPrinterGraf::DrawPicture ( float  x,
float  y,
std::string  fileName 
)
virtual

Reimplemented from EM::Printer::EImageIface.

virtual long EM::Printer::EPrinterGraf::DrawPicture ( float  x,
float  y,
std::string  fileName,
long  width,
long  height 
)
virtual

Reimplemented from EM::Printer::EImageIface.

virtual long EM::Printer::EPrinterGraf::DrawPicture ( float  x,
float  y,
std::string  fileName,
long  width,
long  height 
)
virtual

Reimplemented from EM::Printer::EImageIface.

virtual long EM::Printer::EPrinterGraf::DrawQRCode ( long  x,
long  y,
long  width,
long  height,
std::string  data 
)
virtual

DrawQRCode.

Parameters
x- the x-coordinate of top-left corner of QR code image
y- the y-coordinate of top-left corner of QR code image
width- width of the QR code image (if Metrics == Pixel, multiple of logical QR code width recommended)
height- height of the QR code image (if Metrics == Pixel, multiple of logical QR code height recommended)
data- symbol data is represented as an array contains (logical width)*(logical width) uchars. Each uchar represents a module (dot). If the less significant bit of the uchar is 1, the corresponding module is black.
Returns
0 = success, error otherwise

Reimplemented from EM::Printer::EImageIface.

virtual long EM::Printer::EPrinterGraf::DrawQRCode ( long  x,
long  y,
long  width,
long  height,
std::string  data 
)
virtual

DrawQRCode.

Parameters
x- the x-coordinate of top-left corner of QR code image
y- the y-coordinate of top-left corner of QR code image
width- width of the QR code image (if Metrics == Pixel, multiple of logical QR code width recommended)
height- height of the QR code image (if Metrics == Pixel, multiple of logical QR code height recommended)
data- symbol data is represented as an array contains (logical width)*(logical width) uchars. Each uchar represents a module (dot). If the less significant bit of the uchar is 1, the corresponding module is black.
Returns
0 = success, error otherwise

Reimplemented from EM::Printer::EImageIface.

virtual long EM::Printer::EPrinterGraf::DrawText ( float  x,
float  y,
long  width,
long  height,
std::string  text,
Alignement  align,
short  rotation = 0 
)
virtual

Reimplemented from EM::Printer::EImageIface.

virtual long EM::Printer::EPrinterGraf::DrawText ( float  x,
float  y,
long  width,
long  height,
std::string  text,
Alignement  align,
short  rotation = 0 
)
virtual

Reimplemented from EM::Printer::EImageIface.

long EPrinterGraf::EndPrint ( )
virtual

Samotne vytlacenie

Returns
0=OK

public virtual EndPrint Ukoncenie tlace

Reimplemented from EM::Printer::EPrinter.

virtual long EM::Printer::EPrinterGraf::EndPrint ( )
virtual

Samotne vytlacenie

Returns
0=OK

public virtual EndPrint Ukoncenie tlace

Reimplemented from EM::Printer::EPrinter.

QImage* EM::Printer::EPrinterGraf::GetCanvas ( )
QImage * EPrinterGraf::GetCanvas ( )
unsigned char * EPrinterGraf::GetDataForPrinter ( unsigned long &  length,
unsigned long &  width,
unsigned long &  height 
)
virtual

QImage printedImage = *d->mImage;

Implements EM::Printer::EPrinter.

virtual unsigned char* EM::Printer::EPrinterGraf::GetDataForPrinter ( unsigned long &  length,
unsigned long &  width,
unsigned long &  height 
)
virtual

Implements EM::Printer::EPrinter.

long EPrinterGraf::GetHeight ( )
virtual

public virtual GetHeight Vrati vysku plochy na tlac

Returns
long vyska

Reimplemented from EM::Printer::EImageIface.

Here is the caller graph for this function:

virtual long EM::Printer::EPrinterGraf::GetHeight ( )
virtual

public virtual GetHeight Vrati vysku plochy na tlac

Returns
long vyska

Reimplemented from EM::Printer::EImageIface.

int EPrinterGraf::GetHeightMM ( )
virtual

Here is the caller graph for this function:

virtual int EM::Printer::EPrinterGraf::GetHeightMM ( )
virtual
long EPrinterGraf::GetPositionX ( )
virtual

public virtual GetPositionX Vratenie x-ovej pozicie

Returns
long pozicia x

Reimplemented from EM::Printer::EImageIface.

virtual long EM::Printer::EPrinterGraf::GetPositionX ( )
virtual

public virtual GetPositionX Vratenie x-ovej pozicie

Returns
long pozicia x

Reimplemented from EM::Printer::EImageIface.

long EPrinterGraf::GetPositionY ( )
virtual

public virtual GetPositionY Vratenie y-ovej pozicie

Returns
long pozicia y

Reimplemented from EM::Printer::EImageIface.

virtual long EM::Printer::EPrinterGraf::GetPositionY ( )
virtual

public virtual GetPositionY Vratenie y-ovej pozicie

Returns
long pozicia y

Reimplemented from EM::Printer::EImageIface.

long EPrinterGraf::GetTextHeight ( )
virtual

public virtual GetTextHeight Vrati vysku textu

Returns
long vyska

Reimplemented from EM::Printer::EImageIface.

virtual long EM::Printer::EPrinterGraf::GetTextHeight ( )
virtual

public virtual GetTextHeight Vrati vysku textu

Returns
long vyska

Reimplemented from EM::Printer::EImageIface.

float EPrinterGraf::GetTextHeightMM ( )
virtual

Reimplemented from EM::Printer::EImageIface.

Here is the call graph for this function:

virtual float EM::Printer::EPrinterGraf::GetTextHeightMM ( )
virtual

Reimplemented from EM::Printer::EImageIface.

virtual long EM::Printer::EPrinterGraf::GetTextWidth ( std::string  text)
virtual

Reimplemented from EM::Printer::EImageIface.

virtual long EM::Printer::EPrinterGraf::GetTextWidth ( std::string  text)
virtual

Reimplemented from EM::Printer::EImageIface.

long EPrinterGraf::GetWidth ( )
virtual

public virtual GetWidth Vrati sirku plochy na tlac

Returns
long sirka

Reimplemented from EM::Printer::EImageIface.

Here is the caller graph for this function:

virtual long EM::Printer::EPrinterGraf::GetWidth ( )
virtual

public virtual GetWidth Vrati sirku plochy na tlac

Returns
long sirka

Reimplemented from EM::Printer::EImageIface.

int EPrinterGraf::GetWidthMM ( )
virtual

Here is the caller graph for this function:

virtual int EM::Printer::EPrinterGraf::GetWidthMM ( )
virtual
long EPrinterGraf::SetCurrentPos ( float  x,
float  y 
)
virtual

public virtual SetCurrentPos Nastavenie na poziciu podla vstupnych parametrov

Parameters
xfloat * [vstup]
yfloat * [vstup]
Returns
long navratova hodnota 0

Reimplemented from EM::Printer::EImageIface.

virtual long EM::Printer::EPrinterGraf::SetCurrentPos ( float  x,
float  y 
)
virtual

public virtual SetCurrentPos Nastavenie na poziciu podla vstupnych parametrov

Parameters
xfloat * [vstup]
yfloat * [vstup]
Returns
long navratova hodnota 0

Reimplemented from EM::Printer::EImageIface.

virtual long EM::Printer::EPrinterGraf::SetFont ( std::string  name,
long  size,
bool  bold,
bool  italic 
)
virtual

Reimplemented from EM::Printer::EImageIface.

virtual long EM::Printer::EPrinterGraf::SetFont ( std::string  name,
long  size,
bool  bold,
bool  italic 
)
virtual

Reimplemented from EM::Printer::EImageIface.

virtual long EM::Printer::EPrinterGraf::SetFont ( std::string  fontName,
long  size,
bool  bold,
bool  italic,
bool  underline 
)
virtual

Reimplemented from EM::Printer::EImageIface.

virtual long EM::Printer::EPrinterGraf::SetFont ( std::string  fontName,
long  size,
bool  bold,
bool  italic,
bool  underline 
)
virtual

Reimplemented from EM::Printer::EImageIface.

long EPrinterGraf::SetFont ( QFont  paFont)
long EM::Printer::EPrinterGraf::SetFont ( QFont  paFont)
virtual long EM::Printer::EPrinterGraf::SetFontEncoding ( FontEncoding  encode)
virtual

Reimplemented from EM::Printer::EImageIface.

long EPrinterGraf::SetFontEncoding ( FontEncoding  encode)
virtual

Reimplemented from EM::Printer::EImageIface.

long EPrinterGraf::SetImage ( int  width,
int  height 
)

Here is the caller graph for this function:

long EM::Printer::EPrinterGraf::SetImage ( int  width,
int  height 
)
virtual long EM::Printer::EPrinterGraf::SetMetrics ( Metrics  metric)
virtual

Reimplemented from EM::Printer::EImageIface.

long EPrinterGraf::SetMetrics ( Metrics  metric)
virtual

Reimplemented from EM::Printer::EImageIface.

Here is the call graph for this function:

long EM::Printer::EPrinterGraf::SetPen ( uint  width,
Qt::PenStyle  style = Qt::SolidLine 
)
long EPrinterGraf::SetPen ( uint  width,
Qt::PenStyle  style = Qt::SolidLine 
)
long EPrinterGraf::SetPointerToApp ( QApplication *  )
long EM::Printer::EPrinterGraf::SetPointerToApp ( QApplication *  )
void EPrinterGraf::SetPredTlac ( long  predtlac)
void EM::Printer::EPrinterGraf::SetPredTlac ( long  predtlac)
long EM::Printer::EPrinterGraf::SetSize ( float  width,
float  height 
)
virtual

public virtual SetSize Nastavenie velkosti plochy pre tlac

Parameters
widthfloat * [vstup]
heightfloat * [vstup]
Returns
long navratova hodnota 0

Reimplemented from EM::Printer::EImageIface.

long EPrinterGraf::SetSize ( float  width,
float  height 
)
virtual

public virtual SetSize Nastavenie velkosti plochy pre tlac

Parameters
widthfloat * [vstup]
heightfloat * [vstup]
Returns
long navratova hodnota 0

Reimplemented from EM::Printer::EImageIface.

Here is the call graph for this function:

virtual long EM::Printer::EPrinterGraf::StartPrint ( )
virtual

Je nutne zavolat pred zaciatkom vykreslovania, a po nastaveni Height,Width

Returns
0=OK

public virtual StartPrint Inicializacia tlaciarne, vypocet mierky, nastavenie kodovania znakov

Reimplemented from EM::Printer::EPrinter.

long EPrinterGraf::StartPrint ( )
virtual

Je nutne zavolat pred zaciatkom vykreslovania, a po nastaveni Height,Width

Returns
0=OK

public virtual StartPrint Inicializacia tlaciarne, vypocet mierky, nastavenie kodovania znakov

Reimplemented from EM::Printer::EPrinter.


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