VTK  9.6.1
vtkTextureObject Class Reference

In case DepthTextureCompare is true, specify the comparison function in use. More...

#include <vtkTextureObject.h>

Inheritance diagram for vtkTextureObject:
[legend]
Collaboration diagram for vtkTextureObject:
[legend]

Public Types

enum  {
  Lequal = 0 , Gequal , Less , Greater ,
  Equal , NotEqual , AlwaysTrue , Never ,
  NumberOfDepthTextureCompareFunctions
}
enum  {
  ClampToEdge = 0 , Repeat , MirroredRepeat , ClampToBorder ,
  NumberOfWrapModes
}
enum  {
  Nearest = 0 , Linear , NearestMipmapNearest , NearestMipmapLinear ,
  LinearMipmapNearest , LinearMipmapLinear , NumberOfMinificationModes
}
enum  {
  Native = 0 , Fixed8 , Fixed16 , Fixed24 ,
  Fixed32 , Float16 , Float32 , NumberOfDepthFormats
}
enum  {
  Lequal = 0 , Gequal , Less , Greater ,
  Equal , NotEqual , AlwaysTrue , Never ,
  NumberOfDepthTextureCompareFunctions
}
enum  {
  ClampToEdge = 0 , Repeat , MirroredRepeat , ClampToBorder ,
  NumberOfWrapModes
}
enum  {
  Nearest = 0 , Linear , NearestMipmapNearest , NearestMipmapLinear ,
  LinearMipmapNearest , LinearMipmapLinear , NumberOfMinificationModes
}
enum  {
  Native = 0 , Fixed8 , Fixed16 , Fixed24 ,
  Fixed32 , Float16 , Float32 , NumberOfDepthFormats
}
typedef vtkObject Superclass
typedef vtkObject Superclass

Public Member Functions

virtual vtkTypeBool IsA (const char *type)
 Return 1 if this class is the same type of (or a subclass of) the named class.
vtkTextureObjectNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent) override
 Methods invoked by print to print information about the object including superclasses.
virtual int GetNumberOfDimensions ()
virtual void SetSamples (unsigned int)
int GetTextureUnit ()
 Return the texture unit used for this texture.
virtual void Activate ()
 Activate and Bind the texture.
void Deactivate ()
 Deactivate and UnBind the texture.
virtual void ReleaseGraphicsResources (vtkWindow *win)
 Deactivate and UnBind the texture.
bool IsBound ()
 Tells if the texture object is bound to the active texture image unit.
void SendParameters ()
 Send all the texture object parameters to the hardware if not done yet.
bool Create2DFromRaw (unsigned int width, unsigned int height, int numComps, int dataType, void *data)
 Create a 2D texture from client memory numComps must be in [1-4].
bool Create2DArrayFromRaw (unsigned int width, unsigned int height, int numComps, int dataType, int nbLayers, void *data)
 Create a 2D texture array from client memory data contains a pointer to the layers of the texture array.
bool CreateDepthFromRaw (unsigned int width, unsigned int height, int internalFormat, int rawType, void *raw)
 Create a 2D depth texture using a raw pointer.
bool CreateTextureBuffer (unsigned int numValues, int numComps, int dataType, vtkOpenGLBufferObject *bo)
 Create a texture buffer basically a 1D texture that can be very large for passing data into the fragment shader.
bool EmulateTextureBufferWith2DTextures (unsigned int numValues, int numComps, int dataType, vtkOpenGLBufferObject *bo)
 Emulates a texture buffer with 2D texture.
bool CreateCubeFromRaw (unsigned int width, unsigned int height, int numComps, int dataType, void *data[6])
 Create a cube texture from 6 buffers from client memory.
bool Create1D (int numComps, vtkPixelBufferObject *pbo, bool shaderSupportsTextureInt)
 Create a 1D texture using the PBO.
bool Create1DFromRaw (unsigned int width, int numComps, int dataType, void *data)
 Create 1D texture from client memory.
bool Create2D (unsigned int width, unsigned int height, int numComps, vtkPixelBufferObject *pbo, bool shaderSupportsTextureInt)
 Create a 2D texture using the PBO.
bool Create3D (unsigned int width, unsigned int height, unsigned int depth, int numComps, vtkPixelBufferObject *pbo, bool shaderSupportsTextureInt)
 Create a 3D texture using the PBO.
bool Create3DFromRaw (unsigned int width, unsigned int height, unsigned int depth, int numComps, int dataType, void *data)
 Create a 3D texture from client memory numComps must be in [1-4].
bool AllocateProxyTexture3D (unsigned int width, unsigned int height, unsigned int depth, int numComps, int dataType)
 Create a 3D texture using the GL_PROXY_TEXTURE_3D target.
vtkPixelBufferObjectDownload ()
 This is used to download raw data from the texture into a pixel buffer.
vtkPixelBufferObjectDownload (unsigned int target, unsigned int level)
bool CreateDepth (unsigned int width, unsigned int height, int internalFormat, vtkPixelBufferObject *pbo)
 Create a 2D depth texture using a PBO.
bool AllocateDepth (unsigned int width, unsigned int height, int internalFormat)
 Create a 2D depth texture but does not initialize its values.
bool AllocateDepthStencil (unsigned int width, unsigned int height)
 Create a 2D septh stencil texture but does not initialize its values.
bool Allocate1D (unsigned int width, int numComps, int vtkType)
 Create a 1D color texture but does not initialize its values.
bool Allocate2D (unsigned int width, unsigned int height, int numComps, int vtkType, int level=0)
 Create a 2D color texture but does not initialize its values.
bool Allocate3D (unsigned int width, unsigned int height, unsigned int depth, int numComps, int vtkType)
 Create a 3D color texture but does not initialize its values.
int GetVTKDataType ()
 Get the data type for the texture as a vtk type int i.e.
void ResetFormatAndType ()
 Reset format, internal format, and type of the texture.
unsigned int GetMinificationFilterMode (int vtktype)
unsigned int GetMagnificationFilterMode (int vtktype)
unsigned int GetWrapSMode (int vtktype)
unsigned int GetWrapTMode (int vtktype)
unsigned int GetWrapRMode (int vtktype)
void SetLinearMagnification (bool val)
 Tells if the magnification mode is linear (true) or nearest (false).
bool GetLinearMagnification ()
virtual vtkTypeBool IsA (const char *type)
 Return 1 if this class is the same type of (or a subclass of) the named class.
vtkTextureObjectNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent) override
 Methods invoked by print to print information about the object including superclasses.
virtual int GetNumberOfDimensions ()
virtual void SetSamples (unsigned int)
int GetTextureUnit ()
 Return the texture unit used for this texture.
virtual void Activate ()
 Activate and Bind the texture.
void Deactivate ()
 Deactivate and UnBind the texture.
virtual void ReleaseGraphicsResources (vtkWindow *win)
 Deactivate and UnBind the texture.
bool IsBound ()
 Tells if the texture object is bound to the active texture image unit.
void SendParameters ()
 Send all the texture object parameters to the hardware if not done yet.
bool Create2DFromRaw (unsigned int width, unsigned int height, int numComps, int dataType, void *data)
 Create a 2D texture from client memory numComps must be in [1-4].
bool Create2DArrayFromRaw (unsigned int width, unsigned int height, int numComps, int dataType, int nbLayers, void *data)
 Create a 2D texture array from client memory data contains a pointer to the layers of the texture array.
bool CreateDepthFromRaw (unsigned int width, unsigned int height, int internalFormat, int rawType, void *raw)
 Create a 2D depth texture using a raw pointer.
bool CreateTextureBuffer (unsigned int numValues, int numComps, int dataType, vtkOpenGLBufferObject *bo)
 Create a texture buffer basically a 1D texture that can be very large for passing data into the fragment shader.
bool EmulateTextureBufferWith2DTextures (unsigned int numValues, int numComps, int dataType, vtkOpenGLBufferObject *bo)
 Emulates a texture buffer with 2D texture.
bool CreateCubeFromRaw (unsigned int width, unsigned int height, int numComps, int dataType, void *data[6])
 Create a cube texture from 6 buffers from client memory.
bool Create1D (int numComps, vtkPixelBufferObject *pbo, bool shaderSupportsTextureInt)
 Create a 1D texture using the PBO.
bool Create1DFromRaw (unsigned int width, int numComps, int dataType, void *data)
 Create 1D texture from client memory.
bool Create2D (unsigned int width, unsigned int height, int numComps, vtkPixelBufferObject *pbo, bool shaderSupportsTextureInt)
 Create a 2D texture using the PBO.
bool Create3D (unsigned int width, unsigned int height, unsigned int depth, int numComps, vtkPixelBufferObject *pbo, bool shaderSupportsTextureInt)
 Create a 3D texture using the PBO.
bool Create3DFromRaw (unsigned int width, unsigned int height, unsigned int depth, int numComps, int dataType, void *data)
 Create a 3D texture from client memory numComps must be in [1-4].
bool AllocateProxyTexture3D (unsigned int width, unsigned int height, unsigned int depth, int numComps, int dataType)
 Create a 3D texture using the GL_PROXY_TEXTURE_3D target.
vtkPixelBufferObjectDownload ()
 This is used to download raw data from the texture into a pixel buffer.
vtkPixelBufferObjectDownload (unsigned int target, unsigned int level)
bool CreateDepth (unsigned int width, unsigned int height, int internalFormat, vtkPixelBufferObject *pbo)
 Create a 2D depth texture using a PBO.
bool AllocateDepth (unsigned int width, unsigned int height, int internalFormat)
 Create a 2D depth texture but does not initialize its values.
bool AllocateDepthStencil (unsigned int width, unsigned int height)
 Create a 2D septh stencil texture but does not initialize its values.
bool Allocate1D (unsigned int width, int numComps, int vtkType)
 Create a 1D color texture but does not initialize its values.
bool Allocate2D (unsigned int width, unsigned int height, int numComps, int vtkType, int level=0)
 Create a 2D color texture but does not initialize its values.
bool Allocate3D (unsigned int width, unsigned int height, unsigned int depth, int numComps, int vtkType)
 Create a 3D color texture but does not initialize its values.
int GetVTKDataType ()
 Get the data type for the texture as a vtk type int i.e.
void ResetFormatAndType ()
 Reset format, internal format, and type of the texture.
unsigned int GetMinificationFilterMode (int vtktype)
unsigned int GetMagnificationFilterMode (int vtktype)
unsigned int GetWrapSMode (int vtktype)
unsigned int GetWrapTMode (int vtktype)
unsigned int GetWrapRMode (int vtktype)
void SetLinearMagnification (bool val)
 Tells if the magnification mode is linear (true) or nearest (false).
bool GetLinearMagnification ()
void SetContext (vtkOpenGLRenderWindow *)
 Get/Set the context.
vtkOpenGLRenderWindowGetContext ()
 Get/Set the context.
virtual unsigned int GetWidth ()
 Get the texture dimensions.
virtual unsigned int GetHeight ()
 Get the texture dimensions.
virtual unsigned int GetDepth ()
 Get the texture dimensions.
virtual unsigned int GetSamples ()
 Get the texture dimensions.
virtual int GetComponents ()
 Get the texture dimensions.
unsigned int GetTuples ()
 Get the texture dimensions.
virtual unsigned int GetTarget ()
 Returns OpenGL texture target to which the texture is/can be bound.
virtual unsigned int GetHandle ()
 Returns the OpenGL handle.
void Bind ()
 Bind the texture, must have been created using Create().
virtual void SetAutoParameters (int)
 Get/Set AutoParameters flag.
virtual int GetAutoParameters ()
 Get/Set AutoParameters flag.
virtual void AutoParametersOn ()
 Get/Set AutoParameters flag.
virtual void AutoParametersOff ()
 Get/Set AutoParameters flag.
bool Create2D (unsigned int width, unsigned int height, int numComps, int vtktype, bool)
 Create texture without uploading any data.
bool Create3D (unsigned int width, unsigned int height, unsigned int depth, int numComps, int vtktype, bool)
 Create texture without uploading any data.
int GetDataType (int vtk_scalar_type)
 Get the data type for the texture as GLenum type.
void SetDataType (unsigned int glType)
 Get the data type for the texture as GLenum type.
int GetDefaultDataType (int vtk_scalar_type)
 Get the data type for the texture as GLenum type.
unsigned int GetInternalFormat (int vtktype, int numComps, bool shaderSupportsTextureInt)
 Get/Set internal format (OpenGL internal format) that should be used.
void SetInternalFormat (unsigned int glInternalFormat)
 Get/Set internal format (OpenGL internal format) that should be used.
unsigned int GetDefaultInternalFormat (int vtktype, int numComps, bool shaderSupportsTextureInt)
 Get/Set internal format (OpenGL internal format) that should be used.
unsigned int GetFormat (int vtktype, int numComps, bool shaderSupportsTextureInt)
 Get/Set format (OpenGL internal format) that should be used.
void SetFormat (unsigned int glFormat)
 Get/Set format (OpenGL internal format) that should be used.
unsigned int GetDefaultFormat (int vtktype, int numComps, bool shaderSupportsTextureInt)
 Get/Set format (OpenGL internal format) that should be used.
virtual void SetRequireDepthBufferFloat (bool)
 Optional, require support for floating point depth buffer formats.
virtual bool GetRequireDepthBufferFloat ()
 Optional, require support for floating point depth buffer formats.
virtual bool GetSupportsDepthBufferFloat ()
 Optional, require support for floating point depth buffer formats.
virtual void SetRequireTextureFloat (bool)
 Optional, require support for floating point texture formats.
virtual bool GetRequireTextureFloat ()
 Optional, require support for floating point texture formats.
virtual bool GetSupportsTextureFloat ()
 Optional, require support for floating point texture formats.
virtual void SetRequireTextureInteger (bool)
 Optional, require support for integer texture formats.
virtual bool GetRequireTextureInteger ()
 Optional, require support for integer texture formats.
virtual bool GetSupportsTextureInteger ()
 Optional, require support for integer texture formats.
virtual int GetWrapS ()
 Wrap mode for the first texture coordinate "s" Valid values are:
virtual void SetWrapS (int)
 Wrap mode for the first texture coordinate "s" Valid values are:
virtual int GetWrapT ()
 Wrap mode for the first texture coordinate "t" Valid values are:
virtual void SetWrapT (int)
 Wrap mode for the first texture coordinate "t" Valid values are:
virtual int GetWrapR ()
 Wrap mode for the first texture coordinate "r" Valid values are:
virtual void SetWrapR (int)
 Wrap mode for the first texture coordinate "r" Valid values are:
virtual int GetMinificationFilter ()
 Minification filter mode.
virtual void SetMinificationFilter (int)
 Minification filter mode.
virtual int GetMagnificationFilter ()
 Magnification filter mode.
virtual void SetMagnificationFilter (int)
 Magnification filter mode.
virtual void SetBorderColor (float, float, float, float)
 Border Color (RGBA).
virtual void SetBorderColor (float[4])
 Border Color (RGBA).
virtual float * GetBorderColor ()
 Border Color (RGBA).
virtual void GetBorderColor (float &, float &, float &, float &)
 Border Color (RGBA).
virtual void GetBorderColor (float[4])
 Border Color (RGBA).
virtual void SetMinLOD (float)
 Lower-clamp the computed LOD against this value.
virtual float GetMinLOD ()
 Lower-clamp the computed LOD against this value.
virtual void SetMaxLOD (float)
 Upper-clamp the computed LOD against this value.
virtual float GetMaxLOD ()
 Upper-clamp the computed LOD against this value.
virtual void SetBaseLevel (int)
 Level of detail of the first texture image.
virtual int GetBaseLevel ()
 Level of detail of the first texture image.
virtual void SetMaxLevel (int)
 Level of detail of the first texture image.
virtual int GetMaxLevel ()
 Level of detail of the first texture image.
void SetContext (vtkOpenGLRenderWindow *)
 Get/Set the context.
vtkOpenGLRenderWindowGetContext ()
 Get/Set the context.
virtual unsigned int GetWidth ()
 Get the texture dimensions.
virtual unsigned int GetHeight ()
 Get the texture dimensions.
virtual unsigned int GetDepth ()
 Get the texture dimensions.
virtual unsigned int GetSamples ()
 Get the texture dimensions.
virtual int GetComponents ()
 Get the texture dimensions.
unsigned int GetTuples ()
 Get the texture dimensions.
virtual unsigned int GetTarget ()
 Returns OpenGL texture target to which the texture is/can be bound.
virtual unsigned int GetHandle ()
 Returns the OpenGL handle.
void Bind ()
 Bind the texture, must have been created using Create().
virtual void SetAutoParameters (int)
 Get/Set AutoParameters flag.
virtual int GetAutoParameters ()
 Get/Set AutoParameters flag.
virtual void AutoParametersOn ()
 Get/Set AutoParameters flag.
virtual void AutoParametersOff ()
 Get/Set AutoParameters flag.
bool Create2D (unsigned int width, unsigned int height, int numComps, int vtktype, bool)
 Create texture without uploading any data.
bool Create3D (unsigned int width, unsigned int height, unsigned int depth, int numComps, int vtktype, bool)
 Create texture without uploading any data.
int GetDataType (int vtk_scalar_type)
 Get the data type for the texture as GLenum type.
void SetDataType (unsigned int glType)
 Get the data type for the texture as GLenum type.
int GetDefaultDataType (int vtk_scalar_type)
 Get the data type for the texture as GLenum type.
unsigned int GetInternalFormat (int vtktype, int numComps, bool shaderSupportsTextureInt)
 Get/Set internal format (OpenGL internal format) that should be used.
void SetInternalFormat (unsigned int glInternalFormat)
 Get/Set internal format (OpenGL internal format) that should be used.
unsigned int GetDefaultInternalFormat (int vtktype, int numComps, bool shaderSupportsTextureInt)
 Get/Set internal format (OpenGL internal format) that should be used.
unsigned int GetFormat (int vtktype, int numComps, bool shaderSupportsTextureInt)
 Get/Set format (OpenGL internal format) that should be used.
void SetFormat (unsigned int glFormat)
 Get/Set format (OpenGL internal format) that should be used.
unsigned int GetDefaultFormat (int vtktype, int numComps, bool shaderSupportsTextureInt)
 Get/Set format (OpenGL internal format) that should be used.
virtual void SetRequireDepthBufferFloat (bool)
 Optional, require support for floating point depth buffer formats.
virtual bool GetRequireDepthBufferFloat ()
 Optional, require support for floating point depth buffer formats.
virtual bool GetSupportsDepthBufferFloat ()
 Optional, require support for floating point depth buffer formats.
virtual void SetRequireTextureFloat (bool)
 Optional, require support for floating point texture formats.
virtual bool GetRequireTextureFloat ()
 Optional, require support for floating point texture formats.
virtual bool GetSupportsTextureFloat ()
 Optional, require support for floating point texture formats.
virtual void SetRequireTextureInteger (bool)
 Optional, require support for integer texture formats.
virtual bool GetRequireTextureInteger ()
 Optional, require support for integer texture formats.
virtual bool GetSupportsTextureInteger ()
 Optional, require support for integer texture formats.
virtual int GetWrapS ()
 Wrap mode for the first texture coordinate "s" Valid values are:
virtual void SetWrapS (int)
 Wrap mode for the first texture coordinate "s" Valid values are:
virtual int GetWrapT ()
 Wrap mode for the first texture coordinate "t" Valid values are:
virtual void SetWrapT (int)
 Wrap mode for the first texture coordinate "t" Valid values are:
virtual int GetWrapR ()
 Wrap mode for the first texture coordinate "r" Valid values are:
virtual void SetWrapR (int)
 Wrap mode for the first texture coordinate "r" Valid values are:
virtual int GetMinificationFilter ()
 Minification filter mode.
virtual void SetMinificationFilter (int)
 Minification filter mode.
virtual int GetMagnificationFilter ()
 Magnification filter mode.
virtual void SetMagnificationFilter (int)
 Magnification filter mode.
virtual void SetBorderColor (float, float, float, float)
 Border Color (RGBA).
virtual void SetBorderColor (float[4])
 Border Color (RGBA).
virtual float * GetBorderColor ()
 Border Color (RGBA).
virtual void GetBorderColor (float &, float &, float &, float &)
 Border Color (RGBA).
virtual void GetBorderColor (float[4])
 Border Color (RGBA).
virtual void SetMinLOD (float)
 Lower-clamp the computed LOD against this value.
virtual float GetMinLOD ()
 Lower-clamp the computed LOD against this value.
virtual void SetMaxLOD (float)
 Upper-clamp the computed LOD against this value.
virtual float GetMaxLOD ()
 Upper-clamp the computed LOD against this value.
virtual void SetBaseLevel (int)
 Level of detail of the first texture image.
virtual int GetBaseLevel ()
 Level of detail of the first texture image.
virtual void SetMaxLevel (int)
 Level of detail of the first texture image.
virtual int GetMaxLevel ()
 Level of detail of the first texture image.
Public Member Functions inherited from vtkObject
 vtkBaseTypeMacro (vtkObject, vtkObjectBase)
virtual void DebugOn ()
 Turn debugging output on.
virtual void DebugOff ()
 Turn debugging output off.
bool GetDebug ()
 Get the value of the debug flag.
void SetDebug (bool debugFlag)
 Set the value of the debug flag.
virtual void Modified ()
 Update the modification time for this object.
virtual vtkMTimeType GetMTime ()
 Return this object's modified time.
void RemoveObserver (unsigned long tag)
void RemoveObservers (unsigned long event)
void RemoveObservers (const char *event)
void RemoveAllObservers ()
vtkTypeBool HasObserver (unsigned long event)
vtkTypeBool HasObserver (const char *event)
vtkTypeBool InvokeEvent (unsigned long event)
vtkTypeBool InvokeEvent (const char *event)
std::string GetObjectDescription () const override
 The object description printed in messages and PrintSelf output.
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object.
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object.
vtkCommandGetCommand (unsigned long tag)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object.
void RemoveObserver (vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object.
void RemoveObservers (unsigned long event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object.
void RemoveObservers (const char *event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object.
vtkTypeBool HasObserver (unsigned long event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object.
vtkTypeBool HasObserver (const char *event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object.
template<class U, class T>
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 Overloads to AddObserver that allow developers to add class member functions as callbacks for events.
template<class U, class T>
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 Overloads to AddObserver that allow developers to add class member functions as callbacks for events.
template<class U, class T>
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 Allow user to set the AbortFlagOn() with the return value of the callback method.
vtkTypeBool InvokeEvent (unsigned long event, void *callData)
 This method invokes an event and return whether the event was aborted or not.
vtkTypeBool InvokeEvent (const char *event, void *callData)
 This method invokes an event and return whether the event was aborted or not.
virtual void SetObjectName (const std::string &objectName)
 Set/get the name of this object for reporting purposes.
virtual std::string GetObjectName () const
 Set/get the name of this object for reporting purposes.
Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 Return the class name as a string.
virtual vtkIdType GetNumberOfGenerationsFromBase (const char *name)
 Given the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class).
virtual void Delete ()
 Delete a VTK object.
virtual void FastDelete ()
 Delete a reference to this object.
void InitializeObjectBase ()
void Print (ostream &os)
 Print an object to an ostream.
void Register (vtkObjectBase *o)
 Increase the reference count (mark as used by another object).
virtual void UnRegister (vtkObjectBase *o)
 Decrease the reference count (release by another object).
int GetReferenceCount ()
 Return the current reference count of this object.
void SetReferenceCount (int)
 Sets the reference count.
bool GetIsInMemkind () const
 A local state flag that remembers whether this object lives in the normal or extended memory space.
virtual void PrintHeader (ostream &os, vtkIndent indent)
 Methods invoked by print to print information about the object including superclasses.
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 Methods invoked by print to print information about the object including superclasses.
virtual bool UsesGarbageCollector () const
 Indicate whether the class uses vtkGarbageCollector or not.

Static Public Member Functions

static vtkTextureObjectNew ()
static vtkTypeBool IsTypeOf (const char *type)
static vtkTextureObjectSafeDownCast (vtkObjectBase *o)
static vtkTextureObjectNew ()
static vtkTypeBool IsTypeOf (const char *type)
static vtkTextureObjectSafeDownCast (vtkObjectBase *o)
Static Public Member Functions inherited from vtkObject
static vtkObjectNew ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
static void BreakOnError ()
 This method is called when vtkErrorMacro executes.
static void SetGlobalWarningDisplay (vtkTypeBool val)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
static void GlobalWarningDisplayOn ()
 This is a global flag that controls whether any debug, warning or error messages are displayed.
static void GlobalWarningDisplayOff ()
 This is a global flag that controls whether any debug, warning or error messages are displayed.
static vtkTypeBool GetGlobalWarningDisplay ()
 This is a global flag that controls whether any debug, warning or error messages are displayed.
Static Public Member Functions inherited from vtkObjectBase
static vtkTypeBool IsTypeOf (const char *name)
 Return 1 if this class type is the same type of (or a subclass of) the named class.
static vtkIdType GetNumberOfGenerationsFromBaseType (const char *name)
 Given a the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class).
static vtkObjectBaseNew ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
static void SetMemkindDirectory (const char *directoryname)
 The name of a directory, ideally mounted -o dax, to memory map an extended memory space within.
static bool GetUsingMemkind ()
 A global state flag that controls whether vtkObjects are constructed in the usual way (the default) or within the extended memory space.

Public Attributes

enum vtkTextureObject:: { ... }  GetGenerateMipmap

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
virtual vtkObjectBaseNewInstanceInternal () const
Protected Member Functions inherited from vtkObject
 vtkObject ()
 ~vtkObject () override
void RegisterInternal (vtkObjectBase *, vtkTypeBool check) override
void UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) override
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=nullptr)
 These methods allow a command to exclusively grab all events.
void InternalReleaseFocus ()
 These methods allow a command to exclusively grab all events.
Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
virtual ~vtkObjectBase ()
virtual void ReportReferences (vtkGarbageCollector *)
 vtkObjectBase (const vtkObjectBase &)
void operator= (const vtkObjectBase &)

Additional Inherited Members

Static Protected Member Functions inherited from vtkObjectBase
static vtkMallocingFunction GetCurrentMallocFunction ()
static vtkReallocingFunction GetCurrentReallocFunction ()
static vtkFreeingFunction GetCurrentFreeFunction ()
static vtkFreeingFunction GetAlternateFreeFunction ()
Protected Attributes inherited from vtkObject
bool Debug
vtkTimeStamp MTime
vtkSubjectHelper * SubjectHelper
std::string ObjectName
Protected Attributes inherited from vtkObjectBase
std::atomic< int32_t > ReferenceCount
vtkWeakPointerBase ** WeakPointers

Detailed Description

In case DepthTextureCompare is true, specify the comparison function in use.

abstracts an OpenGL texture object.

The result of the comparison is noted `r'. Valid values are:

  • Value
  • Lequal: r=R<=Dt ? 1.0 : 0.0
  • Gequal: r=R>=Dt ? 1.0 : 0.0
  • Less: r=R<D_t ? 1.0 : 0.0
  • Greater: r=R>Dt ? 1.0 : 0.0
  • Equal: r=R==Dt ? 1.0 : 0.0
  • NotEqual: r=R!=Dt ? 1.0 : 0.0
  • AlwaysTrue: r=1.0
  • Never: r=0.0 If the magnification of minification factor are not nearest, percentage closer filtering (PCF) is used: R is compared to several D_t and r is the average of the comparisons (it is NOT the average of D_t compared once to R). Initial value is Lequal, as in OpenGL spec. Ignored if the texture object is not a depth texture. */ virtual int GetDepthTextureCompareFunction (); ; virtual void SetDepthTextureCompareFunction ( int ); ; /

vtkTextureObject represents an OpenGL texture object. It provides API to create textures using data already loaded into pixel buffer objects. It can also be used to create textures without uploading any data.

Tests:
vtkTextureObject (Tests)

Definition at line 33 of file vtkTextureObject.h.

Member Typedef Documentation

◆ Superclass [1/2]

Definition at line 86 of file vtkTextureObject.h.

◆ Superclass [2/2]

Definition at line 86 of file vtkTextureObject.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Lequal 
Gequal 
Less 
Greater 
Equal 
NotEqual 
AlwaysTrue 
Never 
NumberOfDepthTextureCompareFunctions 

Definition at line 37 of file vtkTextureObject.h.

◆ anonymous enum

anonymous enum
Enumerator
ClampToEdge 
Repeat 
MirroredRepeat 
ClampToBorder 
NumberOfWrapModes 

Definition at line 51 of file vtkTextureObject.h.

◆ anonymous enum

anonymous enum
Enumerator
Nearest 
Linear 
NearestMipmapNearest 
NearestMipmapLinear 
LinearMipmapNearest 
LinearMipmapLinear 
NumberOfMinificationModes 

Definition at line 61 of file vtkTextureObject.h.

◆ anonymous enum

anonymous enum
Enumerator
Native 
Fixed8 
Fixed16 
Fixed24 
Fixed32 
Float16 
Float32 
NumberOfDepthFormats 

Definition at line 73 of file vtkTextureObject.h.

◆ anonymous enum

anonymous enum
Enumerator
Lequal 
Gequal 
Less 
Greater 
Equal 
NotEqual 
AlwaysTrue 
Never 
NumberOfDepthTextureCompareFunctions 

Definition at line 37 of file vtkTextureObject.h.

◆ anonymous enum

anonymous enum
Enumerator
ClampToEdge 
Repeat 
MirroredRepeat 
ClampToBorder 
NumberOfWrapModes 

Definition at line 51 of file vtkTextureObject.h.

◆ anonymous enum

anonymous enum
Enumerator
Nearest 
Linear 
NearestMipmapNearest 
NearestMipmapLinear 
LinearMipmapNearest 
LinearMipmapLinear 
NumberOfMinificationModes 

Definition at line 61 of file vtkTextureObject.h.

◆ anonymous enum

anonymous enum
Enumerator
Native 
Fixed8 
Fixed16 
Fixed24 
Fixed32 
Float16 
Float32 
NumberOfDepthFormats 

Definition at line 73 of file vtkTextureObject.h.

Member Function Documentation

◆ New() [1/2]

vtkTextureObject * vtkTextureObject::New ( )
static

◆ IsTypeOf() [1/2]

vtkTypeBool vtkTextureObject::IsTypeOf ( const char * type)
static

◆ IsA() [1/2]

virtual vtkTypeBool vtkTextureObject::IsA ( const char * name)
virtual

Return 1 if this class is the same type of (or a subclass of) the named class.

Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObjectBase.

Reimplemented in vtkQWidgetTexture.

◆ SafeDownCast() [1/2]

vtkTextureObject * vtkTextureObject::SafeDownCast ( vtkObjectBase * o)
static

◆ NewInstanceInternal() [1/2]

virtual vtkObjectBase * vtkTextureObject::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented in vtkQWidgetTexture.

◆ NewInstance() [1/2]

vtkTextureObject * vtkTextureObject::NewInstance ( ) const

◆ PrintSelf() [1/2]

void vtkTextureObject::PrintSelf ( ostream & os,
vtkIndent indent )
overridevirtual

Methods invoked by print to print information about the object including superclasses.

Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkObject.

◆ SetContext() [1/2]

void vtkTextureObject::SetContext ( vtkOpenGLRenderWindow * )

Get/Set the context.

This does not increase the reference count of the context to avoid reference loops.

{ this->TextureObject = vtkTextureObject::New(); }SetContext() may raise an error if the OpenGL context does not support the required OpenGL extensions.

◆ GetContext() [1/2]

vtkOpenGLRenderWindow * vtkTextureObject::GetContext ( )

Get/Set the context.

This does not increase the reference count of the context to avoid reference loops.

{ this->TextureObject = vtkTextureObject::New(); }SetContext() may raise an error if the OpenGL context does not support the required OpenGL extensions.

◆ GetWidth() [1/2]

virtual unsigned int vtkTextureObject::GetWidth ( )
virtual

Get the texture dimensions.

These are the properties of the OpenGL texture this instance represents.

◆ GetHeight() [1/2]

virtual unsigned int vtkTextureObject::GetHeight ( )
virtual

Get the texture dimensions.

These are the properties of the OpenGL texture this instance represents.

◆ GetDepth() [1/2]

virtual unsigned int vtkTextureObject::GetDepth ( )
virtual

Get the texture dimensions.

These are the properties of the OpenGL texture this instance represents.

◆ GetSamples() [1/2]

virtual unsigned int vtkTextureObject::GetSamples ( )
virtual

Get the texture dimensions.

These are the properties of the OpenGL texture this instance represents.

◆ GetComponents() [1/2]

virtual int vtkTextureObject::GetComponents ( )
virtual

Get the texture dimensions.

These are the properties of the OpenGL texture this instance represents.

◆ GetTuples() [1/2]

unsigned int vtkTextureObject::GetTuples ( )
inline

Get the texture dimensions.

These are the properties of the OpenGL texture this instance represents.

Definition at line 113 of file vtkTextureObject.h.

◆ GetNumberOfDimensions() [1/2]

virtual int vtkTextureObject::GetNumberOfDimensions ( )
virtual

◆ SetSamples() [1/2]

virtual void vtkTextureObject::SetSamples ( unsigned int )
virtual

◆ GetTarget() [1/2]

virtual unsigned int vtkTextureObject::GetTarget ( )
virtual

Returns OpenGL texture target to which the texture is/can be bound.

◆ GetHandle() [1/2]

virtual unsigned int vtkTextureObject::GetHandle ( )
virtual

Returns the OpenGL handle.

◆ GetTextureUnit() [1/2]

int vtkTextureObject::GetTextureUnit ( )

Return the texture unit used for this texture.

◆ Bind() [1/2]

void vtkTextureObject::Bind ( )

Bind the texture, must have been created using Create().

A side affect is that tex parameters are sent. RenderWindow must be set before calling this.

◆ Activate() [1/2]

virtual void vtkTextureObject::Activate ( )
virtual

Activate and Bind the texture.

Reimplemented in vtkQWidgetTexture.

◆ Deactivate() [1/2]

void vtkTextureObject::Deactivate ( )

Deactivate and UnBind the texture.

◆ ReleaseGraphicsResources() [1/2]

virtual void vtkTextureObject::ReleaseGraphicsResources ( vtkWindow * win)
virtual

Deactivate and UnBind the texture.

Reimplemented in vtkQWidgetTexture.

◆ IsBound() [1/2]

bool vtkTextureObject::IsBound ( )

Tells if the texture object is bound to the active texture image unit.

(a texture object can be bound to multiple texture image unit).

◆ SendParameters() [1/2]

void vtkTextureObject::SendParameters ( )

Send all the texture object parameters to the hardware if not done yet.

Parameters are automatically sent as a side affect of Bind. Disable this by setting AutoParameters 0.

Precondition
is_bound: IsBound()

◆ SetAutoParameters() [1/2]

virtual void vtkTextureObject::SetAutoParameters ( int )
virtual

Get/Set AutoParameters flag.

When enabled, SendParameters method is called automatically when the texture is bound.

◆ GetAutoParameters() [1/2]

virtual int vtkTextureObject::GetAutoParameters ( )
virtual

Get/Set AutoParameters flag.

When enabled, SendParameters method is called automatically when the texture is bound.

◆ AutoParametersOn() [1/2]

virtual void vtkTextureObject::AutoParametersOn ( )
virtual

Get/Set AutoParameters flag.

When enabled, SendParameters method is called automatically when the texture is bound.

◆ AutoParametersOff() [1/2]

virtual void vtkTextureObject::AutoParametersOff ( )
virtual

Get/Set AutoParameters flag.

When enabled, SendParameters method is called automatically when the texture is bound.

◆ Create2DFromRaw() [1/2]

bool vtkTextureObject::Create2DFromRaw ( unsigned int width,
unsigned int height,
int numComps,
int dataType,
void * data )

Create a 2D texture from client memory numComps must be in [1-4].

◆ Create2DArrayFromRaw() [1/2]

bool vtkTextureObject::Create2DArrayFromRaw ( unsigned int width,
unsigned int height,
int numComps,
int dataType,
int nbLayers,
void * data )

Create a 2D texture array from client memory data contains a pointer to the layers of the texture array.

All layers must be the same size and contiguous in memory. If data is null, the texture is allocated without initialization.

◆ CreateDepthFromRaw() [1/2]

bool vtkTextureObject::CreateDepthFromRaw ( unsigned int width,
unsigned int height,
int internalFormat,
int rawType,
void * raw )

Create a 2D depth texture using a raw pointer.

This is a blocking call. If you can, use PBO instead. raw can be null in order to allocate texture without initialization.

◆ CreateTextureBuffer() [1/2]

bool vtkTextureObject::CreateTextureBuffer ( unsigned int numValues,
int numComps,
int dataType,
vtkOpenGLBufferObject * bo )

Create a texture buffer basically a 1D texture that can be very large for passing data into the fragment shader.

◆ EmulateTextureBufferWith2DTextures() [1/2]

bool vtkTextureObject::EmulateTextureBufferWith2DTextures ( unsigned int numValues,
int numComps,
int dataType,
vtkOpenGLBufferObject * bo )

Emulates a texture buffer with 2D texture.

Useful if hardware doesn't support texture buffers. Shader program that use this sampler will need to account for the change in indexing scheme. When VTK is compiled with GLES support, vtkOpenGLShaderCache::ReplaceShaderValues() patches the shader code to ensure all uses of 1D texture buffers work as usual.

◆ CreateCubeFromRaw() [1/2]

bool vtkTextureObject::CreateCubeFromRaw ( unsigned int width,
unsigned int height,
int numComps,
int dataType,
void * data[6] )

Create a cube texture from 6 buffers from client memory.

Image data must be provided in the following order: +X -X +Y -Y +Z -Z. numComps must be in [1-4].

◆ Create1D() [1/2]

bool vtkTextureObject::Create1D ( int numComps,
vtkPixelBufferObject * pbo,
bool shaderSupportsTextureInt )

Create a 1D texture using the PBO.

Eventually we may start supporting creating a texture from subset of data in the PBO, but for simplicity we'll begin with entire PBO data. numComps must be in [1-4]. shaderSupportsTextureInt is true if the shader has an alternate implementation supporting sampler with integer values. Even if the card supports texture int, it does not mean that the implementer of the shader made a version that supports texture int.

◆ Create1DFromRaw() [1/2]

bool vtkTextureObject::Create1DFromRaw ( unsigned int width,
int numComps,
int dataType,
void * data )

Create 1D texture from client memory.

◆ Create2D() [1/4]

bool vtkTextureObject::Create2D ( unsigned int width,
unsigned int height,
int numComps,
vtkPixelBufferObject * pbo,
bool shaderSupportsTextureInt )

Create a 2D texture using the PBO.

Eventually we may start supporting creating a texture from subset of data in the PBO, but for simplicity we'll begin with entire PBO data. numComps must be in [1-4].

◆ Create3D() [1/4]

bool vtkTextureObject::Create3D ( unsigned int width,
unsigned int height,
unsigned int depth,
int numComps,
vtkPixelBufferObject * pbo,
bool shaderSupportsTextureInt )

Create a 3D texture using the PBO.

Eventually we may start supporting creating a texture from subset of data in the PBO, but for simplicity we'll begin with entire PBO data. numComps must be in [1-4].

◆ Create3DFromRaw() [1/2]

bool vtkTextureObject::Create3DFromRaw ( unsigned int width,
unsigned int height,
unsigned int depth,
int numComps,
int dataType,
void * data )

Create a 3D texture from client memory numComps must be in [1-4].

◆ AllocateProxyTexture3D() [1/2]

bool vtkTextureObject::AllocateProxyTexture3D ( unsigned int width,
unsigned int height,
unsigned int depth,
int numComps,
int dataType )

Create a 3D texture using the GL_PROXY_TEXTURE_3D target.

This serves as a pre-allocation step which assists in verifying that the size of the texture to be created is supported by the implementation and that there is sufficient texture memory available for it.

◆ Download() [1/4]

vtkPixelBufferObject * vtkTextureObject::Download ( )

This is used to download raw data from the texture into a pixel buffer.

The pixel buffer API can then be used to download the pixel buffer data to CPU arrays. The caller takes on the responsibility of deleting the returns vtkPixelBufferObject once it done with it.

◆ Download() [2/4]

vtkPixelBufferObject * vtkTextureObject::Download ( unsigned int target,
unsigned int level )

◆ CreateDepth() [1/2]

bool vtkTextureObject::CreateDepth ( unsigned int width,
unsigned int height,
int internalFormat,
vtkPixelBufferObject * pbo )

Create a 2D depth texture using a PBO.

Precondition
: valid_internalFormat: internalFormat>=0 && internalFormat<NumberOfDepthFormats

◆ AllocateDepth() [1/2]

bool vtkTextureObject::AllocateDepth ( unsigned int width,
unsigned int height,
int internalFormat )

Create a 2D depth texture but does not initialize its values.

◆ AllocateDepthStencil() [1/2]

bool vtkTextureObject::AllocateDepthStencil ( unsigned int width,
unsigned int height )

Create a 2D septh stencil texture but does not initialize its values.

◆ Allocate1D() [1/2]

bool vtkTextureObject::Allocate1D ( unsigned int width,
int numComps,
int vtkType )

Create a 1D color texture but does not initialize its values.

Internal format is deduced from numComps and vtkType.

◆ Allocate2D() [1/2]

bool vtkTextureObject::Allocate2D ( unsigned int width,
unsigned int height,
int numComps,
int vtkType,
int level = 0 )

Create a 2D color texture but does not initialize its values.

Internal format is deduced from numComps and vtkType.

◆ Allocate3D() [1/2]

bool vtkTextureObject::Allocate3D ( unsigned int width,
unsigned int height,
unsigned int depth,
int numComps,
int vtkType )

Create a 3D color texture but does not initialize its values.

Internal format is deduced from numComps and vtkType.

◆ Create2D() [2/4]

bool vtkTextureObject::Create2D ( unsigned int width,
unsigned int height,
int numComps,
int vtktype,
bool  )
inline

Create texture without uploading any data.

Definition at line 337 of file vtkTextureObject.h.

◆ Create3D() [2/4]

bool vtkTextureObject::Create3D ( unsigned int width,
unsigned int height,
unsigned int depth,
int numComps,
int vtktype,
bool  )
inline

Create texture without uploading any data.

Definition at line 341 of file vtkTextureObject.h.

◆ GetVTKDataType() [1/2]

int vtkTextureObject::GetVTKDataType ( )

Get the data type for the texture as a vtk type int i.e.

VTK_INT etc.

◆ GetDataType() [1/2]

int vtkTextureObject::GetDataType ( int vtk_scalar_type)

Get the data type for the texture as GLenum type.

◆ SetDataType() [1/2]

void vtkTextureObject::SetDataType ( unsigned int glType)

Get the data type for the texture as GLenum type.

◆ GetDefaultDataType() [1/2]

int vtkTextureObject::GetDefaultDataType ( int vtk_scalar_type)

Get the data type for the texture as GLenum type.

◆ GetInternalFormat() [1/2]

unsigned int vtkTextureObject::GetInternalFormat ( int vtktype,
int numComps,
bool shaderSupportsTextureInt )

Get/Set internal format (OpenGL internal format) that should be used.

(https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage2D.xml)

◆ SetInternalFormat() [1/2]

void vtkTextureObject::SetInternalFormat ( unsigned int glInternalFormat)

Get/Set internal format (OpenGL internal format) that should be used.

(https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage2D.xml)

◆ GetDefaultInternalFormat() [1/2]

unsigned int vtkTextureObject::GetDefaultInternalFormat ( int vtktype,
int numComps,
bool shaderSupportsTextureInt )

Get/Set internal format (OpenGL internal format) that should be used.

(https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage2D.xml)

◆ GetFormat() [1/2]

unsigned int vtkTextureObject::GetFormat ( int vtktype,
int numComps,
bool shaderSupportsTextureInt )

Get/Set format (OpenGL internal format) that should be used.

(https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage2D.xml)

◆ SetFormat() [1/2]

void vtkTextureObject::SetFormat ( unsigned int glFormat)

Get/Set format (OpenGL internal format) that should be used.

(https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage2D.xml)

◆ GetDefaultFormat() [1/2]

unsigned int vtkTextureObject::GetDefaultFormat ( int vtktype,
int numComps,
bool shaderSupportsTextureInt )

Get/Set format (OpenGL internal format) that should be used.

(https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage2D.xml)

◆ ResetFormatAndType() [1/2]

void vtkTextureObject::ResetFormatAndType ( )

Reset format, internal format, and type of the texture.

This method is useful when a texture is reused in a context same as the previous render call. In such cases, texture destruction does not happen and therefore previous set values are used.

◆ GetMinificationFilterMode() [1/2]

unsigned int vtkTextureObject::GetMinificationFilterMode ( int vtktype)

◆ GetMagnificationFilterMode() [1/2]

unsigned int vtkTextureObject::GetMagnificationFilterMode ( int vtktype)

◆ GetWrapSMode() [1/2]

unsigned int vtkTextureObject::GetWrapSMode ( int vtktype)

◆ GetWrapTMode() [1/2]

unsigned int vtkTextureObject::GetWrapTMode ( int vtktype)

◆ GetWrapRMode() [1/2]

unsigned int vtkTextureObject::GetWrapRMode ( int vtktype)

◆ SetRequireDepthBufferFloat() [1/2]

virtual void vtkTextureObject::SetRequireDepthBufferFloat ( bool )
virtual

Optional, require support for floating point depth buffer formats.

If supported extensions will be loaded, however loading will fail if the extension is required but not available.

◆ GetRequireDepthBufferFloat() [1/2]

virtual bool vtkTextureObject::GetRequireDepthBufferFloat ( )
virtual

Optional, require support for floating point depth buffer formats.

If supported extensions will be loaded, however loading will fail if the extension is required but not available.

◆ GetSupportsDepthBufferFloat() [1/2]

virtual bool vtkTextureObject::GetSupportsDepthBufferFloat ( )
virtual

Optional, require support for floating point depth buffer formats.

If supported extensions will be loaded, however loading will fail if the extension is required but not available.

◆ SetRequireTextureFloat() [1/2]

virtual void vtkTextureObject::SetRequireTextureFloat ( bool )
virtual

Optional, require support for floating point texture formats.

If supported extensions will be loaded, however loading will fail if the extension is required but not available.

◆ GetRequireTextureFloat() [1/2]

virtual bool vtkTextureObject::GetRequireTextureFloat ( )
virtual

Optional, require support for floating point texture formats.

If supported extensions will be loaded, however loading will fail if the extension is required but not available.

◆ GetSupportsTextureFloat() [1/2]

virtual bool vtkTextureObject::GetSupportsTextureFloat ( )
virtual

Optional, require support for floating point texture formats.

If supported extensions will be loaded, however loading will fail if the extension is required but not available.

◆ SetRequireTextureInteger() [1/2]

virtual void vtkTextureObject::SetRequireTextureInteger ( bool )
virtual

Optional, require support for integer texture formats.

If supported extensions will be loaded, however loading will fail if the extension is required but not available.

◆ GetRequireTextureInteger() [1/2]

virtual bool vtkTextureObject::GetRequireTextureInteger ( )
virtual

Optional, require support for integer texture formats.

If supported extensions will be loaded, however loading will fail if the extension is required but not available.

◆ GetSupportsTextureInteger() [1/2]

virtual bool vtkTextureObject::GetSupportsTextureInteger ( )
virtual

Optional, require support for integer texture formats.

If supported extensions will be loaded, however loading will fail if the extension is required but not available.

◆ GetWrapS() [1/2]

virtual int vtkTextureObject::GetWrapS ( )
virtual

Wrap mode for the first texture coordinate "s" Valid values are:

  • Clamp
  • ClampToEdge
  • Repeat
  • ClampToBorder
  • MirroredRepeat Initial value is Repeat (as in OpenGL spec)

◆ SetWrapS() [1/2]

virtual void vtkTextureObject::SetWrapS ( int )
virtual

Wrap mode for the first texture coordinate "s" Valid values are:

  • Clamp
  • ClampToEdge
  • Repeat
  • ClampToBorder
  • MirroredRepeat Initial value is Repeat (as in OpenGL spec)

◆ GetWrapT() [1/2]

virtual int vtkTextureObject::GetWrapT ( )
virtual

Wrap mode for the first texture coordinate "t" Valid values are:

  • Clamp
  • ClampToEdge
  • Repeat
  • ClampToBorder
  • MirroredRepeat Initial value is Repeat (as in OpenGL spec)

◆ SetWrapT() [1/2]

virtual void vtkTextureObject::SetWrapT ( int )
virtual

Wrap mode for the first texture coordinate "t" Valid values are:

  • Clamp
  • ClampToEdge
  • Repeat
  • ClampToBorder
  • MirroredRepeat Initial value is Repeat (as in OpenGL spec)

◆ GetWrapR() [1/2]

virtual int vtkTextureObject::GetWrapR ( )
virtual

Wrap mode for the first texture coordinate "r" Valid values are:

  • Clamp
  • ClampToEdge
  • Repeat
  • ClampToBorder
  • MirroredRepeat Initial value is Repeat (as in OpenGL spec)

◆ SetWrapR() [1/2]

virtual void vtkTextureObject::SetWrapR ( int )
virtual

Wrap mode for the first texture coordinate "r" Valid values are:

  • Clamp
  • ClampToEdge
  • Repeat
  • ClampToBorder
  • MirroredRepeat Initial value is Repeat (as in OpenGL spec)

◆ GetMinificationFilter() [1/2]

virtual int vtkTextureObject::GetMinificationFilter ( )
virtual

Minification filter mode.

Valid values are:

  • Nearest
  • Linear
  • NearestMipmapNearest
  • NearestMipmapLinear
  • LinearMipmapNearest
  • LinearMipmapLinear Initial value is Nearest (note initial value in OpenGL spec is NearestMipMapLinear but this is error-prone because it makes the texture object incomplete. ).

◆ SetMinificationFilter() [1/2]

virtual void vtkTextureObject::SetMinificationFilter ( int )
virtual

Minification filter mode.

Valid values are:

  • Nearest
  • Linear
  • NearestMipmapNearest
  • NearestMipmapLinear
  • LinearMipmapNearest
  • LinearMipmapLinear Initial value is Nearest (note initial value in OpenGL spec is NearestMipMapLinear but this is error-prone because it makes the texture object incomplete. ).

◆ GetMagnificationFilter() [1/2]

virtual int vtkTextureObject::GetMagnificationFilter ( )
virtual

Magnification filter mode.

Valid values are:

  • Nearest
  • Linear Initial value is Nearest

◆ SetMagnificationFilter() [1/2]

virtual void vtkTextureObject::SetMagnificationFilter ( int )
virtual

Magnification filter mode.

Valid values are:

  • Nearest
  • Linear Initial value is Nearest

◆ SetLinearMagnification() [1/2]

void vtkTextureObject::SetLinearMagnification ( bool val)
inline

Tells if the magnification mode is linear (true) or nearest (false).

Initial value is false (initial value in OpenGL spec is true).

Definition at line 515 of file vtkTextureObject.h.

◆ GetLinearMagnification() [1/2]

bool vtkTextureObject::GetLinearMagnification ( )
inline

Definition at line 517 of file vtkTextureObject.h.

◆ SetBorderColor() [1/4]

virtual void vtkTextureObject::SetBorderColor ( float ,
float ,
float ,
float  )
virtual

Border Color (RGBA).

The values can be any valid float value, if the gpu supports it. Initial value is (0.0f, 0.0f, 0.0f, 0.0f), as in the OpenGL spec.

◆ SetBorderColor() [2/4]

virtual void vtkTextureObject::SetBorderColor ( float [4])
virtual

Border Color (RGBA).

The values can be any valid float value, if the gpu supports it. Initial value is (0.0f, 0.0f, 0.0f, 0.0f), as in the OpenGL spec.

◆ GetBorderColor() [1/6]

virtual float * vtkTextureObject::GetBorderColor ( )
virtual

Border Color (RGBA).

The values can be any valid float value, if the gpu supports it. Initial value is (0.0f, 0.0f, 0.0f, 0.0f), as in the OpenGL spec.

◆ GetBorderColor() [2/6]

virtual void vtkTextureObject::GetBorderColor ( float & ,
float & ,
float & ,
float &  )
virtual

Border Color (RGBA).

The values can be any valid float value, if the gpu supports it. Initial value is (0.0f, 0.0f, 0.0f, 0.0f), as in the OpenGL spec.

◆ GetBorderColor() [3/6]

virtual void vtkTextureObject::GetBorderColor ( float [4])
virtual

Border Color (RGBA).

The values can be any valid float value, if the gpu supports it. Initial value is (0.0f, 0.0f, 0.0f, 0.0f), as in the OpenGL spec.

◆ SetMinLOD() [1/2]

virtual void vtkTextureObject::SetMinLOD ( float )
virtual

Lower-clamp the computed LOD against this value.

Any float value is valid. Initial value is -1000.0f, as in OpenGL spec.

◆ GetMinLOD() [1/2]

virtual float vtkTextureObject::GetMinLOD ( )
virtual

Lower-clamp the computed LOD against this value.

Any float value is valid. Initial value is -1000.0f, as in OpenGL spec.

◆ SetMaxLOD() [1/2]

virtual void vtkTextureObject::SetMaxLOD ( float )
virtual

Upper-clamp the computed LOD against this value.

Any float value is valid. Initial value is 1000.0f, as in OpenGL spec.

◆ GetMaxLOD() [1/2]

virtual float vtkTextureObject::GetMaxLOD ( )
virtual

Upper-clamp the computed LOD against this value.

Any float value is valid. Initial value is 1000.0f, as in OpenGL spec.

◆ SetBaseLevel() [1/2]

virtual void vtkTextureObject::SetBaseLevel ( int )
virtual

Level of detail of the first texture image.

A texture object is a list of texture images. It is a non-negative integer value. Initial value is 0, as in OpenGL spec.

◆ GetBaseLevel() [1/2]

virtual int vtkTextureObject::GetBaseLevel ( )
virtual

Level of detail of the first texture image.

A texture object is a list of texture images. It is a non-negative integer value. Initial value is 0, as in OpenGL spec.

◆ SetMaxLevel() [1/2]

virtual void vtkTextureObject::SetMaxLevel ( int )
virtual

Level of detail of the first texture image.

A texture object is a list of texture images. It is a non-negative integer value. Initial value is 1000, as in OpenGL spec.

◆ GetMaxLevel() [1/2]

virtual int vtkTextureObject::GetMaxLevel ( )
virtual

Level of detail of the first texture image.

A texture object is a list of texture images. It is a non-negative integer value. Initial value is 1000, as in OpenGL spec.

◆ New() [2/2]

vtkTextureObject * vtkTextureObject::New ( )
static

◆ IsTypeOf() [2/2]

vtkTypeBool vtkTextureObject::IsTypeOf ( const char * type)
static

◆ IsA() [2/2]

virtual vtkTypeBool vtkTextureObject::IsA ( const char * name)
virtual

Return 1 if this class is the same type of (or a subclass of) the named class.

Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObjectBase.

Reimplemented in vtkQWidgetTexture.

◆ SafeDownCast() [2/2]

vtkTextureObject * vtkTextureObject::SafeDownCast ( vtkObjectBase * o)
static

◆ NewInstanceInternal() [2/2]

virtual vtkObjectBase * vtkTextureObject::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented in vtkQWidgetTexture.

◆ NewInstance() [2/2]

vtkTextureObject * vtkTextureObject::NewInstance ( ) const

◆ PrintSelf() [2/2]

void vtkTextureObject::PrintSelf ( ostream & os,
vtkIndent indent )
overridevirtual

Methods invoked by print to print information about the object including superclasses.

Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkObject.

◆ SetContext() [2/2]

void vtkTextureObject::SetContext ( vtkOpenGLRenderWindow * )

Get/Set the context.

This does not increase the reference count of the context to avoid reference loops.

{ this->TextureObject = vtkTextureObject::New(); }SetContext() may raise an error if the OpenGL context does not support the required OpenGL extensions.

◆ GetContext() [2/2]

vtkOpenGLRenderWindow * vtkTextureObject::GetContext ( )

Get/Set the context.

This does not increase the reference count of the context to avoid reference loops.

{ this->TextureObject = vtkTextureObject::New(); }SetContext() may raise an error if the OpenGL context does not support the required OpenGL extensions.

◆ GetWidth() [2/2]

virtual unsigned int vtkTextureObject::GetWidth ( )
virtual

Get the texture dimensions.

These are the properties of the OpenGL texture this instance represents.

◆ GetHeight() [2/2]

virtual unsigned int vtkTextureObject::GetHeight ( )
virtual

Get the texture dimensions.

These are the properties of the OpenGL texture this instance represents.

◆ GetDepth() [2/2]

virtual unsigned int vtkTextureObject::GetDepth ( )
virtual

Get the texture dimensions.

These are the properties of the OpenGL texture this instance represents.

◆ GetSamples() [2/2]

virtual unsigned int vtkTextureObject::GetSamples ( )
virtual

Get the texture dimensions.

These are the properties of the OpenGL texture this instance represents.

◆ GetComponents() [2/2]

virtual int vtkTextureObject::GetComponents ( )
virtual

Get the texture dimensions.

These are the properties of the OpenGL texture this instance represents.

◆ GetTuples() [2/2]

unsigned int vtkTextureObject::GetTuples ( )
inline

Get the texture dimensions.

These are the properties of the OpenGL texture this instance represents.

Definition at line 113 of file vtkTextureObject.h.

◆ GetNumberOfDimensions() [2/2]

virtual int vtkTextureObject::GetNumberOfDimensions ( )
virtual

◆ SetSamples() [2/2]

virtual void vtkTextureObject::SetSamples ( unsigned int )
virtual

◆ GetTarget() [2/2]

virtual unsigned int vtkTextureObject::GetTarget ( )
virtual

Returns OpenGL texture target to which the texture is/can be bound.

◆ GetHandle() [2/2]

virtual unsigned int vtkTextureObject::GetHandle ( )
virtual

Returns the OpenGL handle.

◆ GetTextureUnit() [2/2]

int vtkTextureObject::GetTextureUnit ( )

Return the texture unit used for this texture.

◆ Bind() [2/2]

void vtkTextureObject::Bind ( )

Bind the texture, must have been created using Create().

A side affect is that tex parameters are sent. RenderWindow must be set before calling this.

◆ Activate() [2/2]

virtual void vtkTextureObject::Activate ( )
virtual

Activate and Bind the texture.

Reimplemented in vtkQWidgetTexture.

◆ Deactivate() [2/2]

void vtkTextureObject::Deactivate ( )

Deactivate and UnBind the texture.

◆ ReleaseGraphicsResources() [2/2]

virtual void vtkTextureObject::ReleaseGraphicsResources ( vtkWindow * win)
virtual

Deactivate and UnBind the texture.

Reimplemented in vtkQWidgetTexture.

◆ IsBound() [2/2]

bool vtkTextureObject::IsBound ( )

Tells if the texture object is bound to the active texture image unit.

(a texture object can be bound to multiple texture image unit).

◆ SendParameters() [2/2]

void vtkTextureObject::SendParameters ( )

Send all the texture object parameters to the hardware if not done yet.

Parameters are automatically sent as a side affect of Bind. Disable this by setting AutoParameters 0.

Precondition
is_bound: IsBound()

◆ SetAutoParameters() [2/2]

virtual void vtkTextureObject::SetAutoParameters ( int )
virtual

Get/Set AutoParameters flag.

When enabled, SendParameters method is called automatically when the texture is bound.

◆ GetAutoParameters() [2/2]

virtual int vtkTextureObject::GetAutoParameters ( )
virtual

Get/Set AutoParameters flag.

When enabled, SendParameters method is called automatically when the texture is bound.

◆ AutoParametersOn() [2/2]

virtual void vtkTextureObject::AutoParametersOn ( )
virtual

Get/Set AutoParameters flag.

When enabled, SendParameters method is called automatically when the texture is bound.

◆ AutoParametersOff() [2/2]

virtual void vtkTextureObject::AutoParametersOff ( )
virtual

Get/Set AutoParameters flag.

When enabled, SendParameters method is called automatically when the texture is bound.

◆ Create2DFromRaw() [2/2]

bool vtkTextureObject::Create2DFromRaw ( unsigned int width,
unsigned int height,
int numComps,
int dataType,
void * data )

Create a 2D texture from client memory numComps must be in [1-4].

◆ Create2DArrayFromRaw() [2/2]

bool vtkTextureObject::Create2DArrayFromRaw ( unsigned int width,
unsigned int height,
int numComps,
int dataType,
int nbLayers,
void * data )

Create a 2D texture array from client memory data contains a pointer to the layers of the texture array.

All layers must be the same size and contiguous in memory. If data is null, the texture is allocated without initialization.

◆ CreateDepthFromRaw() [2/2]

bool vtkTextureObject::CreateDepthFromRaw ( unsigned int width,
unsigned int height,
int internalFormat,
int rawType,
void * raw )

Create a 2D depth texture using a raw pointer.

This is a blocking call. If you can, use PBO instead. raw can be null in order to allocate texture without initialization.

◆ CreateTextureBuffer() [2/2]

bool vtkTextureObject::CreateTextureBuffer ( unsigned int numValues,
int numComps,
int dataType,
vtkOpenGLBufferObject * bo )

Create a texture buffer basically a 1D texture that can be very large for passing data into the fragment shader.

◆ EmulateTextureBufferWith2DTextures() [2/2]

bool vtkTextureObject::EmulateTextureBufferWith2DTextures ( unsigned int numValues,
int numComps,
int dataType,
vtkOpenGLBufferObject * bo )

Emulates a texture buffer with 2D texture.

Useful if hardware doesn't support texture buffers. Shader program that use this sampler will need to account for the change in indexing scheme. When VTK is compiled with GLES support, vtkOpenGLShaderCache::ReplaceShaderValues() patches the shader code to ensure all uses of 1D texture buffers work as usual.

◆ CreateCubeFromRaw() [2/2]

bool vtkTextureObject::CreateCubeFromRaw ( unsigned int width,
unsigned int height,
int numComps,
int dataType,
void * data[6] )

Create a cube texture from 6 buffers from client memory.

Image data must be provided in the following order: +X -X +Y -Y +Z -Z. numComps must be in [1-4].

◆ Create1D() [2/2]

bool vtkTextureObject::Create1D ( int numComps,
vtkPixelBufferObject * pbo,
bool shaderSupportsTextureInt )

Create a 1D texture using the PBO.

Eventually we may start supporting creating a texture from subset of data in the PBO, but for simplicity we'll begin with entire PBO data. numComps must be in [1-4]. shaderSupportsTextureInt is true if the shader has an alternate implementation supporting sampler with integer values. Even if the card supports texture int, it does not mean that the implementer of the shader made a version that supports texture int.

◆ Create1DFromRaw() [2/2]

bool vtkTextureObject::Create1DFromRaw ( unsigned int width,
int numComps,
int dataType,
void * data )

Create 1D texture from client memory.

◆ Create2D() [3/4]

bool vtkTextureObject::Create2D ( unsigned int width,
unsigned int height,
int numComps,
vtkPixelBufferObject * pbo,
bool shaderSupportsTextureInt )

Create a 2D texture using the PBO.

Eventually we may start supporting creating a texture from subset of data in the PBO, but for simplicity we'll begin with entire PBO data. numComps must be in [1-4].

◆ Create3D() [3/4]

bool vtkTextureObject::Create3D ( unsigned int width,
unsigned int height,
unsigned int depth,
int numComps,
vtkPixelBufferObject * pbo,
bool shaderSupportsTextureInt )

Create a 3D texture using the PBO.

Eventually we may start supporting creating a texture from subset of data in the PBO, but for simplicity we'll begin with entire PBO data. numComps must be in [1-4].

◆ Create3DFromRaw() [2/2]

bool vtkTextureObject::Create3DFromRaw ( unsigned int width,
unsigned int height,
unsigned int depth,
int numComps,
int dataType,
void * data )

Create a 3D texture from client memory numComps must be in [1-4].

◆ AllocateProxyTexture3D() [2/2]

bool vtkTextureObject::AllocateProxyTexture3D ( unsigned int width,
unsigned int height,
unsigned int depth,
int numComps,
int dataType )

Create a 3D texture using the GL_PROXY_TEXTURE_3D target.

This serves as a pre-allocation step which assists in verifying that the size of the texture to be created is supported by the implementation and that there is sufficient texture memory available for it.

◆ Download() [3/4]

vtkPixelBufferObject * vtkTextureObject::Download ( )

This is used to download raw data from the texture into a pixel buffer.

The pixel buffer API can then be used to download the pixel buffer data to CPU arrays. The caller takes on the responsibility of deleting the returns vtkPixelBufferObject once it done with it.

◆ Download() [4/4]

vtkPixelBufferObject * vtkTextureObject::Download ( unsigned int target,
unsigned int level )

◆ CreateDepth() [2/2]

bool vtkTextureObject::CreateDepth ( unsigned int width,
unsigned int height,
int internalFormat,
vtkPixelBufferObject * pbo )

Create a 2D depth texture using a PBO.

Precondition
: valid_internalFormat: internalFormat>=0 && internalFormat<NumberOfDepthFormats

◆ AllocateDepth() [2/2]

bool vtkTextureObject::AllocateDepth ( unsigned int width,
unsigned int height,
int internalFormat )

Create a 2D depth texture but does not initialize its values.

◆ AllocateDepthStencil() [2/2]

bool vtkTextureObject::AllocateDepthStencil ( unsigned int width,
unsigned int height )

Create a 2D septh stencil texture but does not initialize its values.

◆ Allocate1D() [2/2]

bool vtkTextureObject::Allocate1D ( unsigned int width,
int numComps,
int vtkType )

Create a 1D color texture but does not initialize its values.

Internal format is deduced from numComps and vtkType.

◆ Allocate2D() [2/2]

bool vtkTextureObject::Allocate2D ( unsigned int width,
unsigned int height,
int numComps,
int vtkType,
int level = 0 )

Create a 2D color texture but does not initialize its values.

Internal format is deduced from numComps and vtkType.

◆ Allocate3D() [2/2]

bool vtkTextureObject::Allocate3D ( unsigned int width,
unsigned int height,
unsigned int depth,
int numComps,
int vtkType )

Create a 3D color texture but does not initialize its values.

Internal format is deduced from numComps and vtkType.

◆ Create2D() [4/4]

bool vtkTextureObject::Create2D ( unsigned int width,
unsigned int height,
int numComps,
int vtktype,
bool  )
inline

Create texture without uploading any data.

Definition at line 337 of file vtkTextureObject.h.

◆ Create3D() [4/4]

bool vtkTextureObject::Create3D ( unsigned int width,
unsigned int height,
unsigned int depth,
int numComps,
int vtktype,
bool  )
inline

Create texture without uploading any data.

Definition at line 341 of file vtkTextureObject.h.

◆ GetVTKDataType() [2/2]

int vtkTextureObject::GetVTKDataType ( )

Get the data type for the texture as a vtk type int i.e.

VTK_INT etc.

◆ GetDataType() [2/2]

int vtkTextureObject::GetDataType ( int vtk_scalar_type)

Get the data type for the texture as GLenum type.

◆ SetDataType() [2/2]

void vtkTextureObject::SetDataType ( unsigned int glType)

Get the data type for the texture as GLenum type.

◆ GetDefaultDataType() [2/2]

int vtkTextureObject::GetDefaultDataType ( int vtk_scalar_type)

Get the data type for the texture as GLenum type.

◆ GetInternalFormat() [2/2]

unsigned int vtkTextureObject::GetInternalFormat ( int vtktype,
int numComps,
bool shaderSupportsTextureInt )

Get/Set internal format (OpenGL internal format) that should be used.

(https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage2D.xml)

◆ SetInternalFormat() [2/2]

void vtkTextureObject::SetInternalFormat ( unsigned int glInternalFormat)

Get/Set internal format (OpenGL internal format) that should be used.

(https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage2D.xml)

◆ GetDefaultInternalFormat() [2/2]

unsigned int vtkTextureObject::GetDefaultInternalFormat ( int vtktype,
int numComps,
bool shaderSupportsTextureInt )

Get/Set internal format (OpenGL internal format) that should be used.

(https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage2D.xml)

◆ GetFormat() [2/2]

unsigned int vtkTextureObject::GetFormat ( int vtktype,
int numComps,
bool shaderSupportsTextureInt )

Get/Set format (OpenGL internal format) that should be used.

(https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage2D.xml)

◆ SetFormat() [2/2]

void vtkTextureObject::SetFormat ( unsigned int glFormat)

Get/Set format (OpenGL internal format) that should be used.

(https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage2D.xml)

◆ GetDefaultFormat() [2/2]

unsigned int vtkTextureObject::GetDefaultFormat ( int vtktype,
int numComps,
bool shaderSupportsTextureInt )

Get/Set format (OpenGL internal format) that should be used.

(https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage2D.xml)

◆ ResetFormatAndType() [2/2]

void vtkTextureObject::ResetFormatAndType ( )

Reset format, internal format, and type of the texture.

This method is useful when a texture is reused in a context same as the previous render call. In such cases, texture destruction does not happen and therefore previous set values are used.

◆ GetMinificationFilterMode() [2/2]

unsigned int vtkTextureObject::GetMinificationFilterMode ( int vtktype)

◆ GetMagnificationFilterMode() [2/2]

unsigned int vtkTextureObject::GetMagnificationFilterMode ( int vtktype)

◆ GetWrapSMode() [2/2]

unsigned int vtkTextureObject::GetWrapSMode ( int vtktype)

◆ GetWrapTMode() [2/2]

unsigned int vtkTextureObject::GetWrapTMode ( int vtktype)

◆ GetWrapRMode() [2/2]

unsigned int vtkTextureObject::GetWrapRMode ( int vtktype)

◆ SetRequireDepthBufferFloat() [2/2]

virtual void vtkTextureObject::SetRequireDepthBufferFloat ( bool )
virtual

Optional, require support for floating point depth buffer formats.

If supported extensions will be loaded, however loading will fail if the extension is required but not available.

◆ GetRequireDepthBufferFloat() [2/2]

virtual bool vtkTextureObject::GetRequireDepthBufferFloat ( )
virtual

Optional, require support for floating point depth buffer formats.

If supported extensions will be loaded, however loading will fail if the extension is required but not available.

◆ GetSupportsDepthBufferFloat() [2/2]

virtual bool vtkTextureObject::GetSupportsDepthBufferFloat ( )
virtual

Optional, require support for floating point depth buffer formats.

If supported extensions will be loaded, however loading will fail if the extension is required but not available.

◆ SetRequireTextureFloat() [2/2]

virtual void vtkTextureObject::SetRequireTextureFloat ( bool )
virtual

Optional, require support for floating point texture formats.

If supported extensions will be loaded, however loading will fail if the extension is required but not available.

◆ GetRequireTextureFloat() [2/2]

virtual bool vtkTextureObject::GetRequireTextureFloat ( )
virtual

Optional, require support for floating point texture formats.

If supported extensions will be loaded, however loading will fail if the extension is required but not available.

◆ GetSupportsTextureFloat() [2/2]

virtual bool vtkTextureObject::GetSupportsTextureFloat ( )
virtual

Optional, require support for floating point texture formats.

If supported extensions will be loaded, however loading will fail if the extension is required but not available.

◆ SetRequireTextureInteger() [2/2]

virtual void vtkTextureObject::SetRequireTextureInteger ( bool )
virtual

Optional, require support for integer texture formats.

If supported extensions will be loaded, however loading will fail if the extension is required but not available.

◆ GetRequireTextureInteger() [2/2]

virtual bool vtkTextureObject::GetRequireTextureInteger ( )
virtual

Optional, require support for integer texture formats.

If supported extensions will be loaded, however loading will fail if the extension is required but not available.

◆ GetSupportsTextureInteger() [2/2]

virtual bool vtkTextureObject::GetSupportsTextureInteger ( )
virtual

Optional, require support for integer texture formats.

If supported extensions will be loaded, however loading will fail if the extension is required but not available.

◆ GetWrapS() [2/2]

virtual int vtkTextureObject::GetWrapS ( )
virtual

Wrap mode for the first texture coordinate "s" Valid values are:

  • Clamp
  • ClampToEdge
  • Repeat
  • ClampToBorder
  • MirroredRepeat Initial value is Repeat (as in OpenGL spec)

◆ SetWrapS() [2/2]

virtual void vtkTextureObject::SetWrapS ( int )
virtual

Wrap mode for the first texture coordinate "s" Valid values are:

  • Clamp
  • ClampToEdge
  • Repeat
  • ClampToBorder
  • MirroredRepeat Initial value is Repeat (as in OpenGL spec)

◆ GetWrapT() [2/2]

virtual int vtkTextureObject::GetWrapT ( )
virtual

Wrap mode for the first texture coordinate "t" Valid values are:

  • Clamp
  • ClampToEdge
  • Repeat
  • ClampToBorder
  • MirroredRepeat Initial value is Repeat (as in OpenGL spec)

◆ SetWrapT() [2/2]

virtual void vtkTextureObject::SetWrapT ( int )
virtual

Wrap mode for the first texture coordinate "t" Valid values are:

  • Clamp
  • ClampToEdge
  • Repeat
  • ClampToBorder
  • MirroredRepeat Initial value is Repeat (as in OpenGL spec)

◆ GetWrapR() [2/2]

virtual int vtkTextureObject::GetWrapR ( )
virtual

Wrap mode for the first texture coordinate "r" Valid values are:

  • Clamp
  • ClampToEdge
  • Repeat
  • ClampToBorder
  • MirroredRepeat Initial value is Repeat (as in OpenGL spec)

◆ SetWrapR() [2/2]

virtual void vtkTextureObject::SetWrapR ( int )
virtual

Wrap mode for the first texture coordinate "r" Valid values are:

  • Clamp
  • ClampToEdge
  • Repeat
  • ClampToBorder
  • MirroredRepeat Initial value is Repeat (as in OpenGL spec)

◆ GetMinificationFilter() [2/2]

virtual int vtkTextureObject::GetMinificationFilter ( )
virtual

Minification filter mode.

Valid values are:

  • Nearest
  • Linear
  • NearestMipmapNearest
  • NearestMipmapLinear
  • LinearMipmapNearest
  • LinearMipmapLinear Initial value is Nearest (note initial value in OpenGL spec is NearestMipMapLinear but this is error-prone because it makes the texture object incomplete. ).

◆ SetMinificationFilter() [2/2]

virtual void vtkTextureObject::SetMinificationFilter ( int )
virtual

Minification filter mode.

Valid values are:

  • Nearest
  • Linear
  • NearestMipmapNearest
  • NearestMipmapLinear
  • LinearMipmapNearest
  • LinearMipmapLinear Initial value is Nearest (note initial value in OpenGL spec is NearestMipMapLinear but this is error-prone because it makes the texture object incomplete. ).

◆ GetMagnificationFilter() [2/2]

virtual int vtkTextureObject::GetMagnificationFilter ( )
virtual

Magnification filter mode.

Valid values are:

  • Nearest
  • Linear Initial value is Nearest

◆ SetMagnificationFilter() [2/2]

virtual void vtkTextureObject::SetMagnificationFilter ( int )
virtual

Magnification filter mode.

Valid values are:

  • Nearest
  • Linear Initial value is Nearest

◆ SetLinearMagnification() [2/2]

void vtkTextureObject::SetLinearMagnification ( bool val)
inline

Tells if the magnification mode is linear (true) or nearest (false).

Initial value is false (initial value in OpenGL spec is true).

Definition at line 515 of file vtkTextureObject.h.

◆ GetLinearMagnification() [2/2]

bool vtkTextureObject::GetLinearMagnification ( )
inline

Definition at line 517 of file vtkTextureObject.h.

◆ SetBorderColor() [3/4]

virtual void vtkTextureObject::SetBorderColor ( float ,
float ,
float ,
float  )
virtual

Border Color (RGBA).

The values can be any valid float value, if the gpu supports it. Initial value is (0.0f, 0.0f, 0.0f, 0.0f), as in the OpenGL spec.

◆ SetBorderColor() [4/4]

virtual void vtkTextureObject::SetBorderColor ( float [4])
virtual

Border Color (RGBA).

The values can be any valid float value, if the gpu supports it. Initial value is (0.0f, 0.0f, 0.0f, 0.0f), as in the OpenGL spec.

◆ GetBorderColor() [4/6]

virtual float * vtkTextureObject::GetBorderColor ( )
virtual

Border Color (RGBA).

The values can be any valid float value, if the gpu supports it. Initial value is (0.0f, 0.0f, 0.0f, 0.0f), as in the OpenGL spec.

◆ GetBorderColor() [5/6]

virtual void vtkTextureObject::GetBorderColor ( float & ,
float & ,
float & ,
float &  )
virtual

Border Color (RGBA).

The values can be any valid float value, if the gpu supports it. Initial value is (0.0f, 0.0f, 0.0f, 0.0f), as in the OpenGL spec.

◆ GetBorderColor() [6/6]

virtual void vtkTextureObject::GetBorderColor ( float [4])
virtual

Border Color (RGBA).

The values can be any valid float value, if the gpu supports it. Initial value is (0.0f, 0.0f, 0.0f, 0.0f), as in the OpenGL spec.

◆ SetMinLOD() [2/2]

virtual void vtkTextureObject::SetMinLOD ( float )
virtual

Lower-clamp the computed LOD against this value.

Any float value is valid. Initial value is -1000.0f, as in OpenGL spec.

◆ GetMinLOD() [2/2]

virtual float vtkTextureObject::GetMinLOD ( )
virtual

Lower-clamp the computed LOD against this value.

Any float value is valid. Initial value is -1000.0f, as in OpenGL spec.

◆ SetMaxLOD() [2/2]

virtual void vtkTextureObject::SetMaxLOD ( float )
virtual

Upper-clamp the computed LOD against this value.

Any float value is valid. Initial value is 1000.0f, as in OpenGL spec.

◆ GetMaxLOD() [2/2]

virtual float vtkTextureObject::GetMaxLOD ( )
virtual

Upper-clamp the computed LOD against this value.

Any float value is valid. Initial value is 1000.0f, as in OpenGL spec.

◆ SetBaseLevel() [2/2]

virtual void vtkTextureObject::SetBaseLevel ( int )
virtual

Level of detail of the first texture image.

A texture object is a list of texture images. It is a non-negative integer value. Initial value is 0, as in OpenGL spec.

◆ GetBaseLevel() [2/2]

virtual int vtkTextureObject::GetBaseLevel ( )
virtual

Level of detail of the first texture image.

A texture object is a list of texture images. It is a non-negative integer value. Initial value is 0, as in OpenGL spec.

◆ SetMaxLevel() [2/2]

virtual void vtkTextureObject::SetMaxLevel ( int )
virtual

Level of detail of the first texture image.

A texture object is a list of texture images. It is a non-negative integer value. Initial value is 1000, as in OpenGL spec.

◆ GetMaxLevel() [2/2]

virtual int vtkTextureObject::GetMaxLevel ( )
virtual

Level of detail of the first texture image.

A texture object is a list of texture images. It is a non-negative integer value. Initial value is 1000, as in OpenGL spec.

Member Data Documentation

◆ []

enum { ... } vtkTextureObject::GetGenerateMipmap

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