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
| Name | Type | Access | Description |
|---|---|---|---|
name | string | Read/Write | Gets the name. |
parentNodes | any[] | Read | Gets the parent nodes. |
excluded | boolean | Read/Write | Gets the excluded. |
parentNode | any | Read/Write | Gets the parent node. |
rotationMode | any | Read/Write | Gets the rotation mode. |
nearPlane | number | Read/Write | Gets the near plane. |
farPlane | number | Read/Write | Gets the far plane. |
aspect | number | Read/Write | Gets the aspect. |
orthoHeight | number | Read/Write | Gets the ortho height. |
up | any | Read/Write | Gets the up. |
lookAt | any | Read/Write | Gets the look at. |
direction | any | Read/Write | Gets the direction. |
target | any | Read/Write | Gets the target. |
apertureMode | any | Read/Write | Gets the aperture mode. |
fieldOfView | number | Read/Write | Gets the field of view. |
fieldOfViewX | number | Read/Write | Gets the field of view x. |
fieldOfViewY | number | Read/Write | Gets the field of view y. |
width | number | Read/Write | Gets the width. |
height | number | Read/Write | Gets the height. |
aspectRatio | number | Read/Write | Gets the aspect ratio. |
magnification | any | Read/Write | Gets the magnification. |
projectionType | string | Read/Write | Gets the projection type. |
Methods
| Signature | Description |
|---|---|
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() → any | Returns the bounding box. |
getEntityRendererKey() → any | Not implemented in the FOSS edition — throws at runtime. Returns the entity renderer key. |
removeProperty(_prop: Property | string) → boolean | Deletes the given property or property name and returns success |
getProperty(_property: string) → any | Returns the value of the specified property |
setProperty(_property: string, _value: any) | Sets the property value. |
findProperty(_property: string) → Property | null | Searches for a property by name and returns it or null |