MechanicalCameraWrapper
#
- class ansys.mechanical.stubs.v242.Ansys.ACT.Common.Graphics.MechanicalCameraWrapper#
Bases:
object
Wrapper for Camera in Mechanical.
Overview#
Retrieves the view commands as related to the application type as a string. |
|
Shifts the camera position horizontally or vertically based on x and y quantities. |
|
Rotates the camera about an axis. |
|
Fits the view to the specified selection. If null is supplied, fits the view to the entire model. |
|
Sets a specific view orientation. |
|
Zooms in or out on the model. |
The focal point of the camera (coordinates are in the global coordinate system). |
|
Specifies the scene height (in length units) that will be projected and fit to the viewport. |
|
Specifies the scene width (in length units) that will be projected and fit to the viewport. |
|
The vector pointing up from the focal point. |
|
The vector pointing from the focal point to the camera. |
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.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.GetAsString(appType: Ansys.Mechanical.DataModel.Enums.ApplicationType) str #
Retrieves the view commands as related to the application type as a string.
- MechanicalCameraWrapper.Pan(x: Ansys.Core.Units.Quantity, y: Ansys.Core.Units.Quantity) None #
Shifts the camera position horizontally or vertically based on x and y quantities.
- MechanicalCameraWrapper.Rotate(angle: float, axis: Ansys.Mechanical.DataModel.Enums.CameraAxisType) None #
Rotates the camera about an axis.
- MechanicalCameraWrapper.SetFit(sel: Ansys.ACT.Interfaces.Common.ISelectionInfo) None #
Fits the view to the specified selection. If null is supplied, fits the view to the entire model.
- MechanicalCameraWrapper.SetSpecificViewOrientation(type: Ansys.Mechanical.DataModel.Enums.ViewOrientationType) None #
Sets a specific view orientation.