[BlockOut Index] [BlockOut Heirarchy]
Manages the displaying and manipulating of figures build up of cubes of the size 1,1,1 More...
#include <Figure.h>
Manages the displaying and manipulating of figures build up of cubes of the size 1,1,1.
Surrounding border.
Creates a copy of the cubes.
Adds a cube with the color color to position pos. No check is done if there already exists a cube - causes memory leak if so -.
Cubes are oriented from pos to pos.getX+1, pos.getY+1, pos.getZ+ 1.
On clear the color is deleted.
Rotation around the x-axis. direction==1 means clock wise.
Rotation around the y-axis. direction==1 means clock wise.
Rotation around the z-axis. direction==1 means clock wise.
Returns the count of cubes set in this figure.
Returns the extend in x direction.
Returns the extend in y direction.
Returns the extend in z direction.
Removes and deletes all cubes.
Moves figure to position newPos.
Moves figure relative with rel.
Returns current position.
Checks if any cube of this is on the same absolute position as any of fig and returns true in this case.
Removes the cubes from fig and inserts them in this at same absolute position.
No check for collisions is done - use checkForCollision before.
Draws figure on Draw3D::globalInstance using a z-buffer for planes.
Sets the x,y coordinates of the center of the view to determine if side of cube is visible or hidden - lower left corner is 0,0.
Return index of pos in linear addressing cubes or planeZBuffer.
Return index of pos in linear addressing maxHeight.
Calculates the z-Buffer from the cubes buffer.
Increments the position of x,y,z with order x,y,z.
The position of this figure relativ to origin of coordinate system
sizeX*sizeY*sizeZ
Stores the color of the cubes or null if no cube present at position. cubes=[z][y][x] with 0<=x Stores the visibility of the planes of the cubes of the figure.
planeZBuffer=[z][y][x] with 0<=x True in case of new cubes in figure or movement. unsigned char *planeZBuffer
bool zBufferNeedsUpdate
Documentation generated by skyhunter@Dagobah on Wed Sep 16 18:39:03 MEST 1998
Kdoc