cls_ThreeDCamera - almarklein/visvis GitHub Wiki

Inherits from BaseCamera.

The ThreeDCamera camera is a camera to visualise 3D data.

In contrast to the 2D camera, this camera can be rotated around the data to look at it from different angles. By default the field of view of this camera is set to 0, corresponding to an orthografic projection. If the field of view is larger than 0, projective projection is applied.

Interaction

  • Hold down the LMB and then move the mouse to change the azimuth and elivation (i.e. rotate around the scene).
  • Hold down the RMB and then move the mouse to zoom.
  • Hold down SHIFT + LMB and then move to pan.
  • Hold down SHIFT + RMB and then move to change the vield of view.
  • Hold down CONTROL + LMB and then move to rotate the whole scene around the axis of the camera.

The ThreeDCamera class implements the following properties:
azimuth, elevation, fov, roll

The ThreeDCamera class implements the following methods:
OnResize, Reset, SetView

Properties

Get/set the current azimuth angle (rotation around z-axis). This angle is between -180 and 180 degrees.

Get/set the current elevation angle (rotation with respect to the x-y plane). This angle is between -90 and 90 degrees.

Get/set the current field of view (i.e. camera aperture). This value is between 0 (orthographic projection) and 180.

Get/set the current roll angle (rotation around the camera's viewing axis). This angle is between -90 and 90 degrees.

Methods

Callback that adjusts the daspect (if axes.daspectAuto is True) when the window dimensions change.

Reset the view.

Prepare the view for drawing This applies the camera model.

⚠️ **GitHub.com Fallback** ⚠️