Visit Gigasoft's Web Site
 ProEssentials v9 Help

PEP_struct3DXLIGHT0

Scope

3D Scientific Graph Objects.

Type

structure

Default

empty

Custom

NA

Ocx|Vcl

NA

 

Purpose

When RenderEngine is Direct3D for the Pe3do control, this property is used to set and get the 3D light location in a DLL and VCL implementation.

 

To set the light location, initialize a POINT3D structure with the light's location and set with PEvset. To get the light location, call PEvget with destination buffer as address to a POINT3D struct.


With DegreePrompting set to True, the chart will display the Light's X, Y, Z location while rendering the image and while using the mouse to re-locate the light. This can help determine a programmatic value for desired scene.

 

The POINT3D structure is simply 3 float's.

typedef struct { float X; float Y; float Z; } POINT3D;

 

Comments

.NET / OCX implementation use these helper functions:

 

.Net Pe3do DirectX Light0 Set and Get functions.

Pe3do.PeFunction.SetLight(int nLight, float X, float Y, float Z)
ProEssentials.Structs.Point3D Pe3do.PeFunction.GetLight(int nLight)

 

OCX Pe3do DirectX Light0 Set and Get functions.

DxSetLight(int nLight, float X, float Y, float Z);
DxGetLight(int nLight, float* X, float* Y, float* Z);
DxGetLightEx(int nLight, [out] VARIANT * pfX, [out] VARIANT * pfY, [out] VARIANT * pfZ );