Share

Camera Class

A collection of camera settings for the current view.

Inheritance Hierarchy

System.Object
  Autodesk.Revit.DB.DirectContext3D.Camera


Namespace: Autodesk.Revit.DB.DirectContext3D
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)

Syntax

C#

public class Camera : IDisposable

The Camera type exposes the following members.

Constructors

 NameDescription
Public methodCamera Camera

Properties

 NameDescription
Public propertyEyePosition Camera's position in the world
Public propertyFarDistance Distance to far clipping plane
Public propertyHorizontalExtent Horizontal extent of the camera's view, measured at target distance.
Public propertyHorizontalOffset Horizontal offset of the camera's view center from target, measured at target distance.
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public propertyNearDistance Distance to near clipping plane
Public propertyProjectionMethod Projection method
Public propertyTargetDistance Distance from camera to its target
Public propertyUpDirection Up direction of the camera
Public propertyVerticalExtent Vertical extent of the camera's view, measured at target distance.
Public propertyVerticalOffset Vertical offset of the camera's view center from target, measured at target distance.
Public propertyViewDirection Direction that the camera is facing

Methods

 NameDescription
Public methodDisposeReleases all resources used by the Camera
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTransform Transforms the camera

Remarks

The current Camera can be obtained from DrawContext

See Also

Reference

Was this information helpful?