Visit Gigasoft's Web Site
 ProEssentials v11 Help

PEP_structVIEWINGFROM

Scope

3D Scientific Graph Objects.

Type

structure

Default

empty

OCX / VCL

NA, see below

 

Purpose

When RenderEngine is Direct3D for the Pe3do control, this property is used to set the camera's look-from location in data units with respect to X Y Z data. The DegreeOfRotation and DxZoom will be ignored if ViewingFrom is non zero.  When using this property, also set ViewingAt

 

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

 

The POINT3D structure is simply 3 float's.

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

 

Comments

.Net Developers Pe3do Set and Get functions.

Pe3do.PeFunction.SetViewingFrom(float X, float Y, float Z)
ProEssentials.Structs.Point3D Pe3do.PeFunction.GetViewingFrom()

 

OCX Pe3do Set and Get functions.

SetViewingFrom(float X, float Y, float Z)
GetViewingAt(float* pX, float* pY, float* pZ)
GetViewingAtEx([out] VARIANT * pfX, [out] VARIANT * pfY, [out] VARIANT * pfZ)