| 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: cubeenvmirror.h 6014 2007-08-09 07:51:16Z Konstantin_Baumann $ 00019 // $Date: 2007-08-09 09:51:16 +0200 (Thu, 09 Aug 2007) $ 00020 // $Revision: 6014 $ 00021 // $State$ 00022 // $Author: Konstantin_Baumann $ 00023 // 00024 // $Log$ 00025 // Revision 1.14 2005/01/03 01:43:07 klimetschek 00026 // - modified win32 project layout, splitted vrs.vcproj into vrs_container, vrs_core, vrs_sg, vrs_image, vrs_opengl and vrs_io 00027 // - removed vrs.vcproj 00028 // minor things: 00029 // - added all glutexamples to vrs4glut.sln 00030 // - fixed some problems in glutexamples 00031 // - removed all project references from all VS projects (using solution wide project dependencies instead) 00032 // 00033 // Revision 1.13 2004/12/09 18:40:28 kirsch 00034 // added background color for mirror 00035 // 00036 // Revision 1.12 2004/11/08 09:32:03 kirsch 00037 // standardized CalculationMode enum 00038 // reordered constructor arguments 00039 // 00040 // Revision 1.11 2004/11/07 19:55:42 kirsch 00041 // added Dynamic, Static and CheckModified update modes 00042 // 00043 // Revision 1.10 2004/11/06 21:10:15 kirsch 00044 // added bumped cube environment mapping 00045 // 00046 // Revision 1.9 2004/11/05 13:58:09 basch 00047 // Class comment changed (Doxygen style) 00048 // 00049 // Revision 1.8 2004/07/07 16:55:58 kirsch 00050 // iVRS changes 00051 // 00052 // Revision 1.7 2004/03/12 16:28:38 baumann 00053 // macros VRS_NAMESPACE_BEGIN/_END expanded and removed 00054 // 00055 // Revision 1.6 2004/01/19 11:43:56 baumann 00056 // serialization mechanism improved 00057 // 00058 // Revision 1.5 2004/01/19 07:28:03 baumann 00059 // serialization mechanism improved 00060 // 00061 // Revision 1.4 2003/11/07 14:19:23 kirsch 00062 // removed leading underscore from include guards 00063 // 00064 // Revision 1.3 2003/03/21 16:11:11 kirsch 00065 // fixed comments 00066 // 00067 // Revision 1.2 2003/02/18 20:45:47 skirsch 00068 // improved and corrected the comments 00069 // 00070 // Revision 1.1 2002/09/13 14:00:50 kirsch 00071 // added cubeenvmirror and cubeenvmirrortechniquegl 00072 // 00073 00074 #ifndef VRS_VRS_CUBEENVMIRROR_H_ 00075 #define VRS_VRS_CUBEENVMIRROR_H_ 00076 00077 #include <vrs/mirror.h> 00078 00079 namespace VRS { 00080 00081 class Bumpmap; 00082 00088 class VRS_CORE_API CubeEnvMirror : public Mirror { 00089 00090 public: 00091 enum ReflectionType { Normal, Reflection }; 00092 VRS_SERIALIZABLE_CLASS_ENUM(ReflectionType); 00093 00094 enum CalculationMode { 00095 CM_Dynamic, 00096 CM_CheckModified, 00097 CM_Static 00098 }; 00106 VRS_SERIALIZABLE_CLASS_ENUM(CalculationMode); 00107 00108 CubeEnvMirror(double quality = 0.5, 00109 const Color& background = Color::black, 00110 ReflectionType = CubeEnvMirror::Normal, 00111 Bumpmap* = 0, 00112 CalculationMode = CubeEnvMirror::CM_Dynamic); 00118 ReflectionType getReflection() const; 00120 00124 void setReflection(ReflectionType); 00126 00127 Bumpmap* getBumpmap() const; 00129 void setBumpmap(Bumpmap*); 00133 void setCalculationMode(CalculationMode); 00135 CalculationMode getCalculationMode() const; 00138 void modifiedCallback(SharedObj*); 00141 VRS_TYPEINFO(CubeEnvMirror, Mirror); 00142 VRS_SERIALIZABLE(CubeEnvMirror); 00143 00144 private: 00145 ReflectionType m_reflectiontype; 00146 SO<Bumpmap> m_bumpmap; 00147 CalculationMode m_calculationMode; 00148 }; 00149 00150 } // namespace VRS 00151 00152 #endif // VRS_VRS_CUBEENVMIRROR_H_