Skip to content
On this page

mxcad API 文档 / MdGeLight

Class: MdGeLight

光照

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new MdGeLight(p)

Parameters

NameType
pobject | MxTypeOfLightSource

Overrides

Mx3dBaseObject.constructor

Properties

imp

Protected imp: any = 0

Inherited from

Mx3dBaseObject.imp

Methods

Angle

Angle(): number

Returns

number


Color

Color(): MdGeColor

Returns

MdGeColor


Concentration

Concentration(): number

Returns

number


ConstAttenuation

ConstAttenuation(): number

Returns

number


CopyFrom

CopyFrom(theLight): void

Parameters

NameType
theLightMdGeLight

Returns

void


Direction

Direction(): MdGeDir

Returns

MdGeDir


DisplayPosition

DisplayPosition(): MdGePoint

Returns

MdGePoint


HasRange

HasRange(): boolean

Returns

boolean


Headlight

Headlight(): boolean

Returns

boolean


Intensity

Intensity(): number

Returns

number


IsEnabled

IsEnabled(): boolean

Returns

boolean


IsHeadlight

IsHeadlight(): boolean

Returns

boolean


LinearAttenuation

LinearAttenuation(): number

Returns

number


Name

Name(): string

Returns

string


Position

Position(): MdGePoint

Returns

MdGePoint


Range

Range(): number

Returns

number


SetAngle

SetAngle(theAngle): void

Parameters

NameType
theAnglenumber

Returns

void


SetAttenuation

SetAttenuation(theConstAttenuation, theLinearAttenuation): void

Parameters

NameType
theConstAttenuationnumber
theLinearAttenuationnumber

Returns

void


SetCastShadows

SetCastShadows(theToCast): void

Parameters

NameType
theToCastboolean

Returns

void


SetColor

SetColor(theColor): void

Parameters

NameType
theColorMdGeColor

Returns

void


SetConcentration

SetConcentration(theConcentration): void

Parameters

NameType
theConcentrationnumber

Returns

void


SetDirection

SetDirection(p1, p2?, p3?): void

Parameters

NameType
p1number | MdGeDir
p2?number
p3?number

Returns

void


SetDisplayPosition

SetDisplayPosition(thePosition): void

Parameters

NameType
thePositionMdGePoint

Returns

void


SetEnabled

SetEnabled(theIsOn): void

Parameters

NameType
theIsOnboolean

Returns

void


SetHeadlight

SetHeadlight(theValue): void

Parameters

NameType
theValueboolean

Returns

void


SetIntensity

SetIntensity(theValue): void

Parameters

NameType
theValuenumber

Returns

void


SetName

SetName(theName): void

Parameters

NameType
theNamestring

Returns

void


SetPosition

SetPosition(p1, p2?, p3?): void

Parameters

NameType
p1number | MdGePoint
p2?number
p3?number

Returns

void


SetRange

SetRange(theValue): void

Parameters

NameType
theValuenumber

Returns

void


SetSmoothAngle

SetSmoothAngle(theValue): void

Parameters

NameType
theValuenumber

Returns

void


SetSmoothRadius

SetSmoothRadius(theValue): void

Parameters

NameType
theValuenumber

Returns

void


Smoothness

Smoothness(): number

Returns

number


ToCastShadows

ToCastShadows(): boolean

Returns

boolean


Type

Type(): MxTypeOfLightSource

Returns

MxTypeOfLightSource


getImp

getImp(): any

Returns

any

Inherited from

Mx3dBaseObject.getImp


initTempObject

Protected initTempObject(imp): void

Parameters

NameType
impany

Returns

void

Inherited from

Mx3dBaseObject.initTempObject