Computer Assisted Medical Intervention Tool Kit  version 5.2
QtCanvasText Class Reference

#include <qtcanvas.h>

+ Inheritance diagram for QtCanvasText:
+ Collaboration diagram for QtCanvasText:

Public Member Functions

QRect boundingRect () const
 
QRect boundingRect () const
 
bool collidesWith (const QtCanvasItem *) const
 
bool collidesWith (const QtCanvasItem *) const
 
QColor color () const
 
QColor color () const
 
QFont font () const
 
QFont font () const
 
void moveBy (double dx, double dy)
 
void moveBy (double dx, double dy)
 
 QtCanvasText (const QString &, QFont, QtCanvas *canvas)
 
 QtCanvasText (const QString &, QFont, QtCanvas *canvas)
 
 QtCanvasText (const QString &, QtCanvas *canvas)
 
 QtCanvasText (const QString &, QtCanvas *canvas)
 
 QtCanvasText (QtCanvas *canvas)
 
 QtCanvasText (QtCanvas *canvas)
 
int rtti () const
 
int rtti () const
 
void setColor (const QColor &)
 
void setColor (const QColor &)
 
void setFont (const QFont &)
 
void setFont (const QFont &)
 
void setText (const QString &)
 
void setText (const QString &)
 
void setTextFlags (int)
 
void setTextFlags (int)
 
QString text () const
 
QString text () const
 
int textFlags () const
 
int textFlags () const
 
virtual ~QtCanvasText ()
 
virtual ~QtCanvasText ()
 
- Public Member Functions inherited from QtCanvasItem
bool active () const
 
bool active () const
 
virtual void advance (int stage)
 
virtual void advance (int stage)
 
bool animated () const
 
bool animated () const
 
virtual QRect boundingRectAdvanced () const
 
virtual QRect boundingRectAdvanced () const
 
QtCanvascanvas () const
 
QtCanvascanvas () const
 
QtCanvasItemList collisions (bool exact) const
 
QtCanvasItemList collisions (bool exact) const
 
bool enabled () const
 
bool enabled () const
 
void hide ()
 
void hide ()
 
bool isActive () const
 
bool isActive () const
 
bool isEnabled () const
 
bool isEnabled () const
 
bool isSelected () const
 
bool isSelected () const
 
bool isVisible () const
 
bool isVisible () const
 
void move (double x, double y)
 
void move (double x, double y)
 
 QtCanvasItem (QtCanvas *canvas)
 
 QtCanvasItem (QtCanvas *canvas)
 
bool selected () const
 
bool selected () const
 
virtual void setActive (bool yes)
 
virtual void setActive (bool yes)
 
virtual void setAnimated (bool y)
 
virtual void setAnimated (bool y)
 
virtual void setCanvas (QtCanvas *)
 
virtual void setCanvas (QtCanvas *)
 
virtual void setEnabled (bool yes)
 
virtual void setEnabled (bool yes)
 
virtual void setSelected (bool yes)
 
virtual void setSelected (bool yes)
 
virtual void setVelocity (double vx, double vy)
 
virtual void setVelocity (double vx, double vy)
 
virtual void setVisible (bool yes)
 
virtual void setVisible (bool yes)
 
void setX (double a)
 
void setX (double a)
 
void setXVelocity (double vx)
 
void setXVelocity (double vx)
 
void setY (double a)
 
void setY (double a)
 
void setYVelocity (double vy)
 
void setYVelocity (double vy)
 
void setZ (double a)
 
void setZ (double a)
 
void show ()
 
void show ()
 
bool visible () const
 
bool visible () const
 
double x () const
 
double x () const
 
double xVelocity () const
 
double xVelocity () const
 
double y () const
 
double y () const
 
double yVelocity () const
 
double yVelocity () const
 
double z () const
 
double z () const
 
virtual ~QtCanvasItem ()
 
virtual ~QtCanvasItem ()
 

Static Public Attributes

static int RTTI = Rtti_Text
 
- Static Public Attributes inherited from QtCanvasItem
static int RTTI = Rtti_Item
 

Protected Member Functions

virtual void draw (QPainter &)
 
virtual void draw (QPainter &)
 
- Protected Member Functions inherited from QtCanvasItem
void update ()
 
void update ()
 

Additional Inherited Members

- Public Types inherited from QtCanvasItem
enum  RttiValues {
  Rtti_Item = 0 , Rtti_Sprite = 1 , Rtti_PolygonalItem = 2 , Rtti_Text = 3 ,
  Rtti_Polygon = 4 , Rtti_Rectangle = 5 , Rtti_Ellipse = 6 , Rtti_Line = 7 ,
  Rtti_Spline = 8 , Rtti_Item = 0 , Rtti_Sprite = 1 , Rtti_PolygonalItem = 2 ,
  Rtti_Text = 3 , Rtti_Polygon = 4 , Rtti_Rectangle = 5 , Rtti_Ellipse = 6 ,
  Rtti_Line = 7 , Rtti_Spline = 8
}
 
enum  RttiValues {
  Rtti_Item = 0 , Rtti_Sprite = 1 , Rtti_PolygonalItem = 2 , Rtti_Text = 3 ,
  Rtti_Polygon = 4 , Rtti_Rectangle = 5 , Rtti_Ellipse = 6 , Rtti_Line = 7 ,
  Rtti_Spline = 8 , Rtti_Item = 0 , Rtti_Sprite = 1 , Rtti_PolygonalItem = 2 ,
  Rtti_Text = 3 , Rtti_Polygon = 4 , Rtti_Rectangle = 5 , Rtti_Ellipse = 6 ,
  Rtti_Line = 7 , Rtti_Spline = 8
}
 

Constructor & Destructor Documentation

◆ QtCanvasText() [1/6]

QtCanvasText::QtCanvasText ( QtCanvas canvas)

◆ QtCanvasText() [2/6]

QtCanvasText::QtCanvasText ( const QString &  t,
QtCanvas canvas 
)

◆ QtCanvasText() [3/6]

QtCanvasText::QtCanvasText ( const QString &  t,
QFont  f,
QtCanvas canvas 
)

◆ ~QtCanvasText() [1/2]

QtCanvasText::~QtCanvasText ( )
virtual

◆ QtCanvasText() [4/6]

QtCanvasText::QtCanvasText ( QtCanvas canvas)

◆ QtCanvasText() [5/6]

QtCanvasText::QtCanvasText ( const QString &  ,
QtCanvas canvas 
)

◆ QtCanvasText() [6/6]

QtCanvasText::QtCanvasText ( const QString &  ,
QFont  ,
QtCanvas canvas 
)

◆ ~QtCanvasText() [2/2]

virtual QtCanvasText::~QtCanvasText ( )
virtual

Member Function Documentation

◆ boundingRect() [1/2]

QRect QtCanvasText::boundingRect ( ) const
virtual

Implements QtCanvasItem.

◆ boundingRect() [2/2]

QRect QtCanvasText::boundingRect ( ) const
virtual

Implements QtCanvasItem.

◆ collidesWith() [1/2]

bool QtCanvasText::collidesWith ( const QtCanvasItem i) const
virtual

Implements QtCanvasItem.

References QtCanvasItem::collidesWith().

+ Here is the call graph for this function:

◆ collidesWith() [2/2]

bool QtCanvasText::collidesWith ( const QtCanvasItem ) const
virtual

Implements QtCanvasItem.

◆ color() [1/2]

QColor QtCanvasText::color ( ) const

◆ color() [2/2]

QColor QtCanvasText::color ( ) const

◆ draw() [1/2]

void QtCanvasText::draw ( QPainter &  painter)
protectedvirtual

Implements QtCanvasItem.

References QtCanvasItem::x(), and QtCanvasItem::y().

+ Here is the call graph for this function:

◆ draw() [2/2]

virtual void QtCanvasText::draw ( QPainter &  )
protectedvirtual

Implements QtCanvasItem.

◆ font() [1/2]

QFont QtCanvasText::font ( ) const

◆ font() [2/2]

QFont QtCanvasText::font ( ) const

◆ moveBy() [1/2]

void QtCanvasText::moveBy ( double  dx,
double  dy 
)
virtual

Reimplemented from QtCanvasItem.

References QtCanvasItem::x(), and QtCanvasItem::y().

+ Here is the call graph for this function:

◆ moveBy() [2/2]

void QtCanvasText::moveBy ( double  dx,
double  dy 
)
virtual

Reimplemented from QtCanvasItem.

◆ rtti() [1/2]

int QtCanvasText::rtti ( ) const
virtual

Reimplemented from QtCanvasItem.

References RTTI.

◆ rtti() [2/2]

int QtCanvasText::rtti ( ) const
virtual

Reimplemented from QtCanvasItem.

◆ setColor() [1/2]

void QtCanvasText::setColor ( const QColor &  c)

◆ setColor() [2/2]

void QtCanvasText::setColor ( const QColor &  )

◆ setFont() [1/2]

void QtCanvasText::setFont ( const QFont &  f)

◆ setFont() [2/2]

void QtCanvasText::setFont ( const QFont &  )

◆ setText() [1/2]

void QtCanvasText::setText ( const QString &  t)

◆ setText() [2/2]

void QtCanvasText::setText ( const QString &  )

◆ setTextFlags() [1/2]

void QtCanvasText::setTextFlags ( int  f)

◆ setTextFlags() [2/2]

void QtCanvasText::setTextFlags ( int  )

◆ text() [1/2]

QString QtCanvasText::text ( ) const

◆ text() [2/2]

QString QtCanvasText::text ( ) const

◆ textFlags() [1/2]

int QtCanvasText::textFlags ( ) const
inline

◆ textFlags() [2/2]

int QtCanvasText::textFlags ( ) const
inline

Member Data Documentation

◆ RTTI

static int QtCanvasText::RTTI = Rtti_Text
static

Referenced by rtti().


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