PyVista3DViewerTheme

Aliases:

  • petres.viewers.Viewer3DTheme


class petres.viewers.PyVista3DViewerTheme[source]

Bases: Base3DViewerTheme

Configure visual theme and camera settings for a 3D scene.

Parameters:
  • background (str | tuple[float, float, float], default="white") – Scene background color.

  • show_orientation_widget (bool, default=True) – Display the orientation widget in the viewer.

  • show_coordinate_axes (bool, default=True) – Display coordinate axes in the scene.

  • scale (tuple[float, float, float], default=(1.0, 1.0, 1.0)) – Per-axis scale multipliers for rendering.

  • title_fontsize (int, default=12) – Font size for the scene title.

  • title_color (str | tuple[float, float, float], default="black") – Title text color.

  • title_position (str, default="upper_edge") – Viewer-specific anchor position for title placement.

  • camera (Camera3D, default=Camera3D()) – Camera configuration applied to the scene.

background: str | tuple[float, float, float] = 'white'
show_orientation_widget: bool = True
show_coordinate_axes: bool = True
scale: tuple[float, float, float] = (1.0, 1.0, 1.0)
title_fontsize: int = 12
title_color: str | tuple[float, float, float] = 'black'
title_position: str = 'upper_edge'
camera: Camera3D = Camera3D(view='iso', tilt=0.0, turn=0.0, roll=0.0, zoom=1.0, depth_down=True)
__init__(background='white', show_orientation_widget=True, show_coordinate_axes=True, scale=(1.0, 1.0, 1.0), title_fontsize=12, title_color='black', title_position='upper_edge', camera=Camera3D(view='iso', tilt=0.0, turn=0.0, roll=0.0, zoom=1.0, depth_down=True))