CanvasOrthoText Class Reference

#include <canvasorthotext.h>

Inheritance diagram for CanvasOrthoText:

ScheditAnnotate

List of all members.

Public Member Functions

 CanvasOrthoText (QCanvas *canvas)
 CanvasOrthoText (QString &t, QCanvas *canvas)
 CanvasOrthoText (QString &t, QFont font, QCanvas *canvas)
 ~CanvasOrthoText ()
virtual void draw (QPainter &painter)
virtual QRect boundingRect () const
virtual void setupPainter (QPainter &painter)
void setVertical (bool bFlag)
bool vertical (void)
int width ()
int height ()
bool shadow (void)
void setShadow (bool bFlag)
virtual int rtti (void) const


Detailed Description

Author:
James Fuller,,, <james>

Constructor & Destructor Documentation

CanvasOrthoText::CanvasOrthoText ( QCanvas *  canvas  ) 

Creator

Parameters:
canvas Where the object is represented

CanvasOrthoText::CanvasOrthoText ( QString &  t,
QCanvas *  canvas 
)

Creator with string

Parameters:
t String to display
canvas Where the object is represented

CanvasOrthoText::CanvasOrthoText ( QString &  t,
QFont  font,
QCanvas *  canvas 
)

Constructor with string and font

Parameters:
t String
font Font
canvas Where the object is represented

CanvasOrthoText::~CanvasOrthoText (  ) 

Destructor


Member Function Documentation

QRect CanvasOrthoText::boundingRect (  )  const [virtual]

Determine the bounding rect of the strnig at that orientation

Returns:
QRect

void CanvasOrthoText::draw ( QPainter &  painter  )  [virtual]

Draws the string onto the canvas

Parameters:
painter 

int CanvasOrthoText::height (  ) 

Determine the height of the string at the orientation

Returns:
int

int CanvasOrthoText::rtti ( void   )  const [virtual]

Unique representation of class derived from ScheditItem

Parameters:
none 
Returns:
int

Reimplemented in ScheditAnnotate.

void CanvasOrthoText::setShadow ( bool  bFlag  ) 

Specifies if the string is to display a shadow

Parameters:
bFlag True for vertical

void CanvasOrthoText::setupPainter ( QPainter &  painter  )  [virtual]

Copies specified parameters from object to canvas

Parameters:
painter 

void CanvasOrthoText::setVertical ( bool  bFlag  ) 

Specifies if the string to be displayed vertically

Parameters:
bFlag True for vertical

bool CanvasOrthoText::shadow ( void   ) 

Determines if the string is to show a shadow

Parameters:
@return 

bool CanvasOrthoText::vertical ( void   ) 

Determines if the string is to be displayed vertically

Parameters:
none 
Returns:
bool

int CanvasOrthoText::width (  ) 

Determine the width of the displayed string at the orientation

Returns:


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

Generated on Wed Feb 19 20:13:53 2014 for Schematux by  doxygen 1.5.7