ActiViz .NET  5.10.1
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Static Private Member Functions | List of all members
Kitware.VTK.vtkTextureObject Class Reference

vtkTextureObject - abstracts an OpenGL texture object. More...

Inheritance diagram for Kitware.VTK.vtkTextureObject:
[legend]
Collaboration diagram for Kitware.VTK.vtkTextureObject:
[legend]

Public Types

enum  AlwaysTrue_WrapperEnum {
  AlwaysTrue_WrapperEnum.AlwaysTrue = 6, AlwaysTrue_WrapperEnum.Equal = 4, AlwaysTrue_WrapperEnum.Gequal = 1, AlwaysTrue_WrapperEnum.Greater = 3,
  AlwaysTrue_WrapperEnum.Lequal = 0, AlwaysTrue_WrapperEnum.Less = 2, AlwaysTrue_WrapperEnum.Never = 7, AlwaysTrue_WrapperEnum.NotEqual = 5,
  AlwaysTrue_WrapperEnum.NumberOfDepthTextureCompareFunctions = 8
}
 Undocumented Block More...
 
enum  Alpha_WrapperEnum { Alpha_WrapperEnum.Alpha = 2, Alpha_WrapperEnum.Intensity = 1, Alpha_WrapperEnum.Luminance = 0, Alpha_WrapperEnum.NumberOfDepthTextureModes = 3 }
 Undocumented Block More...
 
enum  Clamp_WrapperEnum {
  Clamp_WrapperEnum.Clamp = 0, Clamp_WrapperEnum.ClampToBorder = 3, Clamp_WrapperEnum.ClampToEdge = 1, Clamp_WrapperEnum.MirroredRepeat = 4,
  Clamp_WrapperEnum.NumberOfWrapModes = 5, Clamp_WrapperEnum.Repeat = 2
}
 Undocumented Block More...
 
enum  Linear_WrapperEnum {
  Linear_WrapperEnum.Linear = 1, Linear_WrapperEnum.LinearMipmapLinear = 5, Linear_WrapperEnum.LinearMipmapNearest = 4, Linear_WrapperEnum.Nearest = 0,
  Linear_WrapperEnum.NearestMipmapLinear = 3, Linear_WrapperEnum.NearestMipmapNearest = 2, Linear_WrapperEnum.NumberOfMinificationModes = 6
}
 Undocumented Block More...
 
enum  Fixed16_WrapperEnum {
  Fixed16_WrapperEnum.Fixed16 = 1, Fixed16_WrapperEnum.Fixed24 = 2, Fixed16_WrapperEnum.Fixed32 = 3, Fixed16_WrapperEnum.Float32 = 4,
  Fixed16_WrapperEnum.Native = 0, Fixed16_WrapperEnum.NumberOfDepthFormats = 5
}
 Undocumented Block More...
 

Public Member Functions

 vtkTextureObject (IntPtr rawCppThis, bool callDisposalMethod, bool strong)
 Automatically generated constructor - called from generated code. DO NOT call directly. More...
 
 vtkTextureObject ()
 Undocumented Block More...
 
bool Allocate1D (uint width, int numComps, int vtkType)
 Create a 1D color texture but does not initialize its values. Internal format is deduced from numComps and vtkType. More...
 
bool Allocate2D (uint width, uint height, int numComps, int vtkType)
 Create a 2D color texture but does not initialize its values. Internal format is deduced from numComps and vtkType. More...
 
bool Allocate3D (uint width, uint height, uint depth, int numComps, int vtkType)
 Create a 3D color texture but does not initialize its values. Internal format is deduced from numComps and vtkType. More...
 
bool AllocateDepth (uint width, uint height, int internalFormat)
 Create a 2D depth texture but does not initialize its values. More...
 
void Bind ()
 Activate the texture. The texture must have been created using Create(). RenderWindow must be set before calling this. More...
 
void CopyFromFrameBuffer (int srcXmin, int srcYmin, int dstXmin, int dstYmin, int width, int height)
 Copy a sub-part of a logical buffer of the framebuffer (color or depth) to the texture object. src is the framebuffer, dst is the texture. (srcXmin,srcYmin) is the location of the lower left corner of the rectangle in the framebuffer. (dstXmin,dstYmin) is the location of the lower left corner of the rectangle in the texture. width and height specifies the size of the rectangle in pixels. If the logical buffer is a color buffer, it has to be selected first with glReadBuffer(). More...
 
void CopyToFrameBuffer (int srcXmin, int srcYmin, int srcXmax, int srcYmax, int dstXmin, int dstYmin, int width, int height)
 Copy a sub-part of the texture (src) in the current framebuffer at location (dstXmin,dstYmin). (dstXmin,dstYmin) is the location of the lower left corner of the rectangle. width and height are the dimensions of the framebuffer. More...
 
bool 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 implementor of the shader made a version that supports texture int. More...
 
bool Create2D (uint width, uint 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]. More...
 
bool Create2D (uint width, uint height, int numComps, int vtktype, bool shaderSupportsTextureInt)
 Create texture without uploading any data. To create a DEPTH_COMPONENT texture, vtktype must be set to VTK_VOID and numComps must be 1. More...
 
bool Create3D (uint width, uint height, uint 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]. More...
 
bool Create3D (uint width, uint height, uint depth, int numComps, int vtktype, bool shaderSupportsTextureInt)
 Create texture without uploading any data. To create a DEPTH_COMPONENT texture, vtktype must be set to VTK_VOID and numComps must be 1. More...
 
bool CreateDepth (uint width, uint height, int internalFormat, vtkPixelBufferObject pbo)
 Create a 2D depth texture using a PBO. More...
 
bool CreateDepthFromRaw (uint width, uint height, int internalFormat, int rawType, IntPtr raw)
 Create a 2D depth texture using a raw pointer. This is a blocking call. If you can, use PBO instead. More...
 
vtkPixelBufferObject Download ()
 This is used to download raw data from the texture into a pixel bufer. 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. More...
 
virtual int GetBaseLevel ()
 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. More...
 
virtual float[] GetBorderColor ()
 Border Color (RGBA). Each component is in [0.0f,1.0f]. Initial value is (0.0f,0.0f,0.0f,0.0f), as in OpenGL spec. More...
 
virtual void GetBorderColor (ref float _arg1, ref float _arg2, ref float _arg3, ref float _arg4)
 Border Color (RGBA). Each component is in [0.0f,1.0f]. Initial value is (0.0f,0.0f,0.0f,0.0f), as in OpenGL spec. More...
 
virtual void GetBorderColor (IntPtr _arg)
 Border Color (RGBA). Each component is in [0.0f,1.0f]. Initial value is (0.0f,0.0f,0.0f,0.0f), as in OpenGL spec. More...
 
virtual int GetComponents ()
 Get the texture dimensions. These are the properties of the OpenGL texture this instance represents. More...
 
vtkRenderWindow GetContext ()
 Get/Set the context. This does not increase the reference count of the context to avoid reference loops. SetContext() may raise an error is the OpenGL context does not support the required OpenGL extensions. More...
 
int GetDataType ()
 Get the data type for the texture as a vtk type int i.e. VTK_INT etc. More...
 
virtual uint GetDepth ()
 Get the texture dimensions. These are the properties of the OpenGL texture this instance represents. More...
 
virtual bool GetDepthTextureCompare ()
 Tells if the output of a texture unit with a depth texture uses comparison or not. Comparison happens between D_t the depth texture value in the range [0,1] and with R the interpolated third texture coordinate clamped to range [0,1]. The result of the comparison is noted `r'. If this flag is false, r=D_t. Initial value is false, as in OpenGL spec. Ignored if the texture object is not a depth texture. More...
 
virtual int GetDepthTextureCompareFunction ()
 In case DepthTextureCompare is true, specify the comparison function in use. The result of the comparison is noted `r'. Valid values are: More...
 
virtual int GetDepthTextureMode ()
 Defines the mapping from depth component `r' to RGBA components. Ignored if the texture object is not a depth texture. Valid modes are: More...
 
uint GetFormat (int vtktype, int numComps, bool shaderSupportsTextureInt)
 Get the data type for the texture as a vtk type int i.e. VTK_INT etc. More...
 
virtual bool GetGenerateMipmap ()
 Tells the hardware to generate mipmap textures from the first texture image at BaseLevel. Initial value is false, as in OpenGL spec. More...
 
virtual uint GetHandle ()
 Returns the OpenGL handle. More...
 
virtual uint GetHeight ()
 Get the texture dimensions. These are the properties of the OpenGL texture this instance represents. More...
 
uint GetInternalFormat (int vtktype, int numComps, bool shaderSupportsTextureInt)
 Get the data type for the texture as a vtk type int i.e. VTK_INT etc. More...
 
virtual bool GetLinearMagnification ()
 Tells if the magnification mode is linear (true) or nearest (false). Initial value is false (initial value in OpenGL spec is true). More...
 
virtual float GetMaxLOD ()
 Upper-clamp the computed LOD against this value. Any float value is valid. Initial value is 1000.0f, as in OpenGL spec. More...
 
virtual int GetMaxLevel ()
 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. More...
 
virtual float GetMinLOD ()
 Lower-clamp the computed LOD against this value. Any float value is valid. Initial value is -1000.0f, as in OpenGL spec. More...
 
virtual int GetMinificationFilter ()
 Minification filter mode. Valid values are: More...
 
virtual int GetNumberOfDimensions ()
 Get the texture dimensions. These are the properties of the OpenGL texture this instance represents. More...
 
virtual float GetPriority ()
 Priority of the texture object to be resident on the card for higher performance in the range [0.0f,1.0f]. Initial value is 1.0f, as in OpenGL spec. More...
 
virtual uint GetTarget ()
 Returns OpenGL texture target to which the texture is/can be bound. More...
 
virtual uint GetWidth ()
 Get the texture dimensions. These are the properties of the OpenGL texture this instance represents. More...
 
virtual int GetWrapR ()
 Wrap mode for the first texture coordinate "r" Valid values are: More...
 
virtual int GetWrapS ()
 Wrap mode for the first texture coordinate "s" Valid values are: More...
 
virtual int GetWrapT ()
 Wrap mode for the first texture coordinate "t" Valid values are: More...
 
override int IsA (string type)
 Undocumented Block More...
 
bool 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). More...
 
new vtkTextureObject NewInstance ()
 Undocumented Block More...
 
void SendParameters ()
 Send all the texture object parameters to the hardware if not done yet. More...
 
virtual void SetBaseLevel (int _arg)
 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. More...
 
virtual void SetBorderColor (float _arg1, float _arg2, float _arg3, float _arg4)
 Border Color (RGBA). Each component is in [0.0f,1.0f]. Initial value is (0.0f,0.0f,0.0f,0.0f), as in OpenGL spec. More...
 
virtual void SetBorderColor (IntPtr _arg)
 Border Color (RGBA). Each component is in [0.0f,1.0f]. Initial value is (0.0f,0.0f,0.0f,0.0f), as in OpenGL spec. More...
 
void SetContext (vtkRenderWindow arg0)
 Get/Set the context. This does not increase the reference count of the context to avoid reference loops. SetContext() may raise an error is the OpenGL context does not support the required OpenGL extensions. More...
 
virtual void SetDepthTextureCompare (bool _arg)
 Tells if the output of a texture unit with a depth texture uses comparison or not. Comparison happens between D_t the depth texture value in the range [0,1] and with R the interpolated third texture coordinate clamped to range [0,1]. The result of the comparison is noted `r'. If this flag is false, r=D_t. Initial value is false, as in OpenGL spec. Ignored if the texture object is not a depth texture. More...
 
virtual void SetDepthTextureCompareFunction (int _arg)
 In case DepthTextureCompare is true, specify the comparison function in use. The result of the comparison is noted `r'. Valid values are: More...
 
virtual void SetDepthTextureMode (int _arg)
 Defines the mapping from depth component `r' to RGBA components. Ignored if the texture object is not a depth texture. Valid modes are: More...
 
virtual void SetGenerateMipmap (bool _arg)
 Tells the hardware to generate mipmap textures from the first texture image at BaseLevel. Initial value is false, as in OpenGL spec. More...
 
virtual void SetLinearMagnification (bool _arg)
 Tells if the magnification mode is linear (true) or nearest (false). Initial value is false (initial value in OpenGL spec is true). More...
 
virtual void SetMaxLOD (float _arg)
 Upper-clamp the computed LOD against this value. Any float value is valid. Initial value is 1000.0f, as in OpenGL spec. More...
 
virtual void SetMaxLevel (int _arg)
 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. More...
 
virtual void SetMinLOD (float _arg)
 Lower-clamp the computed LOD against this value. Any float value is valid. Initial value is -1000.0f, as in OpenGL spec. More...
 
virtual void SetMinificationFilter (int _arg)
 Minification filter mode. Valid values are: More...
 
virtual void SetPriority (float _arg)
 Priority of the texture object to be resident on the card for higher performance in the range [0.0f,1.0f]. Initial value is 1.0f, as in OpenGL spec. More...
 
virtual void SetWrapR (int _arg)
 Wrap mode for the first texture coordinate "r" Valid values are: More...
 
virtual void SetWrapS (int _arg)
 Wrap mode for the first texture coordinate "s" Valid values are: More...
 
virtual void SetWrapT (int _arg)
 Wrap mode for the first texture coordinate "t" Valid values are: More...
 
void UnBind ()
 Activate the texture. The texture must have been created using Create(). RenderWindow must be set before calling this. More...
 
- Public Member Functions inherited from Kitware.VTK.vtkObject
 vtkObject (IntPtr rawCppThis, bool callDisposalMethod, bool strong)
 Automatically generated constructor - called from generated code. DO NOT call directly. More...
 
 vtkObject ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More...
 
uint AddObserver (uint arg0, vtkCommand arg1, float priority)
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
uint AddObserver (string arg0, vtkCommand arg1, float priority)
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
virtual void DebugOff ()
 Turn debugging output off. More...
 
virtual void DebugOn ()
 Turn debugging output on. More...
 
vtkCommand GetCommand (uint tag)
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
byte GetDebug ()
 Get the value of the debug flag. More...
 
virtual uint GetMTime ()
 Return this object's modified time. More...
 
int HasObserver (uint arg0, vtkCommand arg1)
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
int HasObserver (string arg0, vtkCommand arg1)
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
int HasObserver (uint arg0)
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
int HasObserver (string arg0)
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
int InvokeEvent (uint arg0, IntPtr callData)
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
int InvokeEvent (string arg0, IntPtr callData)
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
int InvokeEvent (uint arg0)
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
int InvokeEvent (string arg0)
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
virtual void Modified ()
 Update the modification time for this object. Many filters rely on the modification time to determine if they need to recompute their data. The modification time is a unique monotonically increasing unsigned long integer. More...
 
vtkObject NewInstance ()
 Undocumented Block More...
 
void RemoveAllObservers ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
void RemoveObserver (vtkCommand arg0)
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
void RemoveObserver (uint tag)
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
void RemoveObservers (uint arg0, vtkCommand arg1)
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
void RemoveObservers (string arg0, vtkCommand arg1)
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
void RemoveObservers (uint arg0)
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
void RemoveObservers (string arg0)
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
void SetDebug (byte debugFlag)
 Set the value of the debug flag. A non-zero value turns debugging on. More...
 
override string ToString ()
 Returns the result of calling vtkObject::Print as a C# string. More...
 
delegate void vtkObjectEventHandler (vtkObject sender, vtkObjectEventArgs e)
 Generic signature for all vtkObject events. More...
 
void RemoveAllHandlersForAllEvents ()
 Call RemoveAllHandlers on each non-null vtkObjectEventRelay. TODO: This method needs to get called by the generated Dispose. Make that happen... More...
 
- Public Member Functions inherited from Kitware.VTK.vtkObjectBase
 vtkObjectBase (IntPtr rawCppThis, bool callDisposalMethod, bool strong)
 Automatically generated constructor - called from generated code. DO NOT call directly. More...
 
 vtkObjectBase ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More...
 
virtual void Register (vtkObjectBase o)
 Increase the reference count (mark as used by another object). More...
 
virtual void FastDelete ()
 Delete a reference to this object. This version will not invoke garbage collection and can potentially leak the object if it is part of a reference loop. Use this method only when it is known that the object has another reference and would not be collected if a full garbage collection check were done. More...
 
string GetClassName ()
 Return the class name as a string. This method is defined in all subclasses of vtkObjectBase with the vtkTypeMacro found in vtkSetGet.h. More...
 
int GetReferenceCount ()
 Return the current reference count of this object. More...
 
void SetReferenceCount (int arg0)
 Sets the reference count. (This is very dangerous, use with care.) More...
 

Static Public Member Functions

static new vtkTextureObject New ()
 Undocumented Block More...
 
static bool IsSupported (vtkRenderWindow renWin)
 Returns if the context supports the required extensions. More...
 
static new int IsTypeOf (string type)
 Undocumented Block More...
 
static new vtkTextureObject SafeDownCast (vtkObjectBase o)
 Undocumented Block More...
 
- Static Public Member Functions inherited from Kitware.VTK.vtkObject
static new vtkObject New ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More...
 
static void BreakOnError ()
 This method is called when vtkErrorMacro executes. It allows the debugger to break on error. More...
 
static int GetGlobalWarningDisplay ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static void GlobalWarningDisplayOff ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static void GlobalWarningDisplayOn ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static new int IsTypeOf (string type)
 Undocumented Block More...
 
static vtkObject SafeDownCast (vtkObjectBase o)
 Undocumented Block More...
 
static void SetGlobalWarningDisplay (int val)
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
- Static Public Member Functions inherited from Kitware.VTK.vtkObjectBase
static vtkObjectBase New ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More...
 
static int IsTypeOf (string name)
 Return 1 if this class type 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. More...
 

Public Attributes

new const string MRFullTypeName = "Kitware.VTK.vtkTextureObject"
 Automatically generated type registration mechanics. More...
 
- Public Attributes inherited from Kitware.VTK.vtkObject
new const string MRFullTypeName = "Kitware.VTK.vtkObject"
 Automatically generated type registration mechanics. More...
 
- Public Attributes inherited from Kitware.VTK.vtkObjectBase
new const string MRFullTypeName = "Kitware.VTK.vtkObjectBase"
 Automatically generated type registration mechanics. More...
 
- Public Attributes inherited from Kitware.VTK.WrappedObject
const string vtkChartsEL_dll = "libKitware.VTK.vtkCharts.Unmanaged.so"
 Export layer functions for 'vtkCharts' are exported from the DLL named by the value of this variable. More...
 
const string vtkCommonEL_dll = "libKitware.VTK.vtkCommon.Unmanaged.so"
 Export layer functions for 'vtkCommon' are exported from the DLL named by the value of this variable. More...
 
const string vtkFilteringEL_dll = "libKitware.VTK.vtkFiltering.Unmanaged.so"
 Export layer functions for 'vtkFiltering' are exported from the DLL named by the value of this variable. More...
 
const string vtkGenericFilteringEL_dll = "libKitware.VTK.vtkGenericFiltering.Unmanaged.so"
 Export layer functions for 'vtkGenericFiltering' are exported from the DLL named by the value of this variable. More...
 
const string vtkGeovisEL_dll = "libKitware.VTK.vtkGeovis.Unmanaged.so"
 Export layer functions for 'vtkGeovis' are exported from the DLL named by the value of this variable. More...
 
const string vtkGraphicsEL_dll = "libKitware.VTK.vtkGraphics.Unmanaged.so"
 Export layer functions for 'vtkGraphics' are exported from the DLL named by the value of this variable. More...
 
const string vtkHybridEL_dll = "libKitware.VTK.vtkHybrid.Unmanaged.so"
 Export layer functions for 'vtkHybrid' are exported from the DLL named by the value of this variable. More...
 
const string vtkIOEL_dll = "libKitware.VTK.vtkIO.Unmanaged.so"
 Export layer functions for 'vtkIO' are exported from the DLL named by the value of this variable. More...
 
const string vtkImagingEL_dll = "libKitware.VTK.vtkImaging.Unmanaged.so"
 Export layer functions for 'vtkImaging' are exported from the DLL named by the value of this variable. More...
 
const string vtkInfovisEL_dll = "libKitware.VTK.vtkInfovis.Unmanaged.so"
 Export layer functions for 'vtkInfovis' are exported from the DLL named by the value of this variable. More...
 
const string vtkParallelEL_dll = "libKitware.VTK.vtkParallel.Unmanaged.so"
 Export layer functions for 'vtkParallel' are exported from the DLL named by the value of this variable. More...
 
const string vtkRenderingEL_dll = "libKitware.VTK.vtkRendering.Unmanaged.so"
 Export layer functions for 'vtkRendering' are exported from the DLL named by the value of this variable. More...
 
const string vtkViewsEL_dll = "libKitware.VTK.vtkViews.Unmanaged.so"
 Export layer functions for 'vtkViews' are exported from the DLL named by the value of this variable. More...
 
const string vtkVolumeRenderingEL_dll = "libKitware.VTK.vtkVolumeRendering.Unmanaged.so"
 Export layer functions for 'vtkVolumeRendering' are exported from the DLL named by the value of this variable. More...
 
const string vtkWidgetsEL_dll = "libKitware.VTK.vtkWidgets.Unmanaged.so"
 Export layer functions for 'vtkWidgets' are exported from the DLL named by the value of this variable. More...
 

Static Public Attributes

static new readonly string MRClassNameKey = "16vtkTextureObject"
 Automatically generated type registration mechanics. More...
 
- Static Public Attributes inherited from Kitware.VTK.vtkObject
static new readonly string MRClassNameKey = "9vtkObject"
 Automatically generated type registration mechanics. More...
 
- Static Public Attributes inherited from Kitware.VTK.vtkObjectBase
static new readonly string MRClassNameKey = "13vtkObjectBase"
 Automatically generated type registration mechanics. More...
 

Protected Member Functions

override void Dispose (bool disposing)
 Automatically generated protected Dispose method - called from public Dispose or the C# destructor. DO NOT call directly. More...
 
- Protected Member Functions inherited from Kitware.VTK.vtkObject
override void Dispose (bool disposing)
 Automatically generated protected Dispose method - called from public Dispose or the C# destructor. DO NOT call directly. More...
 
- Protected Member Functions inherited from Kitware.VTK.vtkObjectBase
override void Dispose (bool disposing)
 Decrease the reference count (release by another object). This has the same effect as invoking Delete() (i.e., it reduces the reference count by 1). More...
 
- Protected Member Functions inherited from Kitware.VTK.WrappedObject
 WrappedObject (IntPtr rawCppThis, bool callDisposalMethod, bool strong)
 Constructor expected by the mummy Runtime. More...
 

Static Private Member Functions

static vtkTextureObject ()
 Automatically generated type registration mechanics. More...
 

Additional Inherited Members

- Properties inherited from Kitware.VTK.vtkObject
Kitware.VTK.vtkObject.vtkObjectEventHandler AbortCheckEvt
 The AbortCheckEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.AbortCheckEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler AnimationCueTickEvt
 The AnimationCueTickEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.AnimationCueTickEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler AnyEvt
 The AnyEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.AnyEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler CharEvt
 The CharEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.CharEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler ConfigureEvt
 The ConfigureEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.ConfigureEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler ConnectionClosedEvt
 The ConnectionClosedEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.ConnectionClosedEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler ConnectionCreatedEvt
 The ConnectionCreatedEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.ConnectionCreatedEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler CreateTimerEvt
 The CreateTimerEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.CreateTimerEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler CursorChangedEvt
 The CursorChangedEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.CursorChangedEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler DeleteEvt
 The DeleteEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.DeleteEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler DestroyTimerEvt
 The DestroyTimerEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.DestroyTimerEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler DisableEvt
 The DisableEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.DisableEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler DomainModifiedEvt
 The DomainModifiedEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.DomainModifiedEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler EnableEvt
 The EnableEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.EnableEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler EndAnimationCueEvt
 The EndAnimationCueEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.EndAnimationCueEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler EndEvt
 The EndEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.EndEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler EndInteractionEvt
 The EndInteractionEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.EndInteractionEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler EndPickEvt
 The EndPickEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.EndPickEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler EndWindowLevelEvt
 The EndWindowLevelEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.EndWindowLevelEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler EnterEvt
 The EnterEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.EnterEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler ErrorEvt
 The ErrorEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.ErrorEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler ExecuteInformationEvt
 The ExecuteInformationEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.ExecuteInformationEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler ExitEvt
 The ExitEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.ExitEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler ExposeEvt
 The ExposeEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.ExposeEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler InteractionEvt
 The InteractionEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.InteractionEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler KeyPressEvt
 The KeyPressEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.KeyPressEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler KeyReleaseEvt
 The KeyReleaseEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.KeyReleaseEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler LeaveEvt
 The LeaveEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.LeaveEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler LeftButtonPressEvt
 The LeftButtonPressEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.LeftButtonPressEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler LeftButtonReleaseEvt
 The LeftButtonReleaseEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.LeftButtonReleaseEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler MiddleButtonPressEvt
 The MiddleButtonPressEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.MiddleButtonPressEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler MiddleButtonReleaseEvt
 The MiddleButtonReleaseEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.MiddleButtonReleaseEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler ModifiedEvt
 The ModifiedEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.ModifiedEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler MouseMoveEvt
 The MouseMoveEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.MouseMoveEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler MouseWheelBackwardEvt
 The MouseWheelBackwardEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.MouseWheelBackwardEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler MouseWheelForwardEvt
 The MouseWheelForwardEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.MouseWheelForwardEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler PickEvt
 The PickEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.PickEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler PlacePointEvt
 The PlacePointEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.PlacePointEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler PlaceWidgetEvt
 The PlaceWidgetEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.PlaceWidgetEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler ProgressEvt
 The ProgressEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.ProgressEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler PropertyModifiedEvt
 The PropertyModifiedEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.PropertyModifiedEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler RegisterEvt
 The RegisterEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.RegisterEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler RenderEvt
 The RenderEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.RenderEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler RenderWindowMessageEvt
 The RenderWindowMessageEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.RenderWindowMessageEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler ResetCameraClippingRangeEvt
 The ResetCameraClippingRangeEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.ResetCameraClippingRangeEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler ResetCameraEvt
 The ResetCameraEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.ResetCameraEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler ResetWindowLevelEvt
 The ResetWindowLevelEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.ResetWindowLevelEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler RightButtonPressEvt
 The RightButtonPressEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.RightButtonPressEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler RightButtonReleaseEvt
 The RightButtonReleaseEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.RightButtonReleaseEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler SelectionChangedEvt
 The SelectionChangedEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.SelectionChangedEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler SetOutputEvt
 The SetOutputEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.SetOutputEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler StartAnimationCueEvt
 The StartAnimationCueEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.StartAnimationCueEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler StartEvt
 The StartEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.StartEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler StartInteractionEvt
 The StartInteractionEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.StartInteractionEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler StartPickEvt
 The StartPickEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.StartPickEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler StartWindowLevelEvt
 The StartWindowLevelEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.StartWindowLevelEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler TimerEvt
 The TimerEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.TimerEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler UnRegisterEvt
 The UnRegisterEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.UnRegisterEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler UpdateEvt
 The UpdateEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.UpdateEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler UpdateInformationEvt
 The UpdateInformationEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.UpdateInformationEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler UpdatePropertyEvt
 The UpdatePropertyEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.UpdatePropertyEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler VolumeMapperComputeGradientsEndEvt
 The VolumeMapperComputeGradientsEndEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.VolumeMapperComputeGradientsEndEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler VolumeMapperComputeGradientsProgressEvt
 The VolumeMapperComputeGradientsProgressEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.VolumeMapperComputeGradientsProgressEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler VolumeMapperComputeGradientsStartEvt
 The VolumeMapperComputeGradientsStartEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.VolumeMapperComputeGradientsStartEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler VolumeMapperRenderEndEvt
 The VolumeMapperRenderEndEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.VolumeMapperRenderEndEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler VolumeMapperRenderProgressEvt
 The VolumeMapperRenderProgressEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.VolumeMapperRenderProgressEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler VolumeMapperRenderStartEvt
 The VolumeMapperRenderStartEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.VolumeMapperRenderStartEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler WarningEvt
 The WarningEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.WarningEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler WidgetActivateEvt
 The WidgetActivateEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.WidgetActivateEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler WidgetModifiedEvt
 The WidgetModifiedEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.WidgetModifiedEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler WidgetValueChangedEvt
 The WidgetValueChangedEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.WidgetValueChangedEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler WindowLevelEvt
 The WindowLevelEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.WindowLevelEvent as the eventId parameter. More...
 
Kitware.VTK.vtkObject.vtkObjectEventHandler WrongTagEvt
 The WrongTagEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.WrongTagEvent as the eventId parameter. More...
 

Detailed Description

vtkTextureObject - abstracts an OpenGL texture object.

Description 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. Caveats DON'T PLAY WITH IT YET.

Member Enumeration Documentation

Undocumented Block

Enumerator
Alpha 

enum member

Intensity 

enum member

Luminance 

enum member

NumberOfDepthTextureModes 

enum member

Undocumented Block

Enumerator
AlwaysTrue 

enum member

Equal 

enum member

Gequal 

enum member

Greater 

enum member

Lequal 

enum member

Less 

enum member

Never 

enum member

NotEqual 

enum member

NumberOfDepthTextureCompareFunctions 

enum member

Undocumented Block

Enumerator
Clamp 

enum member

ClampToBorder 

enum member

ClampToEdge 

enum member

MirroredRepeat 

enum member

NumberOfWrapModes 

enum member

Repeat 

enum member

Undocumented Block

Enumerator
Fixed16 

enum member

Fixed24 

enum member

Fixed32 

enum member

Float32 

enum member

Native 

enum member

NumberOfDepthFormats 

enum member

Undocumented Block

Enumerator
Linear 

enum member

LinearMipmapLinear 

enum member

LinearMipmapNearest 

enum member

Nearest 

enum member

NearestMipmapLinear 

enum member

NearestMipmapNearest 

enum member

NumberOfMinificationModes 

enum member

Constructor & Destructor Documentation

static Kitware.VTK.vtkTextureObject.vtkTextureObject ( )
staticprivate

Automatically generated type registration mechanics.

Kitware.VTK.vtkTextureObject.vtkTextureObject ( IntPtr  rawCppThis,
bool  callDisposalMethod,
bool  strong 
)

Automatically generated constructor - called from generated code. DO NOT call directly.

Kitware.VTK.vtkTextureObject.vtkTextureObject ( )

Undocumented Block

Member Function Documentation

bool Kitware.VTK.vtkTextureObject.Allocate1D ( uint  width,
int  numComps,
int  vtkType 
)

Create a 1D color texture but does not initialize its values. Internal format is deduced from numComps and vtkType.

bool Kitware.VTK.vtkTextureObject.Allocate2D ( uint  width,
uint  height,
int  numComps,
int  vtkType 
)

Create a 2D color texture but does not initialize its values. Internal format is deduced from numComps and vtkType.

bool Kitware.VTK.vtkTextureObject.Allocate3D ( uint  width,
uint  height,
uint  depth,
int  numComps,
int  vtkType 
)

Create a 3D color texture but does not initialize its values. Internal format is deduced from numComps and vtkType.

bool Kitware.VTK.vtkTextureObject.AllocateDepth ( uint  width,
uint  height,
int  internalFormat 
)

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

void Kitware.VTK.vtkTextureObject.Bind ( )

Activate the texture. The texture must have been created using Create(). RenderWindow must be set before calling this.

void Kitware.VTK.vtkTextureObject.CopyFromFrameBuffer ( int  srcXmin,
int  srcYmin,
int  dstXmin,
int  dstYmin,
int  width,
int  height 
)

Copy a sub-part of a logical buffer of the framebuffer (color or depth) to the texture object. src is the framebuffer, dst is the texture. (srcXmin,srcYmin) is the location of the lower left corner of the rectangle in the framebuffer. (dstXmin,dstYmin) is the location of the lower left corner of the rectangle in the texture. width and height specifies the size of the rectangle in pixels. If the logical buffer is a color buffer, it has to be selected first with glReadBuffer().

Precondition
is2D: GetNumberOfDimensions()==2
void Kitware.VTK.vtkTextureObject.CopyToFrameBuffer ( int  srcXmin,
int  srcYmin,
int  srcXmax,
int  srcYmax,
int  dstXmin,
int  dstYmin,
int  width,
int  height 
)

Copy a sub-part of the texture (src) in the current framebuffer at location (dstXmin,dstYmin). (dstXmin,dstYmin) is the location of the lower left corner of the rectangle. width and height are the dimensions of the framebuffer.

  • texture coordinates are sent on texture coordinate processing unit 0.
  • if the fixed-pipeline fragment shader is used, texturing has to be set on texture image unit 0 and the texture object has to be bound on texture image unit 0.
  • if a customized fragment shader is used, you are free to pick the texture image unit you want. You can even have multiple texture objects attached on multiple texture image units. In this case, you call this method only on one of them.
    Precondition
    positive_srcXmin: srcXmin>=0
    max_srcXmax: srcXmax<this->GetWidth()
    increasing_x: srcXmin<=srcXmax
    positive_srcYmin: srcYmin>=0
    max_srcYmax: srcYmax<this->GetHeight()
    increasing_y: srcYmin<=srcYmax
    positive_dstXmin: dstXmin>=0
    positive_dstYmin: dstYmin>=0
    positive_width: width>0
    positive_height: height>0
    x_fit: destXmin+(srcXmax-srcXmin)<width
    y_fit: destYmin+(srcYmax-srcYmin)<height
bool Kitware.VTK.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 implementor of the shader made a version that supports texture int.

bool Kitware.VTK.vtkTextureObject.Create2D ( uint  width,
uint  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].

bool Kitware.VTK.vtkTextureObject.Create2D ( uint  width,
uint  height,
int  numComps,
int  vtktype,
bool  shaderSupportsTextureInt 
)

Create texture without uploading any data. To create a DEPTH_COMPONENT texture, vtktype must be set to VTK_VOID and numComps must be 1.

bool Kitware.VTK.vtkTextureObject.Create3D ( uint  width,
uint  height,
uint  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].

bool Kitware.VTK.vtkTextureObject.Create3D ( uint  width,
uint  height,
uint  depth,
int  numComps,
int  vtktype,
bool  shaderSupportsTextureInt 
)

Create texture without uploading any data. To create a DEPTH_COMPONENT texture, vtktype must be set to VTK_VOID and numComps must be 1.

bool Kitware.VTK.vtkTextureObject.CreateDepth ( uint  width,
uint  height,
int  internalFormat,
vtkPixelBufferObject  pbo 
)

Create a 2D depth texture using a PBO.

Precondition
: valid_internalFormat: internalFormat>=0 && internalFormat<NumberOfDepthFormats
bool Kitware.VTK.vtkTextureObject.CreateDepthFromRaw ( uint  width,
uint  height,
int  internalFormat,
int  rawType,
IntPtr  raw 
)

Create a 2D depth texture using a raw pointer. This is a blocking call. If you can, use PBO instead.

override void Kitware.VTK.vtkTextureObject.Dispose ( bool  disposing)
protected

Automatically generated protected Dispose method - called from public Dispose or the C# destructor. DO NOT call directly.

vtkPixelBufferObject Kitware.VTK.vtkTextureObject.Download ( )

This is used to download raw data from the texture into a pixel bufer. 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.

Here is the call graph for this function:

virtual int Kitware.VTK.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.

virtual float [] Kitware.VTK.vtkTextureObject.GetBorderColor ( )
virtual

Border Color (RGBA). Each component is in [0.0f,1.0f]. Initial value is (0.0f,0.0f,0.0f,0.0f), as in OpenGL spec.

virtual void Kitware.VTK.vtkTextureObject.GetBorderColor ( ref float  _arg1,
ref float  _arg2,
ref float  _arg3,
ref float  _arg4 
)
virtual

Border Color (RGBA). Each component is in [0.0f,1.0f]. Initial value is (0.0f,0.0f,0.0f,0.0f), as in OpenGL spec.

virtual void Kitware.VTK.vtkTextureObject.GetBorderColor ( IntPtr  _arg)
virtual

Border Color (RGBA). Each component is in [0.0f,1.0f]. Initial value is (0.0f,0.0f,0.0f,0.0f), as in OpenGL spec.

virtual int Kitware.VTK.vtkTextureObject.GetComponents ( )
virtual

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

vtkRenderWindow Kitware.VTK.vtkTextureObject.GetContext ( )

Get/Set the context. This does not increase the reference count of the context to avoid reference loops. SetContext() may raise an error is the OpenGL context does not support the required OpenGL extensions.

Here is the call graph for this function:

int Kitware.VTK.vtkTextureObject.GetDataType ( )

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

virtual uint Kitware.VTK.vtkTextureObject.GetDepth ( )
virtual

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

virtual bool Kitware.VTK.vtkTextureObject.GetDepthTextureCompare ( )
virtual

Tells if the output of a texture unit with a depth texture uses comparison or not. Comparison happens between D_t the depth texture value in the range [0,1] and with R the interpolated third texture coordinate clamped to range [0,1]. The result of the comparison is noted `r'. If this flag is false, r=D_t. Initial value is false, as in OpenGL spec. Ignored if the texture object is not a depth texture.

virtual int Kitware.VTK.vtkTextureObject.GetDepthTextureCompareFunction ( )
virtual

In case DepthTextureCompare is true, specify the comparison function in use. 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 Kitware.VTK.vtkTextureObject.GetDepthTextureMode ( )
virtual

Defines the mapping from depth component `r' to RGBA components. Ignored if the texture object is not a depth texture. Valid modes are:

  • Luminance: (R,G,B,A)=(r,r,r,1)
  • Intensity: (R,G,B,A)=(r,r,r,r)
  • Alpha: (R.G.B.A)=(0,0,0,r) Initial value is Luminance, as in OpenGL spec.
uint Kitware.VTK.vtkTextureObject.GetFormat ( int  vtktype,
int  numComps,
bool  shaderSupportsTextureInt 
)

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

virtual bool Kitware.VTK.vtkTextureObject.GetGenerateMipmap ( )
virtual

Tells the hardware to generate mipmap textures from the first texture image at BaseLevel. Initial value is false, as in OpenGL spec.

virtual uint Kitware.VTK.vtkTextureObject.GetHandle ( )
virtual

Returns the OpenGL handle.

virtual uint Kitware.VTK.vtkTextureObject.GetHeight ( )
virtual

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

uint Kitware.VTK.vtkTextureObject.GetInternalFormat ( int  vtktype,
int  numComps,
bool  shaderSupportsTextureInt 
)

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

virtual bool Kitware.VTK.vtkTextureObject.GetLinearMagnification ( )
virtual

Tells if the magnification mode is linear (true) or nearest (false). Initial value is false (initial value in OpenGL spec is true).

virtual int Kitware.VTK.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.

virtual float Kitware.VTK.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.

virtual int Kitware.VTK.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. ).
virtual float Kitware.VTK.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.

virtual int Kitware.VTK.vtkTextureObject.GetNumberOfDimensions ( )
virtual

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

virtual float Kitware.VTK.vtkTextureObject.GetPriority ( )
virtual

Priority of the texture object to be resident on the card for higher performance in the range [0.0f,1.0f]. Initial value is 1.0f, as in OpenGL spec.

virtual uint Kitware.VTK.vtkTextureObject.GetTarget ( )
virtual

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

virtual uint Kitware.VTK.vtkTextureObject.GetWidth ( )
virtual

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

virtual int Kitware.VTK.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)
virtual int Kitware.VTK.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)
virtual int Kitware.VTK.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)
override int Kitware.VTK.vtkTextureObject.IsA ( string  type)
virtual

Undocumented Block

Reimplemented from Kitware.VTK.vtkObject.

bool Kitware.VTK.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).

static bool Kitware.VTK.vtkTextureObject.IsSupported ( vtkRenderWindow  renWin)
static

Returns if the context supports the required extensions.

static new int Kitware.VTK.vtkTextureObject.IsTypeOf ( string  type)
static

Undocumented Block

static new vtkTextureObject Kitware.VTK.vtkTextureObject.New ( )
static

Undocumented Block

new vtkTextureObject Kitware.VTK.vtkTextureObject.NewInstance ( )

Undocumented Block

static new vtkTextureObject Kitware.VTK.vtkTextureObject.SafeDownCast ( vtkObjectBase  o)
static

Undocumented Block

Here is the call graph for this function:

void Kitware.VTK.vtkTextureObject.SendParameters ( )

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

Precondition
is_bound: IsBound()
virtual void Kitware.VTK.vtkTextureObject.SetBaseLevel ( int  _arg)
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.

virtual void Kitware.VTK.vtkTextureObject.SetBorderColor ( float  _arg1,
float  _arg2,
float  _arg3,
float  _arg4 
)
virtual

Border Color (RGBA). Each component is in [0.0f,1.0f]. Initial value is (0.0f,0.0f,0.0f,0.0f), as in OpenGL spec.

virtual void Kitware.VTK.vtkTextureObject.SetBorderColor ( IntPtr  _arg)
virtual

Border Color (RGBA). Each component is in [0.0f,1.0f]. Initial value is (0.0f,0.0f,0.0f,0.0f), as in OpenGL spec.

void Kitware.VTK.vtkTextureObject.SetContext ( vtkRenderWindow  arg0)

Get/Set the context. This does not increase the reference count of the context to avoid reference loops. SetContext() may raise an error is the OpenGL context does not support the required OpenGL extensions.

virtual void Kitware.VTK.vtkTextureObject.SetDepthTextureCompare ( bool  _arg)
virtual

Tells if the output of a texture unit with a depth texture uses comparison or not. Comparison happens between D_t the depth texture value in the range [0,1] and with R the interpolated third texture coordinate clamped to range [0,1]. The result of the comparison is noted `r'. If this flag is false, r=D_t. Initial value is false, as in OpenGL spec. Ignored if the texture object is not a depth texture.

virtual void Kitware.VTK.vtkTextureObject.SetDepthTextureCompareFunction ( int  _arg)
virtual

In case DepthTextureCompare is true, specify the comparison function in use. 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 void Kitware.VTK.vtkTextureObject.SetDepthTextureMode ( int  _arg)
virtual

Defines the mapping from depth component `r' to RGBA components. Ignored if the texture object is not a depth texture. Valid modes are:

  • Luminance: (R,G,B,A)=(r,r,r,1)
  • Intensity: (R,G,B,A)=(r,r,r,r)
  • Alpha: (R.G.B.A)=(0,0,0,r) Initial value is Luminance, as in OpenGL spec.
virtual void Kitware.VTK.vtkTextureObject.SetGenerateMipmap ( bool  _arg)
virtual

Tells the hardware to generate mipmap textures from the first texture image at BaseLevel. Initial value is false, as in OpenGL spec.

virtual void Kitware.VTK.vtkTextureObject.SetLinearMagnification ( bool  _arg)
virtual

Tells if the magnification mode is linear (true) or nearest (false). Initial value is false (initial value in OpenGL spec is true).

virtual void Kitware.VTK.vtkTextureObject.SetMaxLevel ( int  _arg)
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.

virtual void Kitware.VTK.vtkTextureObject.SetMaxLOD ( float  _arg)
virtual

Upper-clamp the computed LOD against this value. Any float value is valid. Initial value is 1000.0f, as in OpenGL spec.

virtual void Kitware.VTK.vtkTextureObject.SetMinificationFilter ( int  _arg)
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. ).
virtual void Kitware.VTK.vtkTextureObject.SetMinLOD ( float  _arg)
virtual

Lower-clamp the computed LOD against this value. Any float value is valid. Initial value is -1000.0f, as in OpenGL spec.

virtual void Kitware.VTK.vtkTextureObject.SetPriority ( float  _arg)
virtual

Priority of the texture object to be resident on the card for higher performance in the range [0.0f,1.0f]. Initial value is 1.0f, as in OpenGL spec.

virtual void Kitware.VTK.vtkTextureObject.SetWrapR ( int  _arg)
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)
virtual void Kitware.VTK.vtkTextureObject.SetWrapS ( int  _arg)
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)
virtual void Kitware.VTK.vtkTextureObject.SetWrapT ( int  _arg)
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)
void Kitware.VTK.vtkTextureObject.UnBind ( )

Activate the texture. The texture must have been created using Create(). RenderWindow must be set before calling this.

Member Data Documentation

new readonly string Kitware.VTK.vtkTextureObject.MRClassNameKey = "16vtkTextureObject"
static

Automatically generated type registration mechanics.

new const string Kitware.VTK.vtkTextureObject.MRFullTypeName = "Kitware.VTK.vtkTextureObject"

Automatically generated type registration mechanics.


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