| VRS - The Virtual Rendering System |
| version 3.3 |
00001 /********************************************************************** 00002 VRS - The Virtual Rendering System 00003 Copyright (C) 2001 Computer Graphics Systems Group at the 00004 Hasso-Plattner-Institute, Potsdam, Germany. 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public 00007 License as published by the Free Software Foundation; either 00008 version 2.1 of the License, or (at your option) any later version. 00009 This library is distributed in the hope that it will be useful, but 00010 WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00012 See the GNU Lesser General Public License for more details. 00013 You should have received a copy of the GNU Lesser+ General Public 00014 License along with this library; if not, write to the FreeSoftware 00015 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA, 02111-1307, USA. 00016 **********************************************************************/ 00017 00018 // $Id: imagetexture3dgl.h 6378 2008-06-02 13:30:09Z Konstantin_Baumann $ 00019 // $Date: 2008-06-02 15:30:09 +0200 (Mon, 02 Jun 2008) $ 00020 // $Revision: 6378 $ 00021 // $State$ 00022 // $Author: Konstantin_Baumann $ 00023 // 00024 // $Log$ 00025 // Revision 1.12 2005/10/13 09:52:35 baumann 00026 // mipmap handling improved 00027 // 00028 // Revision 1.11 2005/09/25 15:30:39 baumann 00029 // acceptChildren() implemented 00030 // 00031 // Revision 1.10 2005/01/03 01:43:09 klimetschek 00032 // - modified win32 project layout, splitted vrs.vcproj into vrs_container, vrs_core, vrs_sg, vrs_image, vrs_opengl and vrs_io 00033 // - removed vrs.vcproj 00034 // minor things: 00035 // - added all glutexamples to vrs4glut.sln 00036 // - fixed some problems in glutexamples 00037 // - removed all project references from all VS projects (using solution wide project dependencies instead) 00038 // 00039 // Revision 1.9 2004/03/12 16:28:40 baumann 00040 // macros VRS_NAMESPACE_BEGIN/_END expanded and removed 00041 // 00042 // Revision 1.8 2004/01/19 11:43:58 baumann 00043 // serialization mechanism improved 00044 // 00045 // Revision 1.7 2003/06/23 07:08:12 baumann 00046 // forward declaring VRS::Image 00047 // 00048 // Revision 1.6 2002/12/11 16:06:09 kirsch 00049 // use Matrix() instead of Matrix::identity in default constructor 00050 // 00051 // Revision 1.5 2002/11/13 07:20:50 baumann 00052 // changed TextureGL enum values to uppercase 00053 // added TextureGL::definesComponent() 00054 // 00055 // Revision 1.4 2002/10/29 10:32:52 baumann 00056 // macros VRS_CLASSNAME_* and VRS_IMPL_TYPEINFO_* removed 00057 // 00058 // Revision 1.3 2002/05/02 07:14:08 baumann 00059 // no need to use PersistentArray<T> in the interface of a class 00060 // 00061 // Revision 1.2 2002/05/01 19:58:25 guenther 00062 // Fixed Persistency: Array changed to Persistent Array type. 00063 // 00064 // Revision 1.1 2002/04/24 05:02:42 baumann 00065 // 3D textures added 00066 // 00067 00068 #ifndef VRS_OPENGL_TEXTURE_IMAGETEXTURE3DGL_H 00069 #define VRS_OPENGL_TEXTURE_IMAGETEXTURE3DGL_H 00070 00071 #include <vrs/opengl/texture3dgl.h> 00072 #include <vrs/container/array.h> 00073 00074 namespace VRS { 00075 00076 class Image; 00077 00078 class VRS_CORE_API ImageTexture3DGL : public Texture3DGL { 00079 public: 00080 ImageTexture3DGL(Iterator<SO<Image> >* images, 00081 TextureGL::WrapMode wrapS = TextureGL::REPEAT, 00082 TextureGL::WrapMode wrapT = TextureGL::REPEAT, 00083 TextureGL::WrapMode wrapR = TextureGL::REPEAT, 00084 TextureGL::FilterMode minFilter = TextureGL::TRILINEAR, 00085 TextureGL::FilterMode magFilter = TextureGL::LINEAR, 00086 GLfloat anisotropic = 1.0, 00087 const Matrix& matrix = Matrix(), 00088 const Color& borderColor = Color(0.0f, 0.0f, 0.0f, 0.0f), // transparent black 00089 GLenum internalFormat = GL_ZERO); 00100 virtual void setImages(Iterator<SO<Image> >* newImages, GLenum internalFormat = GL_ZERO); 00101 virtual Iterator<SO<Image> >* getImages() const; 00104 virtual GLenum getInternalFormat() const; 00105 00106 VRS_TYPEINFO(ImageTexture3DGL, Texture3DGL); 00107 VRS_SERIALIZABLE(ImageTexture3DGL); 00108 00109 protected: 00110 ImageTexture3DGL(); // only for serialization!!! 00111 00112 virtual void acceptChildren(std::vector<Visitable*>& appendChildrenHere) const; 00113 00114 private: 00115 SO<Array<SO<Image> > > images_; 00116 }; 00117 00118 } // namespace VRS 00119 00120 #endif // VRS_OPENGL_TEXTURE_IMAGETEXTURE3DGL_H