MechanicalCameraWrapper#

class ansys.mechanical.stubs.v242.Ansys.ACT.Common.Graphics.MechanicalCameraWrapper#

Bases: object

Wrapper for Camera in Mechanical.

Overview#

Rotate

Rotates the camera about an axis.

SetSpecificViewOrientation

Sets a specific view orientation.

SetFit

Fits the view to the specified selection. If null is supplied, fits the view to the entire model.

GetAsString

Retrieves the view commands as related to the application type as a string.

Zoom

Zooms in or out on the model.

Pan

Shifts the camera position horizontally or vertically based on x and y quantities.

FocalPoint

The focal point of the camera (coordinates are in the global coordinate system).

UpVector

The vector pointing up from the focal point.

ViewVector

The vector pointing from the focal point to the camera.

SceneHeight

Specifies the scene height (in length units) that will be projected and fit to the viewport.

SceneWidth

Specifies the scene width (in length units) that will be projected and fit to the viewport.

Property detail#

property MechanicalCameraWrapper.FocalPoint: Ansys.Mechanical.Graphics.Point | None

The focal point of the camera (coordinates are in the global coordinate system).

property MechanicalCameraWrapper.UpVector: Ansys.ACT.Math.Vector3D | None

The vector pointing up from the focal point.

property MechanicalCameraWrapper.ViewVector: Ansys.ACT.Math.Vector3D | None

The vector pointing from the focal point to the camera.

property MechanicalCameraWrapper.SceneHeight: Ansys.Core.Units.Quantity | None

Specifies the scene height (in length units) that will be projected and fit to the viewport.

property MechanicalCameraWrapper.SceneWidth: Ansys.Core.Units.Quantity | None

Specifies the scene width (in length units) that will be projected and fit to the viewport.

Method detail#

MechanicalCameraWrapper.Rotate(angle: System.Double, axis: Ansys.Mechanical.DataModel.Enums.CameraAxisType) System.Void

Rotates the camera about an axis.

MechanicalCameraWrapper.SetSpecificViewOrientation(type: Ansys.Mechanical.DataModel.Enums.ViewOrientationType) System.Void

Sets a specific view orientation.

MechanicalCameraWrapper.SetFit(sel: Ansys.ACT.Interfaces.Common.ISelectionInfo) System.Void

Fits the view to the specified selection. If null is supplied, fits the view to the entire model.

MechanicalCameraWrapper.GetAsString(appType: Ansys.Mechanical.DataModel.Enums.ApplicationType) System.String

Retrieves the view commands as related to the application type as a string.

MechanicalCameraWrapper.Zoom(zoomVal: System.Double) System.Void

Zooms in or out on the model.

MechanicalCameraWrapper.Pan(x: Ansys.Core.Units.Quantity, y: Ansys.Core.Units.Quantity) System.Void

Shifts the camera position horizontally or vertically based on x and y quantities.