rotateazimut

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - User interface
Introduced first in SolidGeometry 2.4, Creation date: 2015-08-23, Last change: 2025-09-14

callback func for figure-azimut-rotating by wheel

Description

The function can be called as part of set function:
set (hf,'WindowScrollWheelFcn',@figrotateazimut);

Example Illustration

 missing image of rotateazimut(hf)

Syntax

rotateazimut(hf)

Input Parameter

hf: handle to figure

Examples

set (hf,'WindowScrollWheelFcn',@figrotateazimut);



Copyright 2015-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 designed to rotate the azimuth angle of a 3D plot in a figure window using the mouse scroll wheel. It is part of a user interface library and is intended to be set as a callback function for the 'WindowScrollWheelFcn' property of a figure.

Input Parameters

Algorithm Steps

  1. The function begins by checking the value of 'callbackdata.VerticalScrollCount'.
  2. If 'VerticalScrollCount' is greater than 0, it indicates a scroll up action:
  3. If 'VerticalScrollCount' is less than 0, it indicates a scroll down action:

Example Usage

To use this function, set it as the 'WindowScrollWheelFcn' for a figure handle 'hf':

set(hf, 'WindowScrollWheelFcn', @figrotateazimut);
Algorithm explaination created using ChatGPT on 2025-08-18 22:48. (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