#include <qtcanvas.h>
|
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(), moveBy(), QtCanvasPolygon::moveBy(), QtCanvasEllipse::setAngles(), QtCanvasPolygonalItem::setPen(), QtCanvasPolygon::setPoints(), QtCanvasLine::setPoints(), QtCanvasRectangle::setSize(), QtCanvasEllipse::setSize(), and setVisible().
◆ 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 |
◆ 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 addToChunks(), QtCanvasSprite::addToChunks(), QtCanvasText::addToChunks(), changeChunks(), QtCanvasSprite::changeChunks(), QtCanvasText::changeChunks(), chunks(), QtCanvasPolygonalItem::chunks(), collisions(), QtCanvasSprite::move(), 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 setActive(), QtCanvasPolygonalItem::setBrush(), setEnabled(), setSelected(), setZ(), 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(), collisions(), and removeFromChunks().
◆ 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 QtCanvasSprite::collidesWith(), QtCanvasPolygonalItem::collidesWith(), QtCanvasRectangle::collidesWith(), QtCanvasEllipse::collidesWith(), QtCanvasText::collidesWith(), and QtCanvas::collisions().
◆ 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 |
◆ 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 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().
◆ 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().
◆ 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().
◆ 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().
◆ 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.
Referenced by MainWindow::itemClicked(), 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 |
◆ setYVelocity() [2/2]
void QtCanvasItem::setYVelocity |
( |
double |
vy | ) |
|
|
inline |
◆ 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 |
◆ 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(), QtCanvasText::draw(), QtCanvasRectangle::drawShape(), QtCanvasLine::drawShape(), QtCanvasEllipse::drawShape(), MainWindow::itemClicked(), MainWindow::itemMoved(), QtCanvasSprite::leftEdge(), move(), QtCanvasSprite::move(), QtCanvasPolygon::moveBy(), QtCanvasText::moveBy(), QtCanvasPolygon::points(), QtCanvasRectangle::QtCanvasRectangle(), QtCanvasRectangle::rect(), removeFromChunks(), QtCanvasSprite::setFrame(), QtCanvasPolygon::setPoints(), QtCanvasText::setRect(), and setY().
◆ 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(), QtCanvasText::draw(), QtCanvasRectangle::drawShape(), QtCanvasLine::drawShape(), QtCanvasEllipse::drawShape(), MainWindow::itemClicked(), MainWindow::itemMoved(), move(), QtCanvasSprite::move(), QtCanvasPolygon::moveBy(), QtCanvasText::moveBy(), QtCanvasPolygon::points(), QtCanvasRectangle::QtCanvasRectangle(), QtCanvasRectangle::rect(), removeFromChunks(), setAnimated(), QtCanvasSprite::setFrame(), QtCanvasPolygon::setPoints(), QtCanvasText::setRect(), setX(), and QtCanvasSprite::topEdge().
◆ 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: