Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

cubedock.h

Go to the documentation of this file.
00001 /* ***********************************************************************************
00002         Writer:         Sebastien Bloc
00003         Copyright:      2003-2004
00004         eMail:          sebastien.bloc@free.fr
00005         URL:            http://mignonsoft.free.fr
00006 
00007         This program is free software; you can redistribute it and/or
00008         modify it under the terms of the GNU General Public License
00009         as published by the Free Software Foundation; either version 2
00010         of the License, or (at your option) any later version.
00011 
00012         This program is distributed in the hope that it will be useful,
00013         but WITHOUT ANY WARRANTY; without even the implied warranty of
00014         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015         GNU General Public License for more details.
00016         http://www.gnu.org/copyleft/gpl.html
00017 *********************************************************************************** */
00018 
00023 #ifndef INCLUDE_CUBEDOCK_H
00024 #define INCLUDE_CUBEDOCK_H
00025 
00026 #include "control.h"
00027 #include "linedock.h"
00028 #include "dock.h"
00029 
00034 class CubeDock
00035 {
00036 public:
00037         Control *parent;
00038         LineDock frontTop,frontBottom,frontLeft,frontRight;
00039         Dock frontTopRight,frontTopLeft,frontBottomLeft,frontBottomRight;
00040         LineDock backTop,backBottom,backLeft,backRight;
00041         Dock backTopRight,backTopLeft,backBottomLeft,backBottomRight;
00042 
00043         CubeDock()
00044         {
00045                 parent=NULL;
00046         }
00047 
00048         void Config(Control *_parent,double width=-1) //wifth=-1==> valeur par default
00049         {
00050                 parent=_parent;
00051                 frontTop.Set(0,0,0, 1,0,0,width);
00052                 frontBottom.Set(0,1,0, 1,1,0,width);
00053                 frontLeft.Set(0,0,0, 0,1,0,width);
00054                 frontRight.Set(1,0,0, 1,1,0, width);
00055                 frontTopLeft.Set(0,0,0,width);
00056                 frontTopRight.Set(1,0,0,width);
00057                 frontBottomLeft.Set(0,1,0,width);
00058                 frontBottomRight.Set(1,1,0,width);
00059                 backTop.Set(0,0,1, 1,0,1,width);
00060                 backBottom.Set(0,1,1, 1,1,1,width);
00061                 backLeft.Set(0,0,1, 0,1,1,width);
00062                 backRight.Set(1,0,1, 1,1,1,width);
00063                 backTopLeft.Set(0,0,1,width);
00064                 backTopRight.Set(1,0,1,width);
00065                 backBottomLeft.Set(0,1,1,width);
00066                 backBottomRight.Set(1,1,1,width);
00067         }
00068         ~CubeDock()
00069         {
00070         }
00071 };
00072 
00073 #endif

Generated on Fri Aug 20 19:19:44 2004 for 3d Controls by doxygen 1.3.6