#include <qtcanvas.h>
Public Member Functions | |
QPoint | endPoint () const |
QPoint | endPoint () const |
void | moveBy (double dx, double dy) |
void | moveBy (double dx, double dy) |
QtCanvasLine (QtCanvas *canvas) | |
QtCanvasLine (QtCanvas *canvas) | |
int | rtti () const |
int | rtti () const |
void | setPen (QPen p) |
void | setPen (QPen p) |
void | setPoints (int x1, int y1, int x2, int y2) |
void | setPoints (int x1, int y1, int x2, int y2) |
QPoint | startPoint () const |
QPoint | startPoint () const |
~QtCanvasLine () | |
~QtCanvasLine () | |
![]() | |
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) | |
virtual void | setBrush (QBrush b) |
virtual void | setBrush (QBrush b) |
virtual | ~QtCanvasPolygonalItem () |
virtual | ~QtCanvasPolygonalItem () |
![]() | |
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) |
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_Line |
![]() | |
static int | RTTI = Rtti_PolygonalItem |
![]() | |
static int | RTTI = Rtti_Item |
Protected Member Functions | |
QPolygon | areaPoints () const |
QPolygon | areaPoints () const |
void | drawShape (QPainter &) |
void | drawShape (QPainter &) |
![]() | |
void | draw (QPainter &) |
void | draw (QPainter &) |
void | invalidate () |
void | invalidate () |
bool | isValid () const |
bool | isValid () const |
void | setWinding (bool) |
void | setWinding (bool) |
bool | winding () const |
bool | winding () const |
![]() | |
void | update () |
void | update () |
Private Attributes | |
int | x1 |
int | x2 |
int | y1 |
int | y2 |
Additional Inherited Members | |
![]() | |
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 } |
QtCanvasLine::~QtCanvasLine | ( | ) |
References QtCanvasItem::hide().
QtCanvasLine::QtCanvasLine | ( | QtCanvas * | canvas | ) |
QtCanvasLine::~QtCanvasLine | ( | ) |
|
protectedvirtual |
Implements QtCanvasPolygonalItem.
References QtCanvasPolygonalItem::pen(), QtCanvasItem::x(), x1, x2, QtCanvasItem::y(), y1, and y2.
|
protectedvirtual |
Implements QtCanvasPolygonalItem.
|
protectedvirtual |
Implements QtCanvasPolygonalItem.
References QtCanvasItem::x(), x1, x2, QtCanvasItem::y(), y1, and y2.
|
protectedvirtual |
Implements QtCanvasPolygonalItem.
|
inline |
Referenced by MainWindow::itemClicked().
|
inline |
|
virtual |
Reimplemented from QtCanvasItem.
References QtCanvasItem::moveBy().
|
virtual |
Reimplemented from QtCanvasItem.
|
virtual |
Reimplemented from QtCanvasPolygonalItem.
References RTTI.
|
virtual |
Reimplemented from QtCanvasPolygonalItem.
|
virtual |
Reimplemented from QtCanvasPolygonalItem.
References QtCanvasPolygonalItem::setPen().
Referenced by MainWindow::addLine().
|
virtual |
Reimplemented from QtCanvasPolygonalItem.
void QtCanvasLine::setPoints | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2 | ||
) |
References QtCanvasItem::addToChunks(), QtCanvasItem::removeFromChunks(), x1, x2, y1, and y2.
Referenced by MainWindow::addLine(), and MainWindow::valueChanged().
void QtCanvasLine::setPoints | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2 | ||
) |
|
inline |
Referenced by MainWindow::valueChanged().
|
inline |
|
private |
Referenced by areaPoints(), drawShape(), QtCanvasLine(), setPoints(), and startPoint().
|
private |
Referenced by areaPoints(), drawShape(), endPoint(), QtCanvasLine(), and setPoints().
|
private |
Referenced by areaPoints(), drawShape(), QtCanvasLine(), setPoints(), and startPoint().
|
private |
Referenced by areaPoints(), drawShape(), endPoint(), QtCanvasLine(), and setPoints().