All Frameworks  Object Hierarchy  This Framework  Previous  Next  Indexes  

LightSource (Object)

IUnknown
  |
  +---IDispatch
    |
    +---CATBaseUnknown
      |
      +---CATBaseDispatch
        |
        +---AnyObject
          |
          +---LightSource
 


Represents the light source.
The light source is the object that stores lighting data used by a viewer to display a scene where a document is presented. Two kinds of light sources are available: an infinite light source and a neon lighting system simulating a set of parallel neon tubes.

Method Index

GetDirection
Returns the lighting direction as an array of 3 variants.
PutDirection
Defines the lighting direction as an array of 3 variants.

Methods


o Sub GetDirection(CATSafeArrayVariant oDirection)
Returns the lighting direction as an array of 3 variants. This value is available with an infinite light source only.
Example:
This example gets the lighting direction of the LightSource light source to the direction with components (5,8,-2).
 Dim direction(2)
 LightSource.GetDirection direction
 
o Sub PutDirection(CATSafeArrayVariant oDirection)
Defines the lighting direction as an array of 3 variants. This value can be set with an infinite light source only.
Example:
This example defines the lighting direction of the LightSource light source to the direction with components (5,8,-2).
 LightSource.PutDirection Array(5,8,-2)
 

Copyright © 2003, Dassault Systèmes. All rights reserved.