Light
Overview
Light is a class in Aspose.3D FOSS for TypeScript.
Inherits from: Camera.
Light.constructor creates a new Light with an optional name and a specified light type.
This class declares 11 methods for Light 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 19 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
lightType | string | Read/Write | Gets the light type. |
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. |
scene | Scene | null | Read/Write | Gets the scene. |
properties | PropertyCollection | Read | Gets the properties. |
Methods
| Signature | Description |
|---|---|
constructor(name: string | null, lightType: any) | Creates a new Light with an optional name and a specified light type |
moveForward(_distance: number) | Calls moveForward(_distance) on this Light instance. |
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 | Calls removeProperty(_prop) on this Light instance. |
getProperty(_property: string) → any | Calls getProperty(_property) on this Light instance. |
setProperty(_property: string, _value: any) | Sets the property value. |
findProperty(_property: string) → Property | null | Calls findProperty(_property) on this Light instance. |
constructor(name: string) | Calls constructor(name) on this Light instance. |
removeProperty(property: string | Property) → boolean | Calls removeProperty(property) on this Light instance. |
toString() → string | Calls toString on this Light instance. |