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_DOCK_H 00024 #define INCLUDE_DOCK_H 00025 00026 #include "control.h" 00027 00028 #define DEFAULT_WIDTH 0.1 00029 00035 class Dock : public Control 00036 { 00037 public: 00038 double width; 00039 double x,y,z; 00040 00041 Dock() 00042 { 00043 width = DEFAULT_WIDTH; 00044 } 00045 00046 void Set (double _x,double _y,double _z,double width=-1) 00047 { 00048 x=_x; 00049 y=_y; 00050 z=_z; 00051 if (width==-1) width = DEFAULT_WIDTH; 00052 } 00053 00054 ~Dock() 00055 { 00056 } 00057 }; 00058 00059 #endif