#include <side.h>
Signals | |
void | clickedAt (QPoint p) |
void | clicked () |
Public Member Functions | |
Side () | |
Side (const double[9]) | |
Side (const Side &) | |
virtual | ~Side () |
const Side & | operator= (const Side &) |
int | operator< (const Side &) const |
void | setPoints (const double[9]) |
void | setPicture (const QPicture *) |
void | setRotation (short) |
void | setSymmetry (Symmetry) |
void | paintSide (QPainter *p) const |
void | rotate (Rotation) |
void | updateMatrix (const Matrix3D &m3d) |
bool | processClick (const QPoint &p) |
Rotation | getRotation () const |
double | getMaxDistance () const |
const QPicture * | picture () const |
const QWMatrix * | matrix () const |
Symmetry | symmetry () const |
p1 *----* p2 | | p3 *----* p4
|
Default constructor. Constructs an empty Side |
|
Supply three coordinates (x, y, z) that define the Side. |
|
Copy constructor, nothing special. |
|
Destructor, needs to be overridden because QObject is inherited. |
|
Signal that the side was clicked on. |
|
Signal that the side was clicked on at position |
|
Return a pointer to the Side's WorldMatrix |
|
Compare two Sides in the same object. This function is needed for drawing the Sides. The 'smallest' Side is drawn first. Smaller means 'further back'. Comparing Sides from different Objects is meaningless. |
|
Copy operator, nothing special. |
|
Return a pointer to the Side's QPicture. |
|
Assign a picture to the side. |
|
Set new points that define this Side. |
|
Change the rotation of the QPicture on the Side. |
|
Change the symmetry of the Side. This value must correspond to the symmetry of the QPicture. |