00001 //=========================================================================== 00002 /* 00003 This file is part of the CHAI 3D visualization and haptics libraries. 00004 Copyright (C) 2003-2009 by CHAI 3D. All rights reserved. 00005 00006 This library is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License("GPL") version 2 00008 as published by the Free Software Foundation. 00009 00010 For using the CHAI 3D libraries with software that can not be combined 00011 with the GNU GPL, and for taking advantage of the additional benefits 00012 of our support services, please contact CHAI 3D about acquiring a 00013 Professional Edition License. 00014 00015 \author <http://www.chai3d.org> 00016 \author Francois Conti 00017 \version 2.0.0 $Rev: 250 $ 00018 */ 00019 //=========================================================================== 00020 00021 //--------------------------------------------------------------------------- 00022 #ifndef CLabelH 00023 #define CLabelH 00024 //--------------------------------------------------------------------------- 00025 #include "extras/CGlobals.h" 00026 #include "scenegraph/CGenericObject.h" 00027 #include "widgets/CFont.h" 00028 #include "graphics/CColor.h" 00029 #include "math/CString.h" 00030 //--------------------------------------------------------------------------- 00031 00032 //=========================================================================== 00040 //=========================================================================== 00041 00042 //=========================================================================== 00050 //=========================================================================== 00051 class cLabel : public cGenericObject 00052 { 00053 public: 00054 00055 //----------------------------------------------------------------------- 00056 // CONSTRUCTOR & DESTRUCTOR: 00057 //----------------------------------------------------------------------- 00058 00060 cLabel(); 00061 00063 virtual ~cLabel(); 00064 00065 00066 //----------------------------------------------------------------------- 00067 // MEMBERS: 00068 //----------------------------------------------------------------------- 00069 00071 cFont* m_font; 00072 00074 cColorf m_fontColor; 00075 00077 string m_string; 00078 00080 virtual void render(const int a_renderMode=0); 00081 }; 00082 00083 //--------------------------------------------------------------------------- 00084 #endif 00085 //---------------------------------------------------------------------------