0.1.8
Loading...
Searching...
No Matches
pyhelios.Visualizer Namespace Reference

Classes

class  Visualizer
 High-level interface for 3D visualization and rendering. More...
 
class  VisualizerError
 Raised when Visualizer operations fail. More...
 

Functions

str _resolve_user_path (str path)
 Resolve a user-provided path to an absolute path before working directory changes.
 
 _visualizer_working_directory ()
 Context manager that temporarily changes working directory for visualizer operations.
 

Variables

 logger = logging.getLogger(__name__)
 

Function Documentation

◆ _resolve_user_path()

str pyhelios.Visualizer._resolve_user_path ( str path)
protected

Resolve a user-provided path to an absolute path before working directory changes.

This ensures that user file paths are interpreted relative to their original working directory, not the temporary working directory used for asset discovery.

Parameters
pathUser-provided file path (absolute or relative)
Returns
Absolute path resolved from the user's original working directory

Definition at line 40 of file Visualizer.py.

◆ _visualizer_working_directory()

pyhelios.Visualizer._visualizer_working_directory ( )
protected

Context manager that temporarily changes working directory for visualizer operations.

The C++ visualizer code expects to find assets at 'plugins/visualizer/' relative to the current working directory. This context manager ensures the working directory is set correctly during visualizer initialization and operations.

Note
This is required because the Helios C++ core prioritizes current working directory for asset resolution over environment variables.

Definition at line 63 of file Visualizer.py.

Variable Documentation

◆ logger

pyhelios.Visualizer.logger = logging.getLogger(__name__)

Definition at line 23 of file Visualizer.py.