#include <qtcanvas.h>
Inheritance diagram for QtCanvasPolygonalItem:
Collaboration diagram for QtCanvasPolygonalItem:Public Member Functions | |
| virtual QPolygon | areaPoints () const =0 |
| virtual QPolygon | areaPoints () const =0 |
| virtual QPolygon | areaPointsAdvanced () const |
| virtual QPolygon | areaPointsAdvanced () const |
| QRect | boundingRect () const |
| QRect | boundingRect () const |
| QBrush | brush () const |
| QBrush | brush () const |
| bool | collidesWith (const QtCanvasItem *) const |
| bool | collidesWith (const QtCanvasItem *) const |
| QPen | pen () const |
| QPen | pen () const |
| QtCanvasPolygonalItem (QtCanvas *canvas) | |
| QtCanvasPolygonalItem (QtCanvas *canvas) | |
| int | rtti () const |
| int | rtti () const |
| virtual void | setBrush (QBrush b) |
| virtual void | setBrush (QBrush b) |
| virtual void | setPen (QPen p) |
| virtual void | setPen (QPen p) |
| virtual | ~QtCanvasPolygonalItem () |
| virtual | ~QtCanvasPolygonalItem () |
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 |
| QtCanvas * | canvas () const |
| QtCanvas * | canvas () 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) |
| virtual void | moveBy (double dx, double dy) |
| virtual void | moveBy (double dx, double dy) |
| 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_PolygonalItem |
Static Public Attributes inherited from QtCanvasItem | |
| static int | RTTI = Rtti_Item |
Protected Member Functions | |
| void | draw (QPainter &) |
| void | draw (QPainter &) |
| virtual void | drawShape (QPainter &)=0 |
| virtual void | drawShape (QPainter &)=0 |
| void | invalidate () |
| void | invalidate () |
| bool | isValid () const |
| bool | isValid () const |
| void | setWinding (bool) |
| void | setWinding (bool) |
| bool | winding () const |
| bool | winding () const |
Protected Member Functions inherited from QtCanvasItem | |
| void | update () |
| void | update () |
Private Member Functions | |
| QPolygon | chunks () const |
| QPolygon | chunks () const |
| bool | collidesWith (const QtCanvasSprite *, const QtCanvasPolygonalItem *, const QtCanvasRectangle *, const QtCanvasEllipse *, const QtCanvasText *) const |
| bool | collidesWith (const QtCanvasSprite *, const QtCanvasPolygonalItem *, const QtCanvasRectangle *, const QtCanvasEllipse *, const QtCanvasText *) const |
| void | scanPolygon (const QPolygon &pa, int winding, QPolygonalProcessor &process) const |
| void | scanPolygon (const QPolygon &pa, int winding, QPolygonalProcessor &process) const |
Private Attributes | |
| QBrush | br |
| QPen | pn |
| uint | wind: 1 |
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 } |
|
virtual |
| QtCanvasPolygonalItem::QtCanvasPolygonalItem | ( | QtCanvas * | canvas | ) |
|
virtual |
|
pure virtual |
Implemented in QtCanvasEllipse, QtCanvasEllipse, QtCanvasLine, QtCanvasLine, QtCanvasPolygon, QtCanvasPolygon, QtCanvasRectangle, and QtCanvasRectangle.
Referenced by areaPointsAdvanced(), boundingRect(), and chunks().
Here is the caller graph for this function:
|
pure virtual |
Implemented in QtCanvasEllipse, QtCanvasEllipse, QtCanvasLine, QtCanvasLine, QtCanvasPolygon, QtCanvasPolygon, QtCanvasRectangle, and QtCanvasRectangle.
|
virtual |
References areaPoints(), QtCanvasItem::x(), QtCanvasItem::xVelocity(), QtCanvasItem::y(), and QtCanvasItem::yVelocity().
Referenced by collision_double_dispatch().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
|
virtual |
|
virtual |
Implements QtCanvasItem.
|
inline |
References br.
|
inline |
References br.
Referenced by MainWindow::itemClicked(), and MainWindow::valueChanged().
Here is the caller graph for this function:
|
privatevirtual |
Reimplemented from QtCanvasItem.
Reimplemented in QtCanvasRectangle, and QtCanvasRectangle.
References areaPoints(), QtCanvasItem::canvas(), QPolygonalProcessor::result, scanPolygon(), and wind.
Here is the call graph for this function:
|
privatevirtual |
Reimplemented from QtCanvasItem.
Reimplemented in QtCanvasRectangle.
|
virtual |
Implements QtCanvasItem.
Reimplemented in QtCanvasEllipse, QtCanvasEllipse, QtCanvasRectangle, and QtCanvasRectangle.
References QtCanvasItem::collidesWith().
Here is the call graph for this function:
|
virtual |
Implements QtCanvasItem.
Reimplemented in QtCanvasEllipse, and QtCanvasRectangle.
|
privatevirtual |
Implements QtCanvasItem.
Reimplemented in QtCanvasEllipse, and QtCanvasRectangle.
|
privatevirtual |
Implements QtCanvasItem.
Reimplemented in QtCanvasEllipse, QtCanvasEllipse, QtCanvasRectangle, and QtCanvasRectangle.
References collision_double_dispatch().
Here is the call graph for this function:
|
protectedvirtual |
Implements QtCanvasItem.
References br, drawShape(), and pn.
Here is the call graph for this function:
|
protectedvirtual |
Implements QtCanvasItem.
|
protectedpure virtual |
Implemented in QtCanvasEllipse, QtCanvasEllipse, QtCanvasLine, QtCanvasLine, QtCanvasPolygon, QtCanvasPolygon, QtCanvasRectangle, and QtCanvasRectangle.
Referenced by draw().
Here is the caller graph for this function:
|
protectedpure virtual |
Implemented in QtCanvasEllipse, QtCanvasEllipse, QtCanvasLine, QtCanvasLine, QtCanvasPolygon, QtCanvasPolygon, QtCanvasRectangle, and QtCanvasRectangle.
|
protected |
|
protected |
References QtCanvasItem::removeFromChunks(), and QtCanvasItem::val.
Here is the call graph for this function:
|
inlineprotected |
References QtCanvasItem::val.
|
inlineprotected |
References QtCanvasItem::val.
|
inline |
References pn.
Referenced by QtCanvasRectangle::areaPoints(), QtCanvasLine::areaPoints(), MainWindow::itemClicked(), and MainWindow::valueChanged().
Here is the caller graph for this function:
|
inline |
References pn.
|
virtual |
Reimplemented from QtCanvasItem.
Reimplemented in QtCanvasEllipse, QtCanvasEllipse, QtCanvasLine, QtCanvasLine, QtCanvasSpline, QtCanvasSpline, QtCanvasPolygon, QtCanvasPolygon, QtCanvasRectangle, and QtCanvasRectangle.
References RTTI.
|
virtual |
Reimplemented from QtCanvasItem.
Reimplemented in QtCanvasEllipse, QtCanvasLine, QtCanvasSpline, QtCanvasPolygon, and QtCanvasRectangle.
|
private |
|
private |
|
virtual |
References br, and QtCanvasItem::changeChunks().
Referenced by MainWindow::addEllipse(), MainWindow::addRectangle(), and MainWindow::valueChanged().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
|
virtual |
Reimplemented in QtCanvasLine, and QtCanvasLine.
|
virtual |
Reimplemented in QtCanvasLine, and QtCanvasLine.
References QtCanvasItem::addToChunks(), pn, and QtCanvasItem::removeFromChunks().
Referenced by MainWindow::addRectangle(), QtCanvas::collisions(), QtCanvasLine::setPen(), and MainWindow::valueChanged().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
References wind.
|
protected |
|
protected |
|
protected |
References wind.
|
private |
Referenced by brush(), draw(), and setBrush().
|
static |
Referenced by rtti().
|
private |
Referenced by chunks(), QtCanvasPolygonalItem(), setWinding(), and winding().