SoWinViewerGetDepthValue Method |
Namespace: OIV.Inventor.Win.ViewersAssembly: OIV.Inventor (in OIV.Inventor.dll) Version: 9.9.13.0 (9.9.13.0)
Syntaxpublic bool GetDepthValue(
int x,
int y,
out float depth
)
Public Function GetDepthValue (
x As Integer,
y As Integer,
<OutAttribute> ByRef depth As Single
) As Boolean
public:
bool GetDepthValue(
int x,
int y,
[OutAttribute] float% depth
)
member GetDepthValue :
x : int *
y : int *
depth : float32 byref -> bool
Parameters
- x
- Type: SystemInt32
- y
- Type: SystemInt32
- depth
- Type: SystemSingle
Return Value
Type:
Boolean
RemarksReturns the depth value, scaled between 0.0 and 1.0, from the depth buffer at window coordinates x, y. This is only valid after a traversal of the scene graph e.g., in a post render callback (see setPostRenderCallback()).
See Also