mxcad API 文档 / MdGeLight
Class: MdGeLight
光照
Hierarchy
↳
MdGeLight
Table of contents
Constructors
Properties
Methods
- Angle
- Color
- Concentration
- ConstAttenuation
- CopyFrom
- Direction
- DisplayPosition
- HasRange
- Headlight
- Intensity
- IsEnabled
- IsHeadlight
- LinearAttenuation
- Name
- Position
- Range
- SetAngle
- SetAttenuation
- SetCastShadows
- SetColor
- SetConcentration
- SetDirection
- SetDisplayPosition
- SetEnabled
- SetHeadlight
- SetIntensity
- SetName
- SetPosition
- SetRange
- SetSmoothAngle
- SetSmoothRadius
- Smoothness
- ToCastShadows
- Type
- getImp
- initTempObject
Constructors
constructor
• new MdGeLight(p
)
Parameters
Name | Type |
---|---|
p | object | MxTypeOfLightSource |
Overrides
Properties
imp
• Protected
imp: any
= 0
Inherited from
Methods
Angle
▸ Angle(): number
Returns
number
Color
▸ Color(): MdGeColor
Returns
Concentration
▸ Concentration(): number
Returns
number
ConstAttenuation
▸ ConstAttenuation(): number
Returns
number
CopyFrom
▸ CopyFrom(theLight
): void
Parameters
Name | Type |
---|---|
theLight | MdGeLight |
Returns
void
Direction
▸ Direction(): MdGeDir
Returns
DisplayPosition
▸ DisplayPosition(): MdGePoint
Returns
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
Range
▸ Range(): number
Returns
number
SetAngle
▸ SetAngle(theAngle
): void
Parameters
Name | Type |
---|---|
theAngle | number |
Returns
void
SetAttenuation
▸ SetAttenuation(theConstAttenuation
, theLinearAttenuation
): void
Parameters
Name | Type |
---|---|
theConstAttenuation | number |
theLinearAttenuation | number |
Returns
void
SetCastShadows
▸ SetCastShadows(theToCast
): void
Parameters
Name | Type |
---|---|
theToCast | boolean |
Returns
void
SetColor
▸ SetColor(theColor
): void
Parameters
Name | Type |
---|---|
theColor | MdGeColor |
Returns
void
SetConcentration
▸ SetConcentration(theConcentration
): void
Parameters
Name | Type |
---|---|
theConcentration | number |
Returns
void
SetDirection
▸ SetDirection(p1
, p2?
, p3?
): void
Parameters
Name | Type |
---|---|
p1 | number | MdGeDir |
p2? | number |
p3? | number |
Returns
void
SetDisplayPosition
▸ SetDisplayPosition(thePosition
): void
Parameters
Name | Type |
---|---|
thePosition | MdGePoint |
Returns
void
SetEnabled
▸ SetEnabled(theIsOn
): void
Parameters
Name | Type |
---|---|
theIsOn | boolean |
Returns
void
SetHeadlight
▸ SetHeadlight(theValue
): void
Parameters
Name | Type |
---|---|
theValue | boolean |
Returns
void
SetIntensity
▸ SetIntensity(theValue
): void
Parameters
Name | Type |
---|---|
theValue | number |
Returns
void
SetName
▸ SetName(theName
): void
Parameters
Name | Type |
---|---|
theName | string |
Returns
void
SetPosition
▸ SetPosition(p1
, p2?
, p3?
): void
Parameters
Name | Type |
---|---|
p1 | number | MdGePoint |
p2? | number |
p3? | number |
Returns
void
SetRange
▸ SetRange(theValue
): void
Parameters
Name | Type |
---|---|
theValue | number |
Returns
void
SetSmoothAngle
▸ SetSmoothAngle(theValue
): void
Parameters
Name | Type |
---|---|
theValue | number |
Returns
void
SetSmoothRadius
▸ SetSmoothRadius(theValue
): void
Parameters
Name | Type |
---|---|
theValue | number |
Returns
void
Smoothness
▸ Smoothness(): number
Returns
number
ToCastShadows
▸ ToCastShadows(): boolean
Returns
boolean
Type
▸ Type(): MxTypeOfLightSource
Returns
getImp
▸ getImp(): any
Returns
any
Inherited from
initTempObject
▸ Protected
initTempObject(imp
): void
Parameters
Name | Type |
---|---|
imp | any |
Returns
void