Click or drag to resize

IMcViewNDTranslation Property

Sets/gets translation of the center of view.

Namespace:  MediaCy.IQL.Display.ViewerND
Assembly:  MediaCy.IQL.Display.ViewerND (in MediaCy.IQL.Display.ViewerND.dll) Version: 10.0.6912.0
Syntax
VB
Property Translation As Object
	Get
	Set

Return Value

Type: Object
Translation vector (x,y,z) as DOUBLEPOINT3D.
Remarks
The default center of view is set to 0,0,0. The translation is in world coordinates, the range is visible zone is from -1 to 1. Translation can also be changed interactively by <Shift>-<Left Mouse Click>-<drag>.
Examples
VB
'translation example
With McViewND1
Dim i As Long, d As Double
'move object along the diagonal
For i = -100 To 100
d = i / 100#
.Translation = Array(d, d, d)
DoEvents
Next i
End With
See Also