Detailed Description

struct A3DPDFViewData

Structure to define a Camera View.



Public Members

A3DUTF8Char *m_pcInternalName

Internal name of the view.

A3DUTF8Char *m_pcExternalName

External name of the view. This name is used in JavaScript functions.

A3DVector3dData m_sPosition

Camera position.

A3DVector3dData m_sTarget

Target position where the camera is looking at.

A3DVector3dData m_sUpVector

Camera up vector. It should be defined so that it is perpendicular to the vector created between the camera and target position. A non-perpendicular up vector results in a view which is tilting when it is activated in the Adobe PDF Reader.

A3DDouble m_dZoomFactor

This parameter is only applicable for orthographic cameras. It specifies the part of the scene that can be visualized and inversely acts as a zoom factor with the following relationship: [zoomfactor=1/2*view_size], with view_size as the smallest size of the viewable part in the X or Y direction.

A3DBool m_bIsDefault

Specifies that this view should be the default view (the view used when the 3D is activated). Only one view should be defined by default.

A3DPDFRgbColorData m_sViewBackgroundColor

Display setting - background color for the view.

A3DPDFELighting m_eViewLighting

Display setting - lighting for the view.

A3DPDFERenderingStyle m_eViewRenderingStyle

Display setting - rendering style for the view.

A3DPDFEProjectionMode m_eProjectionMode

Camera projection mode: orthographic or perspective.

A3DDouble m_dFieldOfView

This parameter is only applicable for perspective cameras. It specifies the field of view as an angle in degrees.