Base |
The BaseTargetPositionCamera type exposes the following members.
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)) |