#include <Box.h>
Klassendiagramm für Box:
Öffentliche Methoden | |
Box (double width, double height, double depth, Material *mat=0) | |
void | draw () |
virtual | ~Box () |
Private Attribute | |
double | width |
double | height |
double | depth |
Box::Box | ( | double | width, | |
double | height, | |||
double | depth, | |||
Material * | mat = 0 | |||
) |
Konstruktor: Liest die notwendigen Dimensionen und optional ein Material.
Box::~Box | ( | ) | [virtual] |
Default-Destruktor
void Box::draw | ( | ) | [virtual] |
Zeichnet das Objekt
Implementiert Object.
double Box::width [private] |
Die Breite des Kastens
double Box::height [private] |
Die Höhe des Kastens
double Box::depth [private] |
Die Tiefe des Kastens