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

sidelib.h

00001 /***************************************************************************
00002                            sidelib.h
00003                            -------------------
00004     copyright            : (C) 2004 by Jos van den Oever
00005     email                : jos@vandenoever.info
00006  ***************************************************************************/
00007 
00008 /***************************************************************************
00009  *                                                                         *
00010  *   This program is free software; you can redistribute it and/or modify  *
00011  *   it under the terms of the GNU General Public License as published by  *
00012  *   the Free Software Foundation; either version 2 of the License, or     *
00013  *   (at your option) any later version.                                   *
00014  *                                                                         *
00015  ***************************************************************************/
00016 // This file contains a library of different sides that can be used for pasting
00017 // on different sides of a cube.
00018 // The sides are group by symmetry, first the sides with four equal
00019 // orientations, then the sides with two equal orientations and then the sides
00020 // with four different possible orientations.
00021 #ifndef SIDELIB_H
00022 #define SIDELIB_H
00023 
00024 #include "sidestyle.h"
00025 class SideLib : public SideStyle {
00026 private:
00027         QPicture *blankPicture;
00028         mutable short c1max, c2max, c4max;
00029         mutable QPicture **c1;
00030         mutable QPicture **c2;
00031         mutable QPicture **c4;
00032 public:
00033         SideLib();
00034         ~SideLib();
00035 //      const QPicture *getBlankPicture();
00036 //      const QPicture *getNumberedPicture(int i);
00037         const QPicture diceside(short points);
00038 
00039         const QPicture *getC4Picture(ushort i) const;
00040         const QPicture *getC2Picture(ushort i) const;
00041         const QPicture *getC1Picture(ushort i) const;
00042         short amount(Symmetry) const;
00043 };
00044 
00045 #endif

Generated on Thu Jan 15 23:13:57 2004 for CubeTest by doxygen 1.3.2