MedicalHelperDollyZoom Method |
Make the scene appear larger or smaller.
Provided as a convenience to simplify application code.
Values greater than 1 make the scene appear larger. Values less than
1 make the scene appear smaller. For example a of 2 will make the
scene approximately 2 times larger in the rendering window. The
specific effect on the camera is a 'dolly' or a 'zoom' depending on
the type of camera.
This is often useful after calling ViewAll(). That method sets the
camera parameters based on a bounding sphere around the scene which
often leaves the scene not "filling" the viewport.
Details:
- SoPerspectiveCamera: changes the camera 'position' field.
For example, values greater than 1 move the camera closer to the
focal point (divide the camera's distance from the focal point by the
given value), which makes the scene appear larger. This is a 'dolly'.
- SoOrthographicCamera: changes the camera 'height' field.
For example, values greater than 1 decrease the view volume height
(scale the height by the inverse of the given value), which makes the
scene appear larger. This is a 'zoom' operation.
Note that the value expected by SoCameraInteractor.Dolly is the inverse,
which is less intuitive.
Namespace: OIV.Medical.HelpersAssembly: OIV.Medical (in OIV.Medical.dll) Version: 2024.2.2.Release.77a61d1a523234b418592ccd07676e84f6c1d90b
Syntax public static void DollyZoom(
float value,
SoCamera camera
)
Public Shared Sub DollyZoom (
value As Single,
camera As SoCamera
)
public:
static void DollyZoom(
float value,
SoCamera^ camera
)
static member DollyZoom :
value : float32 *
camera : SoCamera -> unit
Parameters
- value
- Type: SystemSingle
The dolly value (ignored if zero). - camera
- Type: OIV.Inventor.NodesSoCamera
The camera node that will be modified (ignored if null).
See Also