hwI3DViewCtrl Zoom
Zooms in or out of the plot based on the factor given.
Syntax
hwI3DViewControl_handle Zoomfactor
Application
HyperGraph 3D Tcl Modify
Description
This command zooms in or out of the graph based on the factor that you input.
Inputs
- factor
- A user-input number that results in a zoom in or out of the plot. If the factor is a positive number greater than 1, the plot zooms in the amount of times indicated by the factor. If the factor is a positive number less than 1, the plot zooms out to the factor times the original view. A factor of a negative number or a factor of 1 does not result in a zoom change.
Example
hwi OpenStack;
hwi GetSessionHandle sess;
sess GetProjectHandle proj;
proj GetPageHandle p1 1;
p1 GetWindowHandle w1 1;
w1 GetClientHandle plot;
w1 GetViewControlHandle vc
vc Zoom 2
plot Draw
Error
A success (0) or an error code is returned. The plot will not zoom if a factor of a negative number or a factor of 1 is used.
Keywords
HyperWorks
3D plot
Tcl
Modify