The following method code demonstrates how to programmatically retrieve and log the complete set of camera settings for the View with tag
view1 in the
Component with tag
comp1. It captures parameters for: zoom angle, position, target, up vector, rotation point, view offset, manual grid flag, and axis spacings. This information can be used in order to at a later point restore the exact camera state in your application.
In the last line of code, the call to selectNode ensures that the view is updated automatically.
The figure below shows these two methods, named StoreCamera and
RestoreCamera respectively, as
Method Call nodes in the Model Builder.
