Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::Texture3D Class Reference
+ Inheritance diagram for inviwo::Texture3D:

Public Member Functions

 Texture3D (size3_t dimensions, GLFormat glFormat, GLenum filtering, const SwizzleMask &swizzleMask=swizzlemasks::rgba, const std::array< GLenum, 3 > &wrapping={GL_CLAMP_TO_EDGE, GL_CLAMP_TO_EDGE, GL_CLAMP_TO_EDGE}, GLint level=0)
 
 Texture3D (size3_t dimensions, GLint format, GLint internalformat, GLenum dataType, GLenum filtering, const SwizzleMask &swizzleMask=swizzlemasks::rgba, const std::array< GLenum, 3 > &wrapping={GL_CLAMP_TO_EDGE, GL_CLAMP_TO_EDGE, GL_CLAMP_TO_EDGE}, GLint level=0)
 
 Texture3D (const Texture3D &other)
 
 Texture3D (Texture3D &&other)
 
Texture3Doperator= (const Texture3D &other)
 
Texture3Doperator= (Texture3D &&other)
 
Texture3Dclone () const
 
void initialize (const void *data)
 
size_t getNumberOfValues () const
 
void upload (const void *data)
 
void uploadAndResize (const void *data, const size3_t &dim)
 
const size3_t & getDimensions () const
 
void setWrapping (const std::array< GLenum, 3 > &wrapping)
 
std::array< GLenum, 3 > getWrapping () const
 
- Public Member Functions inherited from inviwo::Texture
 Texture (GLenum target, GLFormat glFormat, GLenum filtering, const SwizzleMask &swizzleMask, std::span< const GLenum > wrapping, GLint level)
 
 Texture (GLenum target, GLint format, GLint internalformat, GLenum dataType, GLenum filtering, const SwizzleMask &swizzleMask, std::span< const GLenum > wrapping, GLint level)
 
 Texture (const Texture &other)
 
 Texture (Texture &&other)
 
Textureoperator= (const Texture &other)
 
Textureoperator= (Texture &&other)
 
GLenum getFormat () const
 
GLenum getInternalFormat () const
 
GLenum getDataType () const
 
const DataFormatBasegetDataFormat () const
 
GLenum getFiltering () const
 
GLint getLevel () const
 
GLuint getNChannels () const
 
GLuint getSizeInBytes () const
 
void setSwizzleMask (SwizzleMask mask)
 
SwizzleMask getSwizzleMask () const
 
void setInterpolation (InterpolationType interpolation)
 
InterpolationType getInterpolation () const
 
void setWrapping (std::span< const GLenum > wrapping)
 
void getWrapping (std::span< GLenum > wrapping) const
 
void download (void *data) const
 
void downloadToPBO () const
 
void loadFromPBO (const Texture *)
 
- Public Member Functions inherited from inviwo::TextureBase
 TextureBase (GLenum target)
 
 TextureBase (const TextureBase &other)
 
 TextureBase (TextureBase &&other)
 
TextureBaseoperator= (const TextureBase &other)
 
TextureBaseoperator= (TextureBase &&other)
 
GLuint getID () const
 
GLenum getTarget () const
 
void bind () const
 
void unbind () const
 
- Public Member Functions inherited from inviwo::Observable< TextureObserver >
 Observable (const Observable< TextureObserver > &other)
 
 Observable (Observable< TextureObserver > &&other) noexcept
 
Observable< TextureObserver > & operator= (const Observable< TextureObserver > &other)
 
Observable< TextureObserver > & operator= (Observable< TextureObserver > &&other) noexcept
 
void addObserver (TextureObserver *observer)
 
void removeObserver (TextureObserver *observer)
 
virtual void startBlockingNotifications () override final
 
virtual void stopBlockingNotifications () override final
 
- Public Member Functions inherited from inviwo::ObservableInterface

Additional Inherited Members

- Protected Member Functions inherited from inviwo::Texture
void bindFromPBO () const
 
void bindToPBO () const
 
void unbindFromPBO () const
 
void unbindToPBO () const
 
void setupAsyncReadBackPBO () const
 
void setPBOAsInvalid ()
 
- Protected Member Functions inherited from inviwo::Observable< TextureObserver >
void forEachObserver (C callback)
 
- Protected Member Functions inherited from inviwo::ObservableInterface
void addObservationHelper (Observer *observer)
 
void removeObservationHelper (Observer *observer)
 
- Static Protected Member Functions inherited from inviwo::Texture
static size_t targetDims (GLenum target)
 
static GLuint channels (GLenum format)
 
static size_t dataTypeSize (GLenum dataType)
 
- Protected Attributes inherited from inviwo::Texture
GLenum format_
 
GLenum internalformat_
 
GLenum dataType_
 
GLint level_
 
std::mutex syncMutex
 
GLsync syncObj = 0
 
- Protected Attributes inherited from inviwo::TextureBase
GLuint id_
 
GLenum target_
 
- Static Protected Attributes inherited from inviwo::Texture
static constexpr std::array< GLenum, 3 > wrapNames
 
static constexpr std::array< std::pair< GLenum, size_t >, 5 > targetToDim
 

Member Function Documentation

◆ clone()

Texture3D * inviwo::Texture3D::clone ( ) const
virtual

Implements inviwo::Texture.

◆ getNumberOfValues()

size_t inviwo::Texture3D::getNumberOfValues ( ) const
virtual

Implements inviwo::Texture.

◆ upload()

void inviwo::Texture3D::upload ( const void * data)
virtual

Implements inviwo::Texture.


The documentation for this class was generated from the following file: