VECTORCAMERA

typedef struct tagVECTORCAMERA
{
   L_INT nSize;
   L_DOUBLE Theta;
   L_DOUBLE Phi;
   VECTORPOINT LookAt;
   L_DOUBLE Distance;
   L_BOOL bPerspective;
} VECTORCAMERA, L_FAR * pVECTORCAMERA;

The VECTORCAMERA structure holds information about the camera.

Member

Description

nSize

Size of this structure. Used for versioning.

Theta

Rotation angle around the Z axis.

Phi

Rotation angle off the Z axis.

LookAt

Point on which the camera is focused.

Distance

Distance between the camera and the object.

bPerspective

Flag that indicates the type of projection. Possible values are:

 

Value

Meaning

 

TRUE

Perspective projection is used.

 

FALSE

Parallel projection is used.

Comments

The camera object is used along with the viewport to project the vector image into a 2D plane.

LVectorBase::SetCamera and LVectorBase::GetCamera are the functions used for manipulating the camera object.

The camera can be used with either 2D or 3D vector images.

pVECTORCAMERA is a pointer to a VECTORCAMERA object.