Computer Assited Medical Intervention Tool Kit  version 5.0
QtCanvasItem Class Referenceabstract

#include <qtcanvas.h>

+ Inheritance diagram for QtCanvasItem:
+ Collaboration diagram for QtCanvasItem:

Public Types

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
}
 

Public Member Functions

bool active () const
 
bool active () const
 
virtual void advance (int stage)
 
virtual void advance (int stage)
 
bool animated () const
 
bool animated () const
 
virtual QRect boundingRect () const =0
 
virtual QRect boundingRect () const =0
 
virtual QRect boundingRectAdvanced () const
 
virtual QRect boundingRectAdvanced () const
 
QtCanvascanvas () const
 
QtCanvascanvas () const
 
virtual bool collidesWith (const QtCanvasItem *) const =0
 
virtual bool collidesWith (const QtCanvasItem *) const =0
 
QtCanvasItemList collisions (bool exact) const
 
QtCanvasItemList collisions (bool exact) const
 
virtual void draw (QPainter &)=0
 
virtual void draw (QPainter &)=0
 
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)
 
virtual void moveBy (double dx, double dy)
 
virtual void moveBy (double dx, double dy)
 
 QtCanvasItem (QtCanvas *canvas)
 
 QtCanvasItem (QtCanvas *canvas)
 
virtual int rtti () const
 
virtual int rtti () const
 
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_Item
 

Protected Member Functions

void update ()
 
void update ()
 

Private Member Functions

virtual void addToChunks ()
 
virtual void addToChunks ()
 
virtual void changeChunks ()
 
virtual void changeChunks ()
 
virtual QPolygon chunks () const
 
virtual QPolygon chunks () const
 
virtual bool collidesWith (const QtCanvasSprite *, const QtCanvasPolygonalItem *, const QtCanvasRectangle *, const QtCanvasEllipse *, const QtCanvasText *) const =0
 
virtual bool collidesWith (const QtCanvasSprite *, const QtCanvasPolygonalItem *, const QtCanvasRectangle *, const QtCanvasEllipse *, const QtCanvasText *) const =0
 
QtCanvasItemExtraextra ()
 
QtCanvasItemExtraextra ()
 
virtual void removeFromChunks ()
 
virtual void removeFromChunks ()
 

Private Attributes

uint act: 1
 
uint ani: 1
 
QtCanvascnv
 
uint ena: 1
 
QtCanvasItemExtraext
 
double myx
 
double myy
 
double myz
 
uint sel: 1
 
uint val: 1
 
uint vis: 1
 

Static Private Attributes

static QtCanvascurrent_canvas
 

Friends

class QtCanvasEllipse
 
class QtCanvasLine
 
class QtCanvasPolygon
 
class QtCanvasPolygonalItem
 
class QtCanvasRectangle
 
class QtCanvasSprite
 
class QtCanvasText
 

Member Enumeration Documentation

◆ RttiValues [1/2]

Enumerator
Rtti_Item 
Rtti_Sprite 
Rtti_PolygonalItem 
Rtti_Text 
Rtti_Polygon 
Rtti_Rectangle 
Rtti_Ellipse 
Rtti_Line 
Rtti_Spline 
Rtti_Item 
Rtti_Sprite 
Rtti_PolygonalItem 
Rtti_Text 
Rtti_Polygon 
Rtti_Rectangle 
Rtti_Ellipse 
Rtti_Line 
Rtti_Spline 

◆ RttiValues [2/2]

Enumerator
Rtti_Item 
Rtti_Sprite 
Rtti_PolygonalItem 
Rtti_Text 
Rtti_Polygon 
Rtti_Rectangle 
Rtti_Ellipse 
Rtti_Line 
Rtti_Spline 
Rtti_Item 
Rtti_Sprite 
Rtti_PolygonalItem 
Rtti_Text 
Rtti_Polygon 
Rtti_Rectangle 
Rtti_Ellipse 
Rtti_Line 
Rtti_Spline 

Constructor & Destructor Documentation

◆ QtCanvasItem() [1/2]

QtCanvasItem::QtCanvasItem ( QtCanvas canvas)

References act, QtCanvas::addItem(), ani, cnv, ena, ext, sel, val, and vis.

+ Here is the call graph for this function:

◆ ~QtCanvasItem() [1/2]

QtCanvasItem::~QtCanvasItem ( )
virtual

References cnv, ext, QtCanvas::removeAnimation(), and QtCanvas::removeItem().

+ Here is the call graph for this function:

◆ QtCanvasItem() [2/2]

QtCanvasItem::QtCanvasItem ( QtCanvas canvas)

◆ ~QtCanvasItem() [2/2]

virtual QtCanvasItem::~QtCanvasItem ( )
virtual

Member Function Documentation

◆ active() [1/2]

bool QtCanvasItem::active ( ) const
inline

References act.

◆ active() [2/2]

bool QtCanvasItem::active ( ) const
inline

References act.

◆ addToChunks() [1/2]

void QtCanvasItem::addToChunks ( )
privatevirtual

Reimplemented in QtCanvasText, QtCanvasText, QtCanvasSprite, and QtCanvasSprite.

References QtCanvas::addItemToChunk(), canvas(), chunks(), isVisible(), val, x(), and y().

Referenced by changeChunks(), moveBy(), QtCanvasPolygon::moveBy(), QtCanvasEllipse::setAngles(), QtCanvasPolygonalItem::setPen(), QtCanvasPolygon::setPoints(), QtCanvasLine::setPoints(), QtCanvasRectangle::setSize(), QtCanvasEllipse::setSize(), and setVisible().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addToChunks() [2/2]

virtual void QtCanvasItem::addToChunks ( )
privatevirtual

◆ advance() [1/2]

void QtCanvasItem::advance ( int  stage)
virtual

Reimplemented in QtCanvasSprite, and QtCanvasSprite.

References ext, moveBy(), QtCanvasItemExtra::vx, and QtCanvasItemExtra::vy.

Referenced by QtCanvas::advance().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ advance() [2/2]

virtual void QtCanvasItem::advance ( int  stage)
virtual

Reimplemented in QtCanvasSprite, and QtCanvasSprite.

◆ animated() [1/2]

bool QtCanvasItem::animated ( ) const

References ani.

◆ animated() [2/2]

bool QtCanvasItem::animated ( ) const

◆ boundingRect() [1/2]

virtual QRect QtCanvasItem::boundingRect ( ) const
pure virtual

Implemented in QtCanvasText, QtCanvasText, QtCanvasPolygonalItem, QtCanvasPolygonalItem, QtCanvasSprite, and QtCanvasSprite.

Referenced by boundingRectAdvanced(), and chunks().

+ Here is the caller graph for this function:

◆ boundingRect() [2/2]

virtual QRect QtCanvasItem::boundingRect ( ) const
pure virtual

◆ boundingRectAdvanced() [1/2]

QRect QtCanvasItem::boundingRectAdvanced ( ) const
virtual

References boundingRect(), x(), xVelocity(), y(), and yVelocity().

Referenced by collision_double_dispatch(), and qt_testCollision().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ boundingRectAdvanced() [2/2]

virtual QRect QtCanvasItem::boundingRectAdvanced ( ) const
virtual

◆ canvas() [1/2]

QtCanvas* QtCanvasItem::canvas ( ) const
inline

References cnv.

Referenced by addToChunks(), QtCanvasSprite::addToChunks(), QtCanvasText::addToChunks(), changeChunks(), QtCanvasSprite::changeChunks(), QtCanvasText::changeChunks(), chunks(), QtCanvasPolygonalItem::chunks(), collisions(), QtCanvasSprite::move(), removeFromChunks(), QtCanvasSprite::removeFromChunks(), and QtCanvasText::removeFromChunks().

+ Here is the caller graph for this function:

◆ canvas() [2/2]

QtCanvas* QtCanvasItem::canvas ( ) const
inline

References cnv.

◆ changeChunks() [1/2]

void QtCanvasItem::changeChunks ( )
privatevirtual

Reimplemented in QtCanvasText, QtCanvasText, QtCanvasSprite, and QtCanvasSprite.

References addToChunks(), canvas(), chunks(), isVisible(), QtCanvas::setChangedChunk(), val, x(), and y().

Referenced by setActive(), QtCanvasPolygonalItem::setBrush(), setEnabled(), setSelected(), setZ(), and update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ changeChunks() [2/2]

virtual void QtCanvasItem::changeChunks ( )
privatevirtual

◆ chunks() [1/2]

virtual QPolygon QtCanvasItem::chunks ( ) const
privatevirtual

◆ chunks() [2/2]

QPolygon QtCanvasItem::chunks ( ) const
privatevirtual

Reimplemented in QtCanvasRectangle, QtCanvasRectangle, QtCanvasPolygonalItem, and QtCanvasPolygonalItem.

References boundingRect(), canvas(), QtCanvas::chunkSize(), and isVisible().

Referenced by addToChunks(), changeChunks(), QtCanvasRectangle::chunks(), collisions(), and removeFromChunks().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ collidesWith() [1/4]

virtual bool QtCanvasItem::collidesWith ( const QtCanvasItem ) const
pure virtual

◆ collidesWith() [2/4]

virtual bool QtCanvasItem::collidesWith ( const QtCanvasItem ) const
pure virtual

◆ collidesWith() [3/4]

virtual bool QtCanvasItem::collidesWith ( const QtCanvasSprite ,
const QtCanvasPolygonalItem ,
const QtCanvasRectangle ,
const QtCanvasEllipse ,
const QtCanvasText  
) const
privatepure virtual

◆ collidesWith() [4/4]

virtual bool QtCanvasItem::collidesWith ( const QtCanvasSprite ,
const QtCanvasPolygonalItem ,
const QtCanvasRectangle ,
const QtCanvasEllipse ,
const QtCanvasText  
) const
privatepure virtual

◆ collisions() [1/2]

QtCanvasItemList QtCanvasItem::collisions ( bool  exact) const

References canvas(), chunks(), and QtCanvas::collisions().

Referenced by QtCanvas::collisions().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ collisions() [2/2]

QtCanvasItemList QtCanvasItem::collisions ( bool  exact) const

◆ draw() [1/2]

virtual void QtCanvasItem::draw ( QPainter &  )
pure virtual

◆ draw() [2/2]

virtual void QtCanvasItem::draw ( QPainter &  )
pure virtual

Implemented in QtCanvasSprite, QtCanvasSprite, QtCanvasText, QtCanvasText, QtCanvasPolygonalItem, and QtCanvasPolygonalItem.

Referenced by QtCanvas::drawCanvasArea().

+ Here is the caller graph for this function:

◆ enabled() [1/2]

bool QtCanvasItem::enabled ( ) const
inline

References ena.

◆ enabled() [2/2]

bool QtCanvasItem::enabled ( ) const
inline

References ena.

◆ extra() [1/2]

QtCanvasItemExtra & QtCanvasItem::extra ( )
private

References ext.

Referenced by setVelocity().

+ Here is the caller graph for this function:

◆ extra() [2/2]

QtCanvasItemExtra& QtCanvasItem::extra ( )
private

◆ hide() [1/2]

void QtCanvasItem::hide ( )

◆ hide() [2/2]

void QtCanvasItem::hide ( )

References setVisible().

Referenced by QtCanvasSprite::move(), QtCanvasSprite::setSequence(), QtCanvasEllipse::~QtCanvasEllipse(), QtCanvasLine::~QtCanvasLine(), QtCanvasPolygon::~QtCanvasPolygon(), and QtCanvasRectangle::~QtCanvasRectangle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isActive() [1/2]

bool QtCanvasItem::isActive ( ) const
inline

References act.

◆ isActive() [2/2]

bool QtCanvasItem::isActive ( ) const
inline

References act.

◆ isEnabled() [1/2]

bool QtCanvasItem::isEnabled ( ) const
inline

References ena.

◆ isEnabled() [2/2]

bool QtCanvasItem::isEnabled ( ) const
inline

References ena.

◆ isSelected() [1/2]

bool QtCanvasItem::isSelected ( ) const
inline

References sel.

◆ isSelected() [2/2]

bool QtCanvasItem::isSelected ( ) const
inline

References sel.

◆ isVisible() [1/2]

bool QtCanvasItem::isVisible ( ) const
inline

References vis.

◆ isVisible() [2/2]

bool QtCanvasItem::isVisible ( ) const
inline

References vis.

Referenced by addToChunks(), QtCanvasSprite::addToChunks(), QtCanvasText::addToChunks(), changeChunks(), QtCanvasSprite::changeChunks(), QtCanvasText::changeChunks(), chunks(), QtCanvasSprite::move(), removeFromChunks(), QtCanvasSprite::removeFromChunks(), QtCanvasText::removeFromChunks(), setCanvas(), and QtCanvasSprite::setSequence().

+ Here is the caller graph for this function:

◆ move() [1/2]

void QtCanvasItem::move ( double  x,
double  y 
)

References moveBy(), myx, myy, x(), and y().

Referenced by MainWindow::addEllipse(), MainWindow::addLine(), MainWindow::addText(), QtCanvasSprite::move(), QtCanvasRectangle::QtCanvasRectangle(), setX(), and setY().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ move() [2/2]

void QtCanvasItem::move ( double  x,
double  y 
)

◆ moveBy() [1/2]

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

Reimplemented in QtCanvasText, QtCanvasText, QtCanvasLine, QtCanvasLine, QtCanvasPolygon, and QtCanvasPolygon.

References addToChunks(), myx, myy, and removeFromChunks().

Referenced by advance(), CanvasView::contentsMouseMoveEvent(), move(), and QtCanvasLine::moveBy().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ moveBy() [2/2]

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

◆ removeFromChunks() [1/2]

virtual void QtCanvasItem::removeFromChunks ( )
privatevirtual

◆ removeFromChunks() [2/2]

void QtCanvasItem::removeFromChunks ( )
privatevirtual

Reimplemented in QtCanvasText, QtCanvasText, QtCanvasSprite, and QtCanvasSprite.

References canvas(), chunks(), isVisible(), QtCanvas::removeItemFromChunk(), x(), and y().

Referenced by QtCanvasPolygonalItem::invalidate(), moveBy(), QtCanvasPolygon::moveBy(), QtCanvasEllipse::setAngles(), QtCanvasPolygonalItem::setPen(), QtCanvasPolygon::setPoints(), QtCanvasLine::setPoints(), QtCanvasRectangle::setSize(), QtCanvasEllipse::setSize(), and setVisible().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rtti() [1/2]

◆ rtti() [2/2]

int QtCanvasItem::rtti ( ) const
virtual

Reimplemented in QtCanvasText, QtCanvasText, QtCanvasEllipse, QtCanvasEllipse, QtCanvasLine, QtCanvasLine, QtCanvasSpline, QtCanvasSpline, QtCanvasPolygon, QtCanvasPolygon, QtCanvasRectangle, QtCanvasRectangle, QtCanvasPolygonalItem, QtCanvasPolygonalItem, QtCanvasSprite, and QtCanvasSprite.

References RTTI.

Referenced by MainWindow::itemClicked(), and MainWindow::valueChanged().

+ Here is the caller graph for this function:

◆ selected() [1/2]

bool QtCanvasItem::selected ( ) const
inline

References sel.

◆ selected() [2/2]

bool QtCanvasItem::selected ( ) const
inline

References sel.

◆ setActive() [1/2]

virtual void QtCanvasItem::setActive ( bool  yes)
virtual

◆ setActive() [2/2]

void QtCanvasItem::setActive ( bool  yes)
virtual

References act, and changeChunks().

+ Here is the call graph for this function:

◆ setAnimated() [1/2]

void QtCanvasItem::setAnimated ( bool  y)
virtual

References QtCanvas::addAnimation(), ani, cnv, QtCanvas::removeAnimation(), and y().

Referenced by QtCanvasSprite::setFrameAnimation(), and setVelocity().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setAnimated() [2/2]

virtual void QtCanvasItem::setAnimated ( bool  y)
virtual

◆ setCanvas() [1/2]

virtual void QtCanvasItem::setCanvas ( QtCanvas )
virtual

◆ setCanvas() [2/2]

void QtCanvasItem::setCanvas ( QtCanvas c)
virtual

References QtCanvas::addAnimation(), QtCanvas::addItem(), cnv, ext, isVisible(), QtCanvas::removeAnimation(), QtCanvas::removeItem(), and setVisible().

+ Here is the call graph for this function:

◆ setEnabled() [1/2]

virtual void QtCanvasItem::setEnabled ( bool  yes)
virtual

◆ setEnabled() [2/2]

void QtCanvasItem::setEnabled ( bool  yes)
virtual

References changeChunks(), and ena.

+ Here is the call graph for this function:

◆ setSelected() [1/2]

virtual void QtCanvasItem::setSelected ( bool  yes)
virtual

◆ setSelected() [2/2]

void QtCanvasItem::setSelected ( bool  yes)
virtual

References changeChunks(), and sel.

+ Here is the call graph for this function:

◆ setVelocity() [1/2]

void QtCanvasItem::setVelocity ( double  vx,
double  vy 
)
virtual

References ani, ext, extra(), setAnimated(), QtCanvasItemExtra::vx, and QtCanvasItemExtra::vy.

Referenced by setXVelocity(), and setYVelocity().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setVelocity() [2/2]

virtual void QtCanvasItem::setVelocity ( double  vx,
double  vy 
)
virtual

◆ setVisible() [1/2]

virtual void QtCanvasItem::setVisible ( bool  yes)
virtual

◆ setVisible() [2/2]

void QtCanvasItem::setVisible ( bool  yes)
virtual

References addToChunks(), removeFromChunks(), and vis.

Referenced by hide(), setCanvas(), and show().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setX() [1/2]

void QtCanvasItem::setX ( double  a)
inline

References a, move(), and y().

Referenced by MainWindow::valueChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setX() [2/2]

void QtCanvasItem::setX ( double  a)
inline

References a, move(), and y().

+ Here is the call graph for this function:

◆ setXVelocity() [1/2]

void QtCanvasItem::setXVelocity ( double  vx)
inline

References setVelocity(), and yVelocity().

+ Here is the call graph for this function:

◆ setXVelocity() [2/2]

void QtCanvasItem::setXVelocity ( double  vx)
inline

References setVelocity(), and yVelocity().

+ Here is the call graph for this function:

◆ setY() [1/2]

void QtCanvasItem::setY ( double  a)
inline

References a, move(), and x().

+ Here is the call graph for this function:

◆ setY() [2/2]

void QtCanvasItem::setY ( double  a)
inline

References a, move(), and x().

Referenced by MainWindow::valueChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setYVelocity() [1/2]

void QtCanvasItem::setYVelocity ( double  vy)
inline

References setVelocity(), and xVelocity().

+ Here is the call graph for this function:

◆ setYVelocity() [2/2]

void QtCanvasItem::setYVelocity ( double  vy)
inline

References setVelocity(), and xVelocity().

+ Here is the call graph for this function:

◆ setZ() [1/2]

void QtCanvasItem::setZ ( double  a)
inline

References a, changeChunks(), and myz.

+ Here is the call graph for this function:

◆ setZ() [2/2]

void QtCanvasItem::setZ ( double  a)
inline

References a, changeChunks(), and myz.

Referenced by MainWindow::addEllipse(), MainWindow::addLine(), MainWindow::addRectangle(), MainWindow::addText(), and MainWindow::valueChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ show() [1/2]

void QtCanvasItem::show ( )

◆ show() [2/2]

void QtCanvasItem::show ( )

References setVisible().

Referenced by MainWindow::addEllipse(), MainWindow::addLine(), MainWindow::addRectangle(), MainWindow::addText(), QtCanvas::collisions(), QtCanvasSprite::move(), and QtCanvasSprite::setSequence().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ update() [1/2]

void QtCanvasItem::update ( )
inlineprotected

References changeChunks().

+ Here is the call graph for this function:

◆ update() [2/2]

void QtCanvasItem::update ( )
inlineprotected

References changeChunks().

+ Here is the call graph for this function:

◆ visible() [1/2]

bool QtCanvasItem::visible ( ) const
inline

References vis.

◆ visible() [2/2]

bool QtCanvasItem::visible ( ) const
inline

References vis.

◆ x() [1/2]

double QtCanvasItem::x ( ) const
inline

References myx.

◆ x() [2/2]

◆ xVelocity() [1/2]

double QtCanvasItem::xVelocity ( ) const

References ext, and QtCanvasItemExtra::vx.

Referenced by QtCanvasSprite::advance(), QtCanvasPolygonalItem::areaPointsAdvanced(), boundingRectAdvanced(), collision_double_dispatch(), and setYVelocity().

+ Here is the caller graph for this function:

◆ xVelocity() [2/2]

double QtCanvasItem::xVelocity ( ) const

◆ y() [1/2]

double QtCanvasItem::y ( ) const
inline

References myy.

◆ y() [2/2]

◆ yVelocity() [1/2]

double QtCanvasItem::yVelocity ( ) const

◆ yVelocity() [2/2]

double QtCanvasItem::yVelocity ( ) const

References ext, and QtCanvasItemExtra::vy.

Referenced by QtCanvasSprite::advance(), QtCanvasPolygonalItem::areaPointsAdvanced(), boundingRectAdvanced(), collision_double_dispatch(), and setXVelocity().

+ Here is the caller graph for this function:

◆ z() [1/2]

double QtCanvasItem::z ( ) const
inline

References myz.

Referenced by MainWindow::itemClicked(), MainWindow::itemMoved(), and QtCanvasItemLess::operator()().

+ Here is the caller graph for this function:

◆ z() [2/2]

double QtCanvasItem::z ( ) const
inline

References myz.

Friends And Related Function Documentation

◆ QtCanvasEllipse

◆ QtCanvasLine

QtCanvasLine
friend

◆ QtCanvasPolygon

◆ QtCanvasPolygonalItem

◆ QtCanvasRectangle

◆ QtCanvasSprite

◆ QtCanvasText

QtCanvasText
friend

Member Data Documentation

◆ act

uint QtCanvasItem::act
private

◆ ani

uint QtCanvasItem::ani
private

◆ cnv

QtCanvas * QtCanvasItem::cnv
private

◆ current_canvas

static QtCanvas * QtCanvasItem::current_canvas
staticprivate

◆ ena

uint QtCanvasItem::ena
private

◆ ext

◆ myx

double QtCanvasItem::myx
private

◆ myy

double QtCanvasItem::myy
private

◆ myz

double QtCanvasItem::myz
private

Referenced by setZ(), and z().

◆ RTTI

static int QtCanvasItem::RTTI = Rtti_Item
static

Referenced by rtti().

◆ sel

uint QtCanvasItem::sel
private

◆ val

◆ vis

uint QtCanvasItem::vis
private

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