00001 /* 00002 http://www.opensource.org/licenses/mit-license.php (MIT-License) 00003 00004 Copyright (c) 2007 Lugre-Team 00005 00006 Permission is hereby granted, free of charge, to any person obtaining a copy 00007 of this software and associated documentation files (the "Software"), to deal 00008 in the Software without restriction, including without limitation the rights 00009 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 00010 copies of the Software, and to permit persons to whom the Software is 00011 furnished to do so, subject to the following conditions: 00012 00013 The above copyright notice and this permission notice shall be included in 00014 all copies or substantial portions of the Software. 00015 00016 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00017 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00018 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 00019 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 00020 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 00021 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 00022 THE SOFTWARE. 00023 */ 00024 00025 #ifndef CompassOVERLAY_H 00026 #define CompassOVERLAY_H 00027 00028 #include "lugre_robrenderable.h" 00029 #include <OgrePrerequisites.h> 00030 #include <OgreOverlayContainer.h> 00031 00032 namespace Lugre { 00033 // temporary name 00034 // see also OgrePanelOverlayElement.cpp 00035 // OgreOverlayElementFactory.h 00036 // ./include/OgreOverlayElementFactory.h 00037 00038 class cCompassOverlay : public cRobRenderOp, public Ogre::OverlayContainer { public : 00039 Ogre::RenderOperation mRenderOp; 00040 static Ogre::String msTypeName; 00041 float mfMidU; 00042 float mfMidV; 00043 float mfRadU; 00044 float mfRadV; 00045 float mfAngBias; 00046 00047 cCompassOverlay(const Ogre::String& name); 00048 virtual ~cCompassOverlay(); 00049 00050 bool mTransparent; 00051 00053 static void RegisterFactory (); 00054 00056 virtual void initialise (void); 00057 00058 00059 void SetUVMid (const float fMidU,const float fMidV); 00060 void SetUVRad (const float fRadU,const float fRadV); 00061 void SetAngBias (const float fAngBias); 00062 00064 void setTransparent(bool isTransparent); 00065 00067 bool isTransparent(void) const; 00068 00070 virtual const Ogre::String& getTypeName(void) const; 00072 void getRenderOperation(Ogre::RenderOperation& op); 00074 void setMaterialName(const Ogre::String& matName); 00076 void _updateRenderQueue(Ogre::RenderQueue* queue); 00077 00079 virtual void updatePositionGeometry(void); 00080 00082 virtual void updateTextureGeometry(void); 00083 00085 void addBaseParameters(void); 00086 }; 00087 00088 }; 00089 00090 #endif
1.5.6