| VRS - The Virtual Rendering System |
| version 3.3 |
00001 /****************************************************************************** 00002 * VRS - The Virtual Rendering System 00003 * Copyright (C) 2002 Computer Graphics Systems Group at the 00004 * Hasso-Plattner-Institute (HPI), Potsdam, Germany. 00005 * 00006 * This library is free software; you can redistribute it and/or modify it 00007 * under the terms of the GNU Lesser General Public License as published by 00008 * the Free Software Foundation; either version 2.1 of the License, or (at 00009 * your option) any later version. This library is distributed in the hope 00010 * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied 00011 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU Lesser General Public License for more details. You should have received 00013 * a copy of the GNU Lesser+ General Public License along with this library; if 00014 * not, write to the FreeSoftware Foundation, Inc., 59 Temple Place, Suite 330, 00015 * Boston, MA, 02111-1307, USA. 00016 ******************************************************************************/ 00017 00018 // $Id: edgeenhancementgl.h 6014 2007-08-09 07:51:16Z Konstantin_Baumann $ 00019 // 00020 // $Log$ 00021 // Revision 1.6 2005/08/31 08:51:16 nienhaus 00022 // consider textures 00023 // 00024 // Revision 1.5 2005/01/03 01:43:09 klimetschek 00025 // - modified win32 project layout, splitted vrs.vcproj into vrs_container, vrs_core, vrs_sg, vrs_image, vrs_opengl and vrs_io 00026 // - removed vrs.vcproj 00027 // minor things: 00028 // - added all glutexamples to vrs4glut.sln 00029 // - fixed some problems in glutexamples 00030 // - removed all project references from all VS projects (using solution wide project dependencies instead) 00031 // 00032 // Revision 1.4 2004/11/18 16:04:39 nienhaus 00033 // options added 00034 // 00035 // Revision 1.3 2004/11/03 14:45:06 saar 00036 // Class comment changed (Doxygen style) 00037 // 00038 // Revision 1.2 2004/10/18 13:18:36 nienhaus 00039 // vrs api changes 00040 // 00041 // Revision 1.1 2004/10/12 11:13:44 nienhaus 00042 // initial version 00043 // 00044 00045 #ifndef VRS_OPENGL_EDGEENHANCEMENTGL_H_ 00046 #define VRS_OPENGL_EDGEENHANCEMENTGL_H_ 00047 00048 #include <vrs/monoattribute.h> 00049 00050 namespace VRS { 00051 00053 class VRS_CORE_API EdgeEnhancementGL : public MonoAttribute { 00054 public: 00055 EdgeEnhancementGL(bool useShapeColor = true, bool useTextures = false) : color_(useShapeColor), textures_(useTextures) { }; 00060 bool useShapeColor() const; 00061 void useShapeColor(bool); 00064 bool useTextures() const; 00065 void useTextures(bool); 00068 VRS_TYPEINFO(EdgeEnhancementGL, MonoAttribute); 00069 VRS_SERIALIZABLE(EdgeEnhancementGL); 00070 00071 private: 00072 bool color_; 00073 bool textures_; 00074 }; // class EdgeEnhancementGL 00075 00076 inline bool EdgeEnhancementGL::useShapeColor() const { return color_; } 00077 inline void EdgeEnhancementGL::useShapeColor(bool color) { 00078 if(color!=color_) { 00079 color_ = color; 00080 modified(); 00081 } 00082 }; 00083 00084 inline bool EdgeEnhancementGL::useTextures() const { return textures_; } 00085 inline void EdgeEnhancementGL::useTextures(bool s) { 00086 if(s!=textures_) { 00087 textures_ = s; 00088 modified(); 00089 } 00090 } 00091 00092 } // namespace VRS 00093 00094 00095 #endif // VRS_OPENGL_EDGEENHANCEMENTGL_H_