|
BaseTargetPositionCamera Class |
BaseTargetPositionCamera is a base class for cameras that define the target position (TargetPositionCamera) or target object (TargetRect3DCamera, SceneCamera and ThirdPersonCamera).
Inheritance Hierarchy Namespace: Ab3d.CamerasAssembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax public class BaseTargetPositionCamera : SphericalCamera,
IFitIntoViewCamera
The BaseTargetPositionCamera type exposes the following members.
Constructors Properties | Name | Description |
---|
| Distance |
Gets or sets a double that defines the distance from the camera to the Camera's target position.
|
TopMethods | Name | Description |
---|
| FitIntoView(FitIntoViewType, Boolean, Double, Boolean) |
FitIntoView adjusts the camera's Distance (for PerspectiveCamera) or CameraWidth (for OrthographicCamera) and TargetPosition (if adjustTargetPosition is true)
so that all the objects on the scene will be visible from one edge of the viewport to another edge.
|
| FitIntoView(IListPoint3D, Boolean, Double, Boolean) |
FitIntoView adjusts the camera's Distance (for PerspectiveCamera) or CameraWidth (for OrthographicCamera) and TargetPosition (if adjustTargetPosition is true)
so that all the specified positions will be visible from one edge of the viewport to another edge.
|
| FitIntoView(Rect3D, Boolean, Double, Boolean) |
FitIntoView adjusts the camera's Distance (for PerspectiveCamera) or CameraWidth (for OrthographicCamera) and TargetPosition (if adjustTargetPosition is true)
so that all the specified Rect3D will be visible from one edge of the viewport to another edge.
|
| FitIntoView(IListVisual3D, FitIntoViewType, Boolean, Double, Boolean) |
FitIntoView adjusts the camera's Distance (for PerspectiveCamera) or CameraWidth (for OrthographicCamera) and TargetPosition (if adjustTargetPosition is true)
so that all the objects on defined in list of Visual3D objects will be visible from one edge of the viewport to another edge.
|
| GetFitIntoViewDistanceOrCameraWidth |
GetFitIntoViewDistanceOrCameraWidth returns Distance (for PerspectiveCamera) or CameraWidth (for OrthographicCamera) and sets the newTargetPosition
that will adjust the camera so that all the objects on the scene will be visible from one edge of the viewport to another edge.
|
| GetTargetPosition |
Gets the value of TargetPositionProperty
|
| IsValid |
Gets a Boolean that specifies if the camera is valid (has TargetViewport3D that has a valid size; has valid values for all properties).
When camera is valid the Point3DTo2D(Point3D) returns correct value; when the camera is not valid, the Point3DTo2D method cannot calculate the 2D screen position.
(Overrides SphericalCameraIsValid(Boolean)) |
| OnIsValidChanged |
OnIsValidChanged is called on IsValidChanged event. The event is subscribed by calling SubscribeToIsValidChanged and unsubscribed by calling UnsubscribeFromIsValidChanged.
(Overrides BaseCameraOnIsValidChanged(Object, EventArgs)) |
| SetCameraPosition |
Sets the camera position on cameraToUpdate based on the TargetPosition
|
| SetTargetPosition |
Sets the value of TargetPositionProperty
|
| UpdateCamera |
Updates the PerspectiveCamera
(Overrides SphericalCameraUpdateCamera(ProjectionCamera)) |
TopFields See Also