Click or drag to resize
AB4D logo

BaseTargetPositionCamera Methods

The BaseTargetPositionCamera type exposes the following members.

Methods
 NameDescription
Public methodFitIntoView(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.
Public methodFitIntoView(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.
Public methodFitIntoView(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.
Public methodFitIntoView(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.
Public methodGetFitIntoViewDistanceOrCameraWidth 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.
Protected methodGetTargetPosition Gets the value of TargetPositionProperty
Public methodIsValid 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))
Protected methodOnIsValidChanged OnIsValidChanged is called on IsValidChanged event. The event is subscribed by calling SubscribeToIsValidChanged and unsubscribed by calling UnsubscribeFromIsValidChanged.
(Overrides BaseCameraOnIsValidChanged(Object, EventArgs))
Protected methodSetCameraPosition Sets the camera position on cameraToUpdate based on the TargetPosition
Protected methodSetTargetPosition Sets the value of TargetPositionProperty
Protected methodUpdateCamera Updates the PerspectiveCamera
(Overrides SphericalCameraUpdateCamera(ProjectionCamera))
Top
See Also