sview

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Visualization
Introduced first in SolidGeometry 1.0, Creation date: 2012-10-31, Last change: 2025-08-18

Stores parameters of the current figure/View

Description

After adujsting a figure and a view direction call sview.
To restore the same parameters for a new figure just call rview.

See Also: rview , Tofcam , Tofview

Example Illustration

 missing image of sview

Syntax

sview

Examples

sview and rview can replace show



Copyright 2012-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Algorithm (Workflow)

This algorithm is a MATLAB function named sview that stores the parameters of the current figure and view in a global variable sview_V. It is part of the SolidGeometry library and is used to save the current view settings of a figure for later restoration using another function called rview.

Input Parameters

Global Variables

Algorithm Steps

  1. Check if there is at least one input argument and if it is not empty. If true, clear sview_V, close all figures, and return.
  2. Retrieve the current azimuth and elevation angles of the view using the view function and store them in sview_V.a and sview_V.e.
  3. Get the current figure's properties using get(gcf) and store them in sview_V.get.
  4. Retrieve the camera target, position, and view angle from the current axes using get(gca, ...) and store them in sview_V.ct, sview_V.cp, and sview_V.va respectively.
  5. Get the current figure's position using get(gcf, 'Position').
  6. Format the azimuth, elevation, and position into a string res.
  7. Call the function VLFLshow (assumed to be a custom function related to the library).
  8. If there is one output argument requested, return res as the output.
Algorithm explaination created using ChatGPT on 2025-08-18 23:36. (Please note: No guarantee for the correctness of this explanation)

Last html export of this page out of FM database by TL: 2025-09-21