/***************************************************************************
                           cube.h
                           -------------------
    copyright            : (C) 2004 by Jos van den Oever
    email                : jos@vandenoever.info
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
#ifndef CUBE_H
#define CUBE_H

#include "object.h"

using namespace std;

Q3Picture
diceside(short points);

/* this class implements a cube that can be rotate by dragging over it with
   the mouse */
class Cube : public Object {
Q_OBJECT
public:
	explicit Cube(QWidget *, const char *name="");
	int heightForWidth(int width) const;
//	void setPicture(short side, Symmetry, Rotation, short picuture);
	void clear();
	void setOrientation(short);
	static const double magicAngle;
};

#endif
