Click or drag to resize
AB4D logo

BaseTargetRect3DCamera Class

BaseTargetRect3DCamera is a base class for cameras that look at the target Rect3D (SceneCamera and ThirdPersonCamera).
Inheritance Hierarchy
SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.MediaVisual
        System.WindowsUIElement
          System.WindowsFrameworkElement
            Ab3d.CamerasBaseCamera
              Ab3d.CamerasSphericalCamera
                Ab3d.CamerasBaseTargetPositionCamera
                  Ab3d.CamerasBaseTargetRect3DCamera
                    Ab3d.CamerasSceneCamera
                    Ab3d.CamerasTargetRect3DCamera
                    Ab3d.CamerasThirdPersonCamera

Namespace: Ab3d.Cameras
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.2.9104.2045
Syntax
C#
public class BaseTargetRect3DCamera : BaseTargetPositionCamera

The BaseTargetRect3DCamera type exposes the following members.

Properties
 NameDescription
Public propertyAbsoluteDistance Gets a distance from the camera to the Camera's target position - the value is an absolute value regardless of IsDistancePercent property.
Public propertyIsDistancePercent Gets or sets a Boolean that specifies if the Distance property is specified in percentage or absolute value.
Public propertyIsDynamicTarget Gets or sets a Boolean value that specifies if the Camera is constantly (CompositionTarget.Rendering event) monitoring the position and size of the TargetRect3D and move the camera according to the change.
Top
Methods
 NameDescription
Protected methodBaseCreateFrom This method is called from CreateFrom method and actually sets the properties on this camera.
(Overrides SphericalCameraBaseCreateFrom(Camera))
Protected methodCheckTargetRect3D Checks if TargetRect was changed - in this case update the camera
Protected methodForceRefresh Forces a refresh of the camera.
(Overrides SphericalCameraForceRefresh)
Protected methodGetTargetRect3D Gets the value of TargetRect3DProperty
Protected methodStatic memberIsDynamicTargetPropertyChanged IsDynamicTargetPropertyChanged
Protected methodSetCameraForTargetRect Updates the TargetPosition based on the targetRect3D
Protected methodSetCameraPosition(ProjectionCamera) Sets the camera position on cameraToUpdate based on the TargetPosition - overridden to use the IsDistancePercent property
(Overrides BaseTargetPositionCameraSetCameraPosition(ProjectionCamera))
Protected methodSetCameraPosition(ProjectionCamera, Rect3D) Sets the camera position on cameraToUpdate based on the targetRect as Rect3D
Protected methodSetTargetRect3D Sets the value of TargetRect3DProperty
Protected methodStatic memberTargetRect3DPropertyChanged TargetRect3DPropertyChanged
Protected methodUnsubscribeRenderingEvent Unsubscribe to Rendering event
(Overrides BaseCameraUnsubscribeRenderingEvent)
Protected methodUpdateCamera Updates the PerspectiveCamera
(Overrides BaseTargetPositionCameraUpdateCamera(ProjectionCamera))
Top
Fields
 NameDescription
Public fieldStatic memberIsDistancePercentProperty IsDistancePercentProperty
Public fieldStatic memberIsDynamicTargetProperty IsDynamicTargetProperty
Protected fieldisTargetRectDirty If true the targetRect3D was changed - the camera need to be updated
Public fieldStatic memberTargetRect3DProperty TargetRect3DProperty
Top
See Also