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 declares 11 methods for Camera objects in TypeScript programs. Available methods include: constructor, findProperty, getBoundingBox, getEntityRendererKey, getProperty, moveForward, removeProperty, setProperty, toString. 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 18 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.
sceneScene | nullRead/WriteGets the scene.
propertiesPropertyCollectionReadGets the properties.

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
constructor(name: string)Calls constructor(name) on this Camera instance.
removeProperty(property: string | Property)booleanCalls removeProperty(property) on this Camera instance.
toString()stringCalls toString on this Camera instance.

See Also

 English