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

container.cpp

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         Ex.:
00019         Button *btnOk = new Button;
00020         btnOk->SetText("Ok");
00021         btnOk->debugInfo="btnOk";
00022         btnOk->onClick.Link(OnButtonOk);
00023 
00024         TextBox *txtInfo = new TextBox;
00025         txtInfo->SetText("Hello Word !!");
00026         txtInfo->debugInfo="txtInfo";
00027         txtInfo->onMouse.leftBtn.up.Link(OnTextClick);
00028 
00029         window.client+=txtInfo;
00030         window.client+=btnOk;
00031 ******************************************************************************** */
00032 
00033 #include "3d.h"
00034 #include "input.h"
00035 #include "controlEngine.h"
00036 #include "container.h"
00037 #include "mylist.h"
00038 
00039 extern ControlEngine ce;
00040 
00041 void Container::Create(double depth)
00042 {
00043         SetParent();
00044         faceNode = ce.primitive.AddBox(name,id,depth,FALSE); 
00045         faceNode->elem->material.SetDS(.75,.75,.75);
00046 /*
00047         ce.primitive.Push(FACE_FRONT); 
00048                 for (controls=0;controls.More();controls++)
00049                 {
00050                         Control *control=controls.GetElem();
00051                         control->Create();
00052                 }
00053         ce.primitive.Pop();
00054 */
00055 }
00056 
00057 // ********************************************************************************
00058 
00059 Container::Container()
00060 {
00061         name="Container";
00062 }
00063 
00064 Container::~Container()
00065 {
00066 }
00067 
00068 // ********************************************************************************
00069 
00070 void Container::ToString(MyString &str)
00071 {
00072         str.AddFormat("name: %s",name);
00073 }

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