Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
glfTexture3D.hh
1 #ifndef __glfTexture3D_hh__
2 #define __glfTexture3D_hh__
3 
4 #include "glfTexture.hh"
5 
6 namespace BIAS {
7 
8  class BIASOpenGLFramework_EXPORT glfTexture3D : public glfTexture
9  {
10  public:
11  glfTexture3D();
12 
13  /** Convenience wrapper **/
14  void Set(GLenum minFilter = GL_NEAREST,
15  GLenum magFilter = GL_NEAREST,
16  GLenum wrapS = GL_CLAMP,
17  GLenum wrapT = GL_CLAMP,
18  GLint textureNr = GL_TEXTURE0);
19 
20 
21  void Allocate3DImage(int width, int height, int depth,
22  GLenum internalFormat, int mipmap = 0);
23 
24  void Allocate3DImage(int width, int height, int depth,
25  ImageBase::EStorageType storageType,
26  ImageBase::EColorModel colorModel,
27  int mipmap = 0);
28 
29  void Upload2DImage(const BIAS::ImageBase& image, unsigned int level);
30 
31  private:
32  /** An intuitive assignment operator should generate a copy, as long as nobody is willing to implement
33  * the generation of a copy in gl controlled memory this operator cannot be used.
34  */
35  glfTexture3D& operator=(const glfTexture3D& b);
36 
37  /** An intuitive copy constructor should generate a copy, as long as nobody is willing to implement
38  * the generation of a copy in gl controlled memory this constructor cannot be used.
39  */
40  glfTexture3D(const glfTexture3D& t);
41 
42  };
43 
44 }
45 
46 #endif // __glfTexture3D_hh__
EColorModel
These are the most often used color models.
Definition: ImageBase.hh:127
Base class for textures.
Definition: glfTexture.hh:42
This is the base class for images in BIAS.
Definition: ImageBase.hh:102