ActiViz .NET  5.8.0
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Private Member Functions | Static Private Member Functions
Kitware.VTK.vtkOpenGLExtensionManager Class Reference
Inheritance diagram for Kitware.VTK.vtkOpenGLExtensionManager:
[legend]
Collaboration diagram for Kitware.VTK.vtkOpenGLExtensionManager:
[legend]

List of all members.

Public Member Functions

 vtkOpenGLExtensionManager (IntPtr rawCppThis, bool callDisposalMethod, bool strong)
 Automatically generated constructor - called from generated code. DO NOT call directly.
 vtkOpenGLExtensionManager ()
 Undocumented Block.
virtual int ExtensionSupported (string name)
 Returns true if the extension is supported, false otherwise.
virtual string GetExtensionsString ()
 Returns a string listing all available extensions. Call Update first to validate this string.
vtkRenderWindow GetRenderWindow ()
 Set/Get the render window to query extensions on. If set to null, justs queries the current render window.
override int IsA (string type)
 Undocumented Block.
virtual void LoadAsARBExtension (string name)
 Similar to LoadCorePromotedExtension(). It loads an EXT extension into the pointers of its ARB equivalent.
virtual void LoadCorePromotedExtension (string name)
 Loads all the functions associated with the given core-promoted extension into the appropriate static members of vtkgl associated with the OpenGL version that promoted the extension as a core feature. This method emits a warning if the requested extension is not supported. It emits an error if the extension does not load successfully.
virtual void LoadExtension (string name)
 Loads all the functions associated with the given extension into the appropriate static members of vtkgl. This method emits a warning if the requested extension is not supported. It emits an error if the extension does not load successfully.
virtual int LoadSupportedExtension (string name)
 Returns true if the extension is supported and loaded successfully, false otherwise. This method will "fail silently/gracefully" if the extension is not supported or does not load properly. It emits neither warnings nor errors. It is up to the caller to determine if the extension loaded properly by paying attention to the return value.
new vtkOpenGLExtensionManager NewInstance ()
 Undocumented Block.
virtual void SetRenderWindow (vtkRenderWindow renwin)
 Set/Get the render window to query extensions on. If set to null, justs queries the current render window.
virtual void Update ()
 Updates the extensions string.

Static Public Member Functions

static new
vtkOpenGLExtensionManager 
New ()
 Undocumented Block.
static new int IsTypeOf (string type)
 Undocumented Block.
static new
vtkOpenGLExtensionManager 
SafeDownCast (vtkObjectBase o)
 Undocumented Block.

Public Attributes

new const string MRFullTypeName = "Kitware.VTK.vtkOpenGLExtensionManager"
 Automatically generated type registration mechanics.

Static Public Attributes

static new readonly string MRClassNameKey = "25vtkOpenGLExtensionManager"
 Automatically generated type registration mechanics.

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.

Private Member Functions

static internal IntPtr vtkOpenGLExtensionManager_New (ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal int vtkOpenGLExtensionManager_ExtensionSupported_01 (HandleRef pThis, string name)
static internal IntPtr vtkOpenGLExtensionManager_GetExtensionsString_02 (HandleRef pThis)
static internal IntPtr vtkOpenGLExtensionManager_GetRenderWindow_03 (HandleRef pThis, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal int vtkOpenGLExtensionManager_IsA_04 (HandleRef pThis, string type)
static internal int vtkOpenGLExtensionManager_IsTypeOf_05 (string type)
static internal void vtkOpenGLExtensionManager_LoadAsARBExtension_06 (HandleRef pThis, string name)
static internal void vtkOpenGLExtensionManager_LoadCorePromotedExtension_07 (HandleRef pThis, string name)
static internal void vtkOpenGLExtensionManager_LoadExtension_08 (HandleRef pThis, string name)
static internal int vtkOpenGLExtensionManager_LoadSupportedExtension_09 (HandleRef pThis, string name)
static internal IntPtr vtkOpenGLExtensionManager_NewInstance_11 (HandleRef pThis, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal IntPtr vtkOpenGLExtensionManager_SafeDownCast_12 (HandleRef o, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal void vtkOpenGLExtensionManager_SetRenderWindow_13 (HandleRef pThis, HandleRef renwin)
static internal void vtkOpenGLExtensionManager_Update_14 (HandleRef pThis)

Static Private Member Functions

static vtkOpenGLExtensionManager ()
 Automatically generated type registration mechanics.

Detailed Description

-*- c++ -*-


Constructor & Destructor Documentation

Automatically generated type registration mechanics.

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

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

Undocumented Block.


Member Function Documentation

override void Kitware.VTK.vtkOpenGLExtensionManager.Dispose ( bool  disposing) [protected]

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

Reimplemented from Kitware.VTK.vtkObject.

virtual int Kitware.VTK.vtkOpenGLExtensionManager.ExtensionSupported ( string  name) [virtual]

Returns true if the extension is supported, false otherwise.

Returns a string listing all available extensions. Call Update first to validate this string.

Set/Get the render window to query extensions on. If set to null, justs queries the current render window.

Here is the call graph for this function:

override int Kitware.VTK.vtkOpenGLExtensionManager.IsA ( string  type) [virtual]

Undocumented Block.

Reimplemented from Kitware.VTK.vtkObject.

static new int Kitware.VTK.vtkOpenGLExtensionManager.IsTypeOf ( string  type) [static]

Undocumented Block.

Reimplemented from Kitware.VTK.vtkObject.

virtual void Kitware.VTK.vtkOpenGLExtensionManager.LoadAsARBExtension ( string  name) [virtual]

Similar to LoadCorePromotedExtension(). It loads an EXT extension into the pointers of its ARB equivalent.

virtual void Kitware.VTK.vtkOpenGLExtensionManager.LoadCorePromotedExtension ( string  name) [virtual]

Loads all the functions associated with the given core-promoted extension into the appropriate static members of vtkgl associated with the OpenGL version that promoted the extension as a core feature. This method emits a warning if the requested extension is not supported. It emits an error if the extension does not load successfully.

For instance, extension GL_ARB_multitexture was promoted as a core feature into OpenGL 1.3. An implementation that uses this feature has to (IN THIS ORDER), check if OpenGL 1.3 is supported with ExtensionSupported("GL_VERSION_1_3"), if true, load the extension with LoadExtension("GL_VERSION_1_3"). If false, test for the extension with ExtensionSupported("GL_ARB_multitexture"),if true load the extension with this method LoadCorePromotedExtension("GL_ARB_multitexture"). If any of those loading stage succeeded, use vtgl::ActiveTexture() in any case, NOT vtgl::ActiveTextureARB(). This method avoids the use of if statements everywhere in implementations using core-promoted extensions. Without this method, the implementation code should look like:

       int opengl_1_3=extensions->ExtensionSupported("GL_VERSION_1_3");
       if(opengl_1_3)
       {
         extensions->LoadExtension("GL_VERSION_1_3");
       }
       else
       {
        if(extensions->ExtensionSupported("GL_ARB_multitexture"))
        {
         extensions->LoadCorePromotedExtension("GL_ARB_multitexture");
        }
        else
        {
         vtkErrorMacro("Required multitexture feature is not supported!");
        }
       }
       ...
       if(opengl_1_3)
       {
        vtkgl::ActiveTexture(vtkgl::TEXTURE0)
       }
       else
       {
        vtkgl::ActiveTextureARB(vtkgl::TEXTURE0_ARB)
       }

Thanks to this method, the code looks like:

       int opengl_1_3=extensions->ExtensionSupported("GL_VERSION_1_3");
       if(opengl_1_3)
       {
         extensions->LoadExtension("GL_VERSION_1_3");
       }
       else
       {
        if(extensions->ExtensionSupported("GL_ARB_multitexture"))
        {
         extensions->LoadCorePromotedExtension("GL_ARB_multitexture");
        }
        else
        {
         vtkErrorMacro("Required multitexture feature is not supported!");
        }
       }
       ...
       vtkgl::ActiveTexture(vtkgl::TEXTURE0);
virtual void Kitware.VTK.vtkOpenGLExtensionManager.LoadExtension ( string  name) [virtual]

Loads all the functions associated with the given extension into the appropriate static members of vtkgl. This method emits a warning if the requested extension is not supported. It emits an error if the extension does not load successfully.

virtual int Kitware.VTK.vtkOpenGLExtensionManager.LoadSupportedExtension ( string  name) [virtual]

Returns true if the extension is supported and loaded successfully, false otherwise. This method will "fail silently/gracefully" if the extension is not supported or does not load properly. It emits neither warnings nor errors. It is up to the caller to determine if the extension loaded properly by paying attention to the return value.

Undocumented Block.

Reimplemented from Kitware.VTK.vtkObject.

Undocumented Block.

Reimplemented from Kitware.VTK.vtkObject.

Undocumented Block.

Reimplemented from Kitware.VTK.vtkObject.

Here is the call graph for this function:

Set/Get the render window to query extensions on. If set to null, justs queries the current render window.

Updates the extensions string.

static internal int Kitware.VTK.vtkOpenGLExtensionManager.vtkOpenGLExtensionManager_ExtensionSupported_01 ( HandleRef  pThis,
string  name 
) [private]
static internal IntPtr Kitware.VTK.vtkOpenGLExtensionManager.vtkOpenGLExtensionManager_GetRenderWindow_03 ( HandleRef  pThis,
ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal int Kitware.VTK.vtkOpenGLExtensionManager.vtkOpenGLExtensionManager_IsA_04 ( HandleRef  pThis,
string  type 
) [private]
static internal void Kitware.VTK.vtkOpenGLExtensionManager.vtkOpenGLExtensionManager_LoadAsARBExtension_06 ( HandleRef  pThis,
string  name 
) [private]
static internal void Kitware.VTK.vtkOpenGLExtensionManager.vtkOpenGLExtensionManager_LoadCorePromotedExtension_07 ( HandleRef  pThis,
string  name 
) [private]
static internal void Kitware.VTK.vtkOpenGLExtensionManager.vtkOpenGLExtensionManager_LoadExtension_08 ( HandleRef  pThis,
string  name 
) [private]
static internal int Kitware.VTK.vtkOpenGLExtensionManager.vtkOpenGLExtensionManager_LoadSupportedExtension_09 ( HandleRef  pThis,
string  name 
) [private]
static internal IntPtr Kitware.VTK.vtkOpenGLExtensionManager.vtkOpenGLExtensionManager_New ( ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal IntPtr Kitware.VTK.vtkOpenGLExtensionManager.vtkOpenGLExtensionManager_NewInstance_11 ( HandleRef  pThis,
ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal IntPtr Kitware.VTK.vtkOpenGLExtensionManager.vtkOpenGLExtensionManager_SafeDownCast_12 ( HandleRef  o,
ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal void Kitware.VTK.vtkOpenGLExtensionManager.vtkOpenGLExtensionManager_SetRenderWindow_13 ( HandleRef  pThis,
HandleRef  renwin 
) [private]
static internal void Kitware.VTK.vtkOpenGLExtensionManager.vtkOpenGLExtensionManager_Update_14 ( HandleRef  pThis) [private]

Member Data Documentation

new readonly string Kitware.VTK.vtkOpenGLExtensionManager.MRClassNameKey = "25vtkOpenGLExtensionManager" [static]

Automatically generated type registration mechanics.

Reimplemented from Kitware.VTK.vtkObject.

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

Automatically generated type registration mechanics.

Reimplemented from Kitware.VTK.vtkObject.


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