uitogglefigstyle

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

Application callback procedure for toggeling grid an colors



See Also: appsavegcaSTL , appuireadSTL , apptogglelighttrans , VLFLplotlight , rotate3dlight

Example Illustration

 missing image of uitogglefigstyle

Syntax

uitogglefigstyle

Examples


uitogglefigstyle % Switches between transparent with face edges and shaded surfaces.




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)

The function uitogglefigstyle is designed to toggle the visual style of a MATLAB figure between two predefined styles: a "Matlab Style" and an "Ergosurg Style". This function is part of the SolidGeometry library and is used to switch between different visualization modes.

Input Parameters

The function uitogglefigstyle does not take any input parameters. It operates on the current figure (gcf) in MATLAB.

Persistent Variable

The function uses a persistent variable mlstyle to keep track of the current style state. This variable is initialized to 0 or 1 to toggle between the two styles.

Algorithm Steps

  1. Check the value of the persistent variable mlstyle.
  2. If mlstyle is 0, set it to 1; otherwise, set it to 0. This toggles the state.
  3. Based on the value of mlstyle, execute one of the two styles:

Function Calls

The function makes use of the following custom functions:

Output

The function does not return any output. It modifies the current figure's visual style directly.

Algorithm explaination created using ChatGPT on 2025-08-18 22:59. (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