| VRS - The Virtual Rendering System |
| version 3.3 |
00001 /****************************************************************************** 00002 * VRS - The Virtual Rendering System 00003 * Copyright (C) 2003 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: polyattribute.h 5257 2006-03-24 11:35:59Z baumann $ 00019 // $Date: 2006-03-24 12:35:59 +0100 (Fri, 24 Mar 2006) $ 00020 // $Revision: 5257 $ 00021 // $State$ 00022 // $Author: baumann $ 00023 // 00024 // $Log$ 00025 // Revision 1.18 2006/03/24 11:35:59 baumann 00026 // operator== added 00027 // 00028 // Revision 1.17 2005/01/03 01:43:08 klimetschek 00029 // - modified win32 project layout, splitted vrs.vcproj into vrs_container, vrs_core, vrs_sg, vrs_image, vrs_opengl and vrs_io 00030 // - removed vrs.vcproj 00031 // minor things: 00032 // - added all glutexamples to vrs4glut.sln 00033 // - fixed some problems in glutexamples 00034 // - removed all project references from all VS projects (using solution wide project dependencies instead) 00035 // 00036 // Revision 1.16 2004/11/05 13:58:09 basch 00037 // Class comment changed (Doxygen style) 00038 // 00039 // Revision 1.15 2004/06/17 12:16:54 kirsch 00040 // global polyattributes are now applied at the beginning of each main pass 00041 // and unapplied at the end of it 00042 // 00043 // Revision 1.14 2004/03/12 16:28:39 baumann 00044 // macros VRS_NAMESPACE_BEGIN/_END expanded and removed 00045 // 00046 // Revision 1.13 2004/01/19 11:43:57 baumann 00047 // serialization mechanism improved 00048 // 00049 // Revision 1.12 2003/11/29 11:29:23 kirsch 00050 // - added support for local poly attributes 00051 // - removed PolyAttribute::switchDefault() and Attribute::rememberTransform() 00052 // - renamed Engine::SwType: On/Off/All to Engine::SwitchType: ON/OFF/ALL 00053 // - changed class hierarchy of TechniqueProcessor and Technique 00054 // - GLCanvas::prepareRedisplay() / finishRedisplay() now push / pop standard attributes 00055 // 00056 // Revision 1.11 2003/11/07 14:19:24 kirsch 00057 // removed leading underscore from include guards 00058 // 00059 // Revision 1.10 2003/06/03 20:32:09 baumann 00060 // added ctor with enabled flag 00061 // 00062 // Revision 1.9 2002/10/29 10:32:52 baumann 00063 // macros VRS_CLASSNAME_* and VRS_IMPL_TYPEINFO_* removed 00064 // 00065 // Revision 1.8 2002/03/03 21:44:25 kosta 00066 // VRS_TYPEINFO-macro rewritten 00067 // 00068 // Revision 1.7 2002/02/19 10:34:10 kosta 00069 // undone all changes since 2002-02-15 00070 // 00071 // Revision 1.4 2002/01/15 16:25:54 kosta 00072 // macros rewritten for a better namespace support 00073 // 00074 // Revision 1.3 2001/11/13 16:36:30 kirsch 00075 // changed line feed to unix style (removed control-M) 00076 // 00077 // Revision 1.2 2001/08/24 13:12:36 kirsch 00078 // light sources are now turned on by default 00079 // 00080 // Revision 1.1.1.1 2001/06/08 08:09:20 kirsch 00081 // imported alpha-version by olli 00082 // 00083 00084 00085 #ifndef VRS_POLYATTRIBUTE_H 00086 #define VRS_POLYATTRIBUTE_H 00087 00088 #include <vrs/attribute.h> 00089 00090 namespace VRS { 00091 00101 class VRS_CORE_API PolyAttribute : public Attribute { 00102 00103 00104 public: 00105 PolyAttribute(bool enabled = true); 00107 00108 bool operator==(const PolyAttribute& other) const; 00109 00110 void setGlobal(bool global); 00112 00123 bool isGlobal() const; 00125 00126 VRS_TYPEINFO(PolyAttribute, Attribute); 00127 VRS_SERIALIZABLE(PolyAttribute); 00128 00129 private: 00130 bool global_; 00131 }; 00132 00133 } // namespace VRS 00134 00135 #endif // VRS_POLYATTRIBUTE_H