Camera

Overview

Camera is a class in Aspose.3D FOSS for Typescript. Inherits from: Entity.

Camera.constructor creates a new Camera with optional name and projection type.

This class provides 8 methods for working with Camera objects in Typescript programs. Available methods include: constructor, findProperty, getBoundingBox, getEntityRendererKey, getProperty, moveForward, removeProperty, setProperty. All public members are accessible to any Typescript application after installing the Aspose.3D FOSS for Typescript package. Properties: apertureMode, aspect, aspectRatio, direction, excluded, farPlane, and 16 more.

Properties

NameTypeAccessDescription
namestringRead/WriteGets the name.
parentNodesany[]ReadGets the parent nodes.
excludedbooleanRead/WriteGets the excluded.
parentNodeanyRead/WriteGets the parent node.
rotationModeanyRead/WriteGets the rotation mode.
nearPlanenumberRead/WriteGets the near plane.
farPlanenumberRead/WriteGets the far plane.
aspectnumberRead/WriteGets the aspect.
orthoHeightnumberRead/WriteGets the ortho height.
upanyRead/WriteGets the up.
lookAtanyRead/WriteGets the look at.
directionanyRead/WriteGets the direction.
targetanyRead/WriteGets the target.
apertureModeanyRead/WriteGets the aperture mode.
fieldOfViewnumberRead/WriteGets the field of view.
fieldOfViewXnumberRead/WriteGets the field of view x.
fieldOfViewYnumberRead/WriteGets the field of view y.
widthnumberRead/WriteGets the width.
heightnumberRead/WriteGets the height.
aspectRationumberRead/WriteGets the aspect ratio.
magnificationanyRead/WriteGets the magnification.
projectionTypestringRead/WriteGets the projection type.

Methods

SignatureDescription
constructor(name: string | null, projectionType: any)Creates a new Camera with optional name and projection type
moveForward(_distance: number)Moves the camera forward by the specified distance
getBoundingBox()anyReturns the bounding box.
getEntityRendererKey()anyNot implemented in the FOSS edition — throws at runtime. Returns the entity renderer key.
removeProperty(_prop: Property | string)booleanDeletes the given property or property name and returns success
getProperty(_property: string)anyReturns the value of the specified property
setProperty(_property: string, _value: any)Sets the property value.
findProperty(_property: string)Property | nullSearches for a property by name and returns it or null

See Also