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

NameTypeAccessDescription
lightTypestringRead/WriteGets the light type.
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, 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()anyReturns the bounding box.
getEntityRendererKey()anyNot implemented in the FOSS edition — throws at runtime. Returns the entity renderer key.
removeProperty(_prop: Property | string)booleanCalls removeProperty(_prop) on this Light instance.
getProperty(_property: string)anyCalls getProperty(_property) on this Light instance.
setProperty(_property: string, _value: any)Sets the property value.
findProperty(_property: string)Property | nullCalls findProperty(_property) on this Light instance.
constructor(name: string)Calls constructor(name) on this Light instance.
removeProperty(property: string | Property)booleanCalls removeProperty(property) on this Light instance.
toString()stringCalls toString on this Light instance.

See Also

 English