Main Page | Class Hierarchy | Compound List | File List | Compound Members

Side Class Reference

#include <side.h>

List of all members.

Signals

void clickedAt (QPoint p)
void clicked ()

Public Member Functions

 Side ()
 Side (const double[9])
 Side (const Side &)
virtual ~Side ()
const Sideoperator= (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


Detailed Description

A side for a 3D object. Sides are planes in a 3D space. A Side has three (x, y, z) points that define it's position in space. The points are the following three points of a side:
      p1 *----* p2
         |    |
      p3 *----* p4
Point p4 is easily inferred from the three other points (p4 = p3+p2-p1). The points are stored in an array of 12 doubles


Constructor & Destructor Documentation

Side::Side  ) 
 

Default constructor. Constructs an empty Side

Side::Side const  double[9]  ) 
 

Supply three coordinates (x, y, z) that define the Side.

Side::Side const Side  ) 
 

Copy constructor, nothing special.

Side::~Side  )  [virtual]
 

Destructor, needs to be overridden because QObject is inherited.


Member Function Documentation

void Side::clicked  )  [signal]
 

Signal that the side was clicked on.

void Side::clickedAt QPoint  p  )  [signal]
 

Signal that the side was clicked on at position p.

const QWMatrix * Side::matrix  )  const
 

Return a pointer to the Side's WorldMatrix

int Side::operator< const Side  )  const
 

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.

const Side & Side::operator= const Side  ) 
 

Copy operator, nothing special.

const QPicture * Side::picture  )  const
 

Return a pointer to the Side's QPicture.

void Side::setPicture const QPicture *   ) 
 

Assign a picture to the side.

void Side::setPoints const  double[9]  ) 
 

Set new points that define this Side.

void Side::setRotation short   ) 
 

Change the rotation of the QPicture on the Side.

void Side::setSymmetry Symmetry   ) 
 

Change the symmetry of the Side. This value must correspond to the symmetry of the QPicture.


The documentation for this class was generated from the following files:
Generated on Thu Jan 15 23:13:57 2004 for CubeTest by doxygen 1.3.2