#include <qtcanvas.h>
Inherited by QtCanvasPolygonalItem, QtCanvasPolygonalItem, QtCanvasSprite, QtCanvasSprite, QtCanvasText, and QtCanvasText.
|
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
} |
|
◆ 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 | |
◆ QtCanvasItem() [1/2]
QtCanvasItem::QtCanvasItem |
( |
QtCanvas * |
canvas | ) |
|
◆ ~QtCanvasItem() [1/2]
QtCanvasItem::~QtCanvasItem |
( |
| ) |
|
|
virtual |
◆ QtCanvasItem() [2/2]
QtCanvasItem::QtCanvasItem |
( |
QtCanvas * |
canvas | ) |
|
◆ ~QtCanvasItem() [2/2]
virtual QtCanvasItem::~QtCanvasItem |
( |
| ) |
|
|
virtual |
◆ active() [1/2]
bool QtCanvasItem::active |
( |
| ) |
const |
|
inline |
◆ active() [2/2]
bool QtCanvasItem::active |
( |
| ) |
const |
|
inline |
◆ 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(), collision_double_dispatch(), QtCanvasSprite::image(), moveBy(), QtCanvasPolygon::moveBy(), QtCanvasItemExtra::QtCanvasItemExtra(), QtCanvasEllipse::setAngles(), QtCanvasPolygonalItem::setPen(), QtCanvasPolygon::setPoints(), QtCanvasLine::setPoints(), QtCanvasRectangle::setSize(), QtCanvasEllipse::setSize(), setVisible(), QtCanvasText::textFlags(), and update().
◆ addToChunks() [2/2]
virtual void QtCanvasItem::addToChunks |
( |
| ) |
|
|
privatevirtual |
◆ advance() [1/2]
void QtCanvasItem::advance |
( |
int |
stage | ) |
|
|
virtual |
◆ advance() [2/2]
virtual void QtCanvasItem::advance |
( |
int |
stage | ) |
|
|
virtual |
◆ animated() [1/2]
bool QtCanvasItem::animated |
( |
| ) |
const |
◆ 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(), QtCanvasPolygonalItem::brush(), chunks(), collision_double_dispatch(), QtCanvasSprite::frameCount(), and QtCanvasText::textFlags().
◆ boundingRect() [2/2]
virtual QRect QtCanvasItem::boundingRect |
( |
| ) |
const |
|
pure virtual |
◆ boundingRectAdvanced() [1/2]
QRect QtCanvasItem::boundingRectAdvanced |
( |
| ) |
const |
|
virtual |
◆ boundingRectAdvanced() [2/2]
virtual QRect QtCanvasItem::boundingRectAdvanced |
( |
| ) |
const |
|
virtual |
◆ canvas() [1/2]
QtCanvas* QtCanvasItem::canvas |
( |
| ) |
const |
|
inline |
References cnv.
Referenced by QPolygonalProcessor::add(), addToChunks(), QtCanvasSprite::addToChunks(), QtCanvasText::addToChunks(), QtCanvasEllipse::angleLength(), changeChunks(), QtCanvasSprite::changeChunks(), QtCanvasText::changeChunks(), chunks(), QtCanvasPolygonalItem::chunks(), collision_double_dispatch(), collisions(), QtCanvasPixmapArray::count(), QPolygonalProcessor::doSpans(), QtCanvasLine::endPoint(), QtCanvasSprite::image(), QtCanvasPolygonalItem::isValid(), QtCanvasSprite::move(), QPolygonalProcessor::QPolygonalProcessor(), QtCanvasItemExtra::QtCanvasItemExtra(), QtCanvasRectangle::rect(), removeFromChunks(), QtCanvasSprite::removeFromChunks(), and QtCanvasText::removeFromChunks().
◆ canvas() [2/2]
QtCanvas* QtCanvasItem::canvas |
( |
| ) |
const |
|
inline |
◆ 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 collision_double_dispatch(), QtCanvasSprite::image(), QtCanvasItemExtra::QtCanvasItemExtra(), setActive(), QtCanvasPolygonalItem::setBrush(), setEnabled(), setSelected(), setZ(), QtCanvasText::textFlags(), and update().
◆ 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(), collision_double_dispatch(), collisions(), QPolygonalProcessor::doSpans(), QtCanvasPolygonalItem::isValid(), QtCanvasRectangle::rect(), removeFromChunks(), QtCanvas::sameChunk(), and update().
◆ collidesWith() [1/4]
virtual bool QtCanvasItem::collidesWith |
( |
const QtCanvasItem * |
| ) |
const |
|
pure virtual |
Implemented in QtCanvasText, QtCanvasText, QtCanvasEllipse, QtCanvasEllipse, QtCanvasRectangle, QtCanvasRectangle, QtCanvasPolygonalItem, QtCanvasPolygonalItem, QtCanvasSprite, and QtCanvasSprite.
Referenced by QtCanvasEllipse::angleLength(), QtCanvasSprite::collidesWith(), QtCanvasPolygonalItem::collidesWith(), QtCanvasRectangle::collidesWith(), QtCanvasEllipse::collidesWith(), QtCanvasText::collidesWith(), collision_double_dispatch(), QtCanvas::collisions(), QtCanvasSprite::frameCount(), QtCanvasSprite::image(), QtCanvasPolygonalItem::isValid(), QtCanvasRectangle::rect(), setYVelocity(), QtCanvasText::textFlags(), and update().
◆ collidesWith() [2/4]
virtual bool QtCanvasItem::collidesWith |
( |
const QtCanvasItem * |
| ) |
const |
|
pure virtual |
◆ collidesWith() [3/4]
◆ collidesWith() [4/4]
◆ collisions() [1/2]
◆ collisions() [2/2]
◆ draw() [1/2]
virtual void QtCanvasItem::draw |
( |
QPainter & |
| ) |
|
|
pure virtual |
◆ draw() [2/2]
virtual void QtCanvasItem::draw |
( |
QPainter & |
| ) |
|
|
pure virtual |
Implemented in QtCanvasText, QtCanvasText, QtCanvasPolygonalItem, QtCanvasPolygonalItem, QtCanvasSprite, and QtCanvasSprite.
Referenced by QtCanvasPolygonalItem::brush(), QtCanvas::drawCanvasArea(), QtCanvasSprite::image(), scm(), setYVelocity(), and QtCanvasText::textFlags().
◆ enabled() [1/2]
bool QtCanvasItem::enabled |
( |
| ) |
const |
|
inline |
◆ enabled() [2/2]
bool QtCanvasItem::enabled |
( |
| ) |
const |
|
inline |
◆ extra() [1/2]
◆ extra() [2/2]
◆ hide() [1/2]
void QtCanvasItem::hide |
( |
| ) |
|
◆ hide() [2/2]
void QtCanvasItem::hide |
( |
| ) |
|
◆ isActive() [1/2]
bool QtCanvasItem::isActive |
( |
| ) |
const |
|
inline |
◆ isActive() [2/2]
bool QtCanvasItem::isActive |
( |
| ) |
const |
|
inline |
◆ isEnabled() [1/2]
bool QtCanvasItem::isEnabled |
( |
| ) |
const |
|
inline |
◆ isEnabled() [2/2]
bool QtCanvasItem::isEnabled |
( |
| ) |
const |
|
inline |
◆ isSelected() [1/2]
bool QtCanvasItem::isSelected |
( |
| ) |
const |
|
inline |
◆ isSelected() [2/2]
bool QtCanvasItem::isSelected |
( |
| ) |
const |
|
inline |
◆ isVisible() [1/2]
bool QtCanvasItem::isVisible |
( |
| ) |
const |
|
inline |
◆ isVisible() [2/2]
bool QtCanvasItem::isVisible |
( |
| ) |
const |
|
inline |
References setSelected(), and vis.
Referenced by addToChunks(), QtCanvasSprite::addToChunks(), QtCanvasText::addToChunks(), changeChunks(), QtCanvasSprite::changeChunks(), QtCanvasText::changeChunks(), chunks(), collision_double_dispatch(), QtCanvasSprite::move(), QtCanvasItemExtra::QtCanvasItemExtra(), removeFromChunks(), QtCanvasSprite::removeFromChunks(), QtCanvasText::removeFromChunks(), setCanvas(), and QtCanvasSprite::setSequence().
◆ move() [1/2]
void QtCanvasItem::move |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
References moveBy(), myx, and myy.
Referenced by MainWindow::addEllipse(), MainWindow::addLine(), MainWindow::addText(), QtCanvasPixmapArray::count(), QPolygonalProcessor::doSpans(), QtCanvasSprite::move(), QtCanvasItemExtra::QtCanvasItemExtra(), QtCanvasRectangle::QtCanvasRectangle(), setX(), setY(), and z().
◆ 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(), QtCanvasEllipse::angleLength(), CanvasView::contentsMouseMoveEvent(), QPolygonalProcessor::doSpans(), QtCanvasLine::endPoint(), move(), QtCanvasLine::moveBy(), QtCanvasItemExtra::QtCanvasItemExtra(), QtCanvasRectangle::rect(), and z().
◆ 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 collision_double_dispatch(), QtCanvasSprite::image(), QtCanvasPolygonalItem::invalidate(), moveBy(), QtCanvasPolygon::moveBy(), QtCanvasItemExtra::QtCanvasItemExtra(), QtCanvasEllipse::setAngles(), QtCanvasPolygonalItem::setPen(), QtCanvasPolygon::setPoints(), QtCanvasLine::setPoints(), QtCanvasRectangle::setSize(), QtCanvasEllipse::setSize(), setVisible(), QtCanvasText::textFlags(), and update().
◆ rtti() [1/2]
virtual int QtCanvasItem::rtti |
( |
| ) |
const |
|
virtual |
Reimplemented in QtCanvasText, QtCanvasText, QtCanvasEllipse, QtCanvasEllipse, QtCanvasLine, QtCanvasLine, QtCanvasSpline, QtCanvasSpline, QtCanvasPolygon, QtCanvasPolygon, QtCanvasRectangle, QtCanvasRectangle, QtCanvasPolygonalItem, QtCanvasPolygonalItem, QtCanvasSprite, and QtCanvasSprite.
◆ 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, QtCanvasText::RTTI, and Rtti_Item.
Referenced by QtCanvasEllipse::angleLength(), QtCanvasPolygonalItem::brush(), QPolygonalProcessor::doSpans(), QtCanvasLine::endPoint(), QtCanvasSprite::frameCount(), MainWindow::itemClicked(), QtCanvasRectangle::rect(), QtCanvasText::textFlags(), and MainWindow::valueChanged().
◆ selected() [1/2]
bool QtCanvasItem::selected |
( |
| ) |
const |
|
inline |
◆ selected() [2/2]
bool QtCanvasItem::selected |
( |
| ) |
const |
|
inline |
◆ setActive() [1/2]
virtual void QtCanvasItem::setActive |
( |
bool |
yes | ) |
|
|
virtual |
◆ setActive() [2/2]
void QtCanvasItem::setActive |
( |
bool |
yes | ) |
|
|
virtual |
◆ setAnimated() [1/2]
void QtCanvasItem::setAnimated |
( |
bool |
y | ) |
|
|
virtual |
◆ 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 |
◆ setEnabled() [1/2]
virtual void QtCanvasItem::setEnabled |
( |
bool |
yes | ) |
|
|
virtual |
◆ setEnabled() [2/2]
void QtCanvasItem::setEnabled |
( |
bool |
yes | ) |
|
|
virtual |
◆ setSelected() [1/2]
virtual void QtCanvasItem::setSelected |
( |
bool |
yes | ) |
|
|
virtual |
◆ setSelected() [2/2]
void QtCanvasItem::setSelected |
( |
bool |
yes | ) |
|
|
virtual |
◆ setVelocity() [1/2]
void QtCanvasItem::setVelocity |
( |
double |
vx, |
|
|
double |
vy |
|
) |
| |
|
virtual |
◆ 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 |
◆ setX() [1/2]
void QtCanvasItem::setX |
( |
double |
a | ) |
|
|
inline |
◆ setX() [2/2]
void QtCanvasItem::setX |
( |
double |
a | ) |
|
|
inline |
◆ setXVelocity() [1/2]
void QtCanvasItem::setXVelocity |
( |
double |
vx | ) |
|
|
inline |
◆ setXVelocity() [2/2]
void QtCanvasItem::setXVelocity |
( |
double |
vx | ) |
|
|
inline |
◆ setY() [1/2]
void QtCanvasItem::setY |
( |
double |
a | ) |
|
|
inline |
◆ setY() [2/2]
void QtCanvasItem::setY |
( |
double |
a | ) |
|
|
inline |
◆ setYVelocity() [1/2]
void QtCanvasItem::setYVelocity |
( |
double |
vy | ) |
|
|
inline |
References advance(), collidesWith(), collisions(), draw(), hide(), setCanvas(), setVelocity(), setVisible(), show(), xVelocity(), and yVelocity().
◆ setYVelocity() [2/2]
void QtCanvasItem::setYVelocity |
( |
double |
vy | ) |
|
|
inline |
References advance(), collidesWith(), collisions(), draw(), hide(), setCanvas(), setVelocity(), setVisible(), show(), xVelocity(), and yVelocity().
◆ setZ() [1/2]
void QtCanvasItem::setZ |
( |
double |
a | ) |
|
|
inline |
◆ setZ() [2/2]
void QtCanvasItem::setZ |
( |
double |
a | ) |
|
|
inline |
◆ show() [1/2]
void QtCanvasItem::show |
( |
| ) |
|
◆ show() [2/2]
void QtCanvasItem::show |
( |
| ) |
|
◆ update() [1/2]
void QtCanvasItem::update |
( |
| ) |
|
|
inlineprotected |
References act, addToChunks(), ani, changeChunks(), chunks(), cnv, collidesWith(), current_canvas, ena, ext, extra(), myx, myy, myz, removeFromChunks(), sel, val, vis, x(), and y().
◆ update() [2/2]
void QtCanvasItem::update |
( |
| ) |
|
|
inlineprotected |
◆ visible() [1/2]
bool QtCanvasItem::visible |
( |
| ) |
const |
|
inline |
◆ visible() [2/2]
bool QtCanvasItem::visible |
( |
| ) |
const |
|
inline |
◆ x() [1/2]
double QtCanvasItem::x |
( |
| ) |
const |
|
inline |
◆ x() [2/2]
double QtCanvasItem::x |
( |
| ) |
const |
|
inline |
References myx.
Referenced by addToChunks(), QtCanvasSprite::advance(), QtCanvasRectangle::areaPoints(), QtCanvasLine::areaPoints(), QtCanvasEllipse::areaPoints(), QtCanvasPolygonalItem::areaPointsAdvanced(), boundingRectAdvanced(), changeChunks(), collision_double_dispatch(), QtCanvas::collisions(), QtCanvasPixmapArray::count(), QPolygonalProcessor::doSpans(), QtCanvasText::draw(), QtCanvasRectangle::drawShape(), QtCanvasLine::drawShape(), QtCanvasEllipse::drawShape(), QtCanvasPolygonalItem::isValid(), MainWindow::itemClicked(), MainWindow::itemMoved(), QtCanvasSprite::leftEdge(), QtCanvasPolygon::moveBy(), QtCanvasText::moveBy(), QtCanvasPolygon::points(), QtCanvasItemExtra::QtCanvasItemExtra(), QtCanvasRectangle::rect(), removeFromChunks(), QtCanvasSprite::setFrame(), QtCanvasPixmap::setOffset(), QtCanvasPolygon::setPoints(), QtCanvasText::setRect(), setY(), update(), and z().
◆ xVelocity() [1/2]
double QtCanvasItem::xVelocity |
( |
| ) |
const |
◆ xVelocity() [2/2]
double QtCanvasItem::xVelocity |
( |
| ) |
const |
◆ y() [1/2]
double QtCanvasItem::y |
( |
| ) |
const |
|
inline |
◆ y() [2/2]
double QtCanvasItem::y |
( |
| ) |
const |
|
inline |
References myy.
Referenced by addToChunks(), QtCanvasSprite::advance(), QtCanvasRectangle::areaPoints(), QtCanvasLine::areaPoints(), QtCanvasEllipse::areaPoints(), QtCanvasPolygonalItem::areaPointsAdvanced(), boundingRectAdvanced(), changeChunks(), collision_double_dispatch(), QtCanvas::collisions(), QtCanvasPixmapArray::count(), QPolygonalProcessor::doSpans(), QtCanvasText::draw(), QtCanvasRectangle::drawShape(), QtCanvasLine::drawShape(), QtCanvasEllipse::drawShape(), QtCanvasPolygonalItem::isValid(), MainWindow::itemClicked(), MainWindow::itemMoved(), QtCanvasPolygon::moveBy(), QtCanvasText::moveBy(), QtCanvasPolygon::points(), QtCanvasItemExtra::QtCanvasItemExtra(), QtCanvasRectangle::rect(), removeFromChunks(), QtPolygonScanner::scan(), QtCanvasSprite::setFrame(), QtCanvasPixmap::setOffset(), QtCanvasPolygon::setPoints(), QtCanvasText::setRect(), setX(), QtCanvasSprite::topEdge(), update(), and z().
◆ yVelocity() [1/2]
double QtCanvasItem::yVelocity |
( |
| ) |
const |
◆ yVelocity() [2/2]
double QtCanvasItem::yVelocity |
( |
| ) |
const |
◆ z() [1/2]
double QtCanvasItem::z |
( |
| ) |
const |
|
inline |
◆ z() [2/2]
double QtCanvasItem::z |
( |
| ) |
const |
|
inline |
◆ QtCanvasEllipse
◆ QtCanvasLine
◆ QtCanvasPolygon
◆ QtCanvasPolygonalItem
◆ QtCanvasRectangle
◆ QtCanvasSprite
◆ QtCanvasText
◆ act
◆ ani
◆ cnv
◆ current_canvas
static QtCanvas * QtCanvasItem::current_canvas |
|
staticprivate |
◆ ena
◆ ext
◆ myx
◆ myy
◆ myz
◆ RTTI
◆ sel
◆ val
◆ vis
The documentation for this class was generated from the following files: