Click or drag to resize

Camera Class

Class for managing the state of a camera.
Inheritance Hierarchy
SystemObject
  System.DynamicDynamicObject
    NotifyPropertyChangedBase
      SimpleCustomTypeDescriptor
        GlobalizedProperties
          Demo3D.VisualsCamera

Namespace:  Demo3D.Visuals
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
public class Camera : GlobalizedProperties

The Camera type exposes the following members.

Constructors
  NameDescription
Public methodCamera
Initializes a new instance of the Camera class
Top
Properties
  NameDescription
Public propertyFarClippingDistance
The near clipping distance for the orthographic camera. This defaults to 0, which means no clipping regardless of the distance of the camera from the focal point. Any other value sets the near clipping plane to that value.
Public propertyHeadTarget
Calculate the head target given the HeadYawPitchRoll offset for VR.
Public propertyHeadYawPitchRoll
Camera rotation offset useful for VR headsets (in radians).
Public propertyNearClippingDistance
The near clipping distance for the orthographic camera. This defaults to 0, which means no clipping regardless of the distance of the camera from the focal point. Any other value sets the near clipping plane to that value.
Public propertyPlanView
Public propertyPlanViewRotation
Rotation of Plan View (in radians)
Public propertyPosition
The Camera Position in X,Y,Z coordinates, looking at the origin.
Public propertyRotation
Calculate the current rotation of the camera.
Public propertyTarget
The Camera Translation in X,Y,Z coordinates away from origin.
Top
Methods
  NameDescription
Public methodGetAxes
Get the rotation axes including the HeadYawPitchRoll offset.
Public methodGetBodyAxes
Get the rotation axes excluding the HeadYawPitchRoll offset.
Public methodGetBodyMatrix
Get the orientation of the camera body without the HeadYawPitchRoll offset.
Public methodGetMatrix
Get the matrix to position the camera.
Public methodPan
Move the camera perpendicular to the camera/target vector.
Public methodRotate
Rotate the camera position keeping the target at the center.
Public methodSetFromVisual
Place the camera at the same position and orientation as the visual (looking down its positive Z axis).
Public methodToString
String version of the camera position.
(Overrides SimpleCustomTypeDescriptor.ToString.)
Public methodWalk
Move camera and target/focus around in the X/Z plane as if walking.
Public methodZoom
Get closer or further away from the target.
Public methodZoomAlong
Get closer along an axis towards a world location.
Top
See Also