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

OgrePanelGuiElement.h

Go to the documentation of this file.
00001 /*
00002 -----------------------------------------------------------------------------
00003 This source file is part of OGRE
00004     (Object-oriented Graphics Rendering Engine)
00005 For the latest info, see http://ogre.sourceforge.net/
00006 
00007 Copyright © 2000-2002 The OGRE Team
00008 Also see acknowledgements in Readme.html
00009 
00010 This program is free software; you can redistribute it and/or modify it under
00011 the terms of the GNU Lesser General Public License as published by the Free Software
00012 Foundation; either version 2 of the License, or (at your option) any later
00013 version.
00014 
00015 This program is distributed in the hope that it will be useful, but WITHOUT
00016 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00017 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
00018 
00019 You should have received a copy of the GNU Lesser General Public License along with
00020 this program; if not, write to the Free Software Foundation, Inc., 59 Temple
00021 Place - Suite 330, Boston, MA 02111-1307, USA, or go to
00022 http://www.gnu.org/copyleft/lesser.txt.
00023 -----------------------------------------------------------------------------
00024 */
00025 
00026 #ifndef __PanelGuiElement_H__
00027 #define __PanelGuiElement_H__
00028 
00029 #include "OgreGuiElementPrerequisites.h"
00030 #include "OgreGuiContainer.h"
00031 
00032 namespace Ogre {
00033 
00034 
00050     class _OgreGuiElementExport PanelGuiElement : public GuiContainer
00051     {
00052     public:
00054         PanelGuiElement(const String& name);
00055         ~PanelGuiElement();
00056 
00063         void setTiling(Real x, Real y, ushort layer = 0);
00064 
00065         Real getTileX(ushort layer = 0);
00070         Real getTileY(ushort layer = 0);
00071 
00075         void setTransparent(bool isTransparent);
00076 
00078         bool isTransparent(void);
00079 
00081         const String& getTypeName(void);
00083         void getRenderOperation(RenderOperation& rend);
00085         void setMaterialName(const String& matName);
00087         void _updateRenderQueue(RenderQueue* queue);
00088 
00089 
00091         class CmdTiling : public ParamCommand
00092         {
00093         public:
00094             String doGet(void* target);
00095             void doSet(void* target, const String& val);
00096         };
00098         class CmdTransparent : public ParamCommand
00099         {
00100         public:
00101             String doGet(void* target);
00102             void doSet(void* target, const String& val);
00103         };
00104     protected:
00105         // Flag indicating if this panel should be visual or just group things
00106         bool mTransparent;
00107         // Texture tiling
00108         Real mTileX[OGRE_MAX_TEXTURE_LAYERS];
00109         Real mTileY[OGRE_MAX_TEXTURE_LAYERS];
00110 
00111         RenderOperation mRenderOp;
00112 
00114         virtual void updatePositionGeometry(void);
00115 
00117         virtual void updateTextureGeometry(void);
00118 
00120         void addBaseParameters(void);
00121 
00122 
00123         static String msTypeName;
00124 
00125 
00126         // Command objects
00127         static CmdTiling msCmdTiling;
00128         static CmdTransparent msCmdTransparent;
00129 
00130         
00131 
00132     };
00133 
00134 
00135 }
00136 
00137 #endif

Copyright © 2002 by The OGRE Team