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.vtkSobelGradientMagnitudePass Class Reference

vtkSobelGradientMagnitudePass - Implement a post-processing edge detection with a Sobel gradient magnitude render pass. More...

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

List of all members.

Public Member Functions

 vtkSobelGradientMagnitudePass (IntPtr rawCppThis, bool callDisposalMethod, bool strong)
 Automatically generated constructor - called from generated code. DO NOT call directly.
 vtkSobelGradientMagnitudePass ()
 Undocumented Block.
override int IsA (string type)
 Undocumented Block.
new vtkSobelGradientMagnitudePass NewInstance ()
 Undocumented Block.
override void ReleaseGraphicsResources (vtkWindow w)
 Release graphics resources and ask components to release their own resources.

Static Public Member Functions

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

Public Attributes

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

Static Public Attributes

static new readonly string MRClassNameKey = "29vtkSobelGradientMagnitudePass"
 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 vtkSobelGradientMagnitudePass_New (ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal int vtkSobelGradientMagnitudePass_IsA_01 (HandleRef pThis, string type)
static internal int vtkSobelGradientMagnitudePass_IsTypeOf_02 (string type)
static internal IntPtr vtkSobelGradientMagnitudePass_NewInstance_04 (HandleRef pThis, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal void vtkSobelGradientMagnitudePass_ReleaseGraphicsResources_05 (HandleRef pThis, HandleRef w)
static internal IntPtr vtkSobelGradientMagnitudePass_SafeDownCast_06 (HandleRef o, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)

Static Private Member Functions

static vtkSobelGradientMagnitudePass ()
 Automatically generated type registration mechanics.

Detailed Description

vtkSobelGradientMagnitudePass - Implement a post-processing edge detection with a Sobel gradient magnitude render pass.

Description Detect the edges of the image renderered by its delegate. Edge-detection uses a Sobel high-pass filter (3x3 kernel).

This pass expects an initialized depth buffer and color buffer. Initialized buffers means they have been cleared with farest z-value and background color/gradient/transparent color. An opaque pass may have been performed right after the initialization.

The delegate is used once.

Its delegate is usually set to a vtkCameraPass or to a post-processing pass.

This pass requires a OpenGL context that supports texture objects (TO), framebuffer objects (FBO) and GLSL. If not, it will emit an error message and will render its delegate and return.

Implementation To compute the gradient magnitude, the x and y components of the gradient (Gx and Gy) have to be computed first. Each computation of Gx and Gy uses a separable filter. The first pass takes the image from the delegate as the single input texture. The first pass has two outputs, one for the first part of Gx, Gx1, result of a convolution with (-1 0 1), one for the first part of Gy, Gy1, result of a convolution with (1 2 1). The second pass has two inputs, Gx1 and Gy1. Kernel (1 2 1)^T is applied to Gx1 and kernel (-1 0 1)^T is applied to Gx2. It gives the values for Gx and Gy. Thoses values are then used to compute the magnitude of the gradient which is stored in the render target. The gradient computation happens per component (R,G,B). A is arbitrarly set to 1 (full opacity).

vtkSobelGradientMagnitudePassFigure.png

Constructor & Destructor Documentation

Automatically generated type registration mechanics.

Kitware.VTK.vtkSobelGradientMagnitudePass.vtkSobelGradientMagnitudePass ( 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.vtkSobelGradientMagnitudePass.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.vtkImageProcessingPass.

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

Undocumented Block.

Reimplemented from Kitware.VTK.vtkImageProcessingPass.

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

Undocumented Block.

Reimplemented from Kitware.VTK.vtkImageProcessingPass.

Undocumented Block.

Reimplemented from Kitware.VTK.vtkObject.

Undocumented Block.

Reimplemented from Kitware.VTK.vtkImageProcessingPass.

Release graphics resources and ask components to release their own resources.

Precondition:
w_exists: w!=0

Reimplemented from Kitware.VTK.vtkImageProcessingPass.

Undocumented Block.

Reimplemented from Kitware.VTK.vtkImageProcessingPass.

Here is the call graph for this function:

static internal int Kitware.VTK.vtkSobelGradientMagnitudePass.vtkSobelGradientMagnitudePass_IsA_01 ( HandleRef  pThis,
string  type 
) [private]
static internal IntPtr Kitware.VTK.vtkSobelGradientMagnitudePass.vtkSobelGradientMagnitudePass_New ( ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal IntPtr Kitware.VTK.vtkSobelGradientMagnitudePass.vtkSobelGradientMagnitudePass_NewInstance_04 ( HandleRef  pThis,
ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal void Kitware.VTK.vtkSobelGradientMagnitudePass.vtkSobelGradientMagnitudePass_ReleaseGraphicsResources_05 ( HandleRef  pThis,
HandleRef  w 
) [private]
static internal IntPtr Kitware.VTK.vtkSobelGradientMagnitudePass.vtkSobelGradientMagnitudePass_SafeDownCast_06 ( HandleRef  o,
ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]

Member Data Documentation

new readonly string Kitware.VTK.vtkSobelGradientMagnitudePass.MRClassNameKey = "29vtkSobelGradientMagnitudePass" [static]

Automatically generated type registration mechanics.

Reimplemented from Kitware.VTK.vtkImageProcessingPass.

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

Automatically generated type registration mechanics.

Reimplemented from Kitware.VTK.vtkImageProcessingPass.


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