Camera

Overview

Camera is a class in Aspose.3D FOSS for .NET. Inherits from: Frustum, INamedObject, IOrientable.

The camera describes the eye point of the viewer looking at the scene.

This class provides 11 methods for working with Camera objects in .NET programs. Available methods include: A3DObject, Camera, Entity, FindProperty, GetBoundingBox, GetEntityRendererKey, GetProperty, MoveForward, RemoveProperty, SceneObject, SetProperty. All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package. Properties: ApertureMode, Aspect, AspectRatio, Direction, Excluded, FarPlane, and 18 more.

Properties

NameTypeAccessDescription
ApertureModeApertureModeRead/WriteGets or sets the aperture mode.
FieldOfViewdoubleRead/WriteGets or sets the field of view.
FieldOfViewXdoubleRead/WriteGets or sets the field of view x.
FieldOfViewYdoubleRead/WriteGets or sets the field of view y.
WidthdoubleRead/WriteGets or sets the width.
HeightdoubleRead/WriteGets or sets the height.
AspectRatiodoubleRead/WriteGets or sets the aspect ratio.
MagnificationVector2Read/WriteGets or sets the magnification.
ProjectionTypeProjectionTypeRead/WriteGets or sets the projection type.
RotationModeRotationModeRead/WriteGets or sets the rotation mode.
NearPlanedoubleRead/WriteGets or sets the near plane.
FarPlanedoubleRead/WriteGets or sets the far plane.
AspectdoubleRead/WriteGets or sets the aspect.
OrthoHeightdoubleRead/WriteGets or sets the ortho height.
UpVector3Read/WriteGets or sets the up.
LookAtVector3Read/WriteGets or sets the look at.
DirectionVector3Read/WriteGets or sets the direction.
TargetNodeRead/WriteGets or sets the target.
ExcludedboolRead/WriteGets or sets the excluded.
ParentNodesList<Node>ReadGets the parent nodes.
ParentNodeNodeRead/WriteGets or sets the parent node.
SceneSceneReadGets the scene.
NamestringRead/WriteGets or sets the name.
PropertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
Camera()Creates a new Camera instance with the specified name
Camera(projectionType: ProjectionType)
Camera(name: string)
Camera(name: string, projectionType: ProjectionType)
MoveForward(distance: double)Not implemented in the FOSS edition — throws at runtime. Move camera forward towards its direction or target.
Entity(name: string)
GetBoundingBox()Gets the bounding box of current entity in its object space coordinate system.
GetEntityRendererKey()Gets the key of the entity renderer registered in the renderer
SceneObject(name: string)
A3DObject()
RemoveProperty(property: Property)Removes a dynamic property.
GetProperty(property: string)Get the value of specified property
SetProperty(property: string, value: object?)Sets the value of specified property
FindProperty(propertyName: string)Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name)

See Also