DynaPDF Manual - Page 235

Previous Page 234   Index   Next Page 236

Function Reference
Page 235 of 839
Orthographic projection
The parameter ScaleType specifies the strategy for scaling to fit the near plane’s x and y coordinates
onto the annotation’s target coordinate system. The value st3DValue refers to absolute scaling, that
means no scaling should occur due to binding. The parameter Diameter is ignored if orthographic
projection is used.
The parameter FOV specifies the scale factor to be applied to both the x and y coordinates when
projecting onto the annotation’s target coordinate system (the z coordinate is discarded). The default
value is 1.0.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
Create3DView
Syntax:
void* pdfCreate3DView(
const PPDF* IPDF,
// Instance pointer
UI32 Base3DAnnot,
// 3D Annotation handle
const char* Name,
// Unique name that describes the view (required)
LBOOL SetAsDefault,
// If true, the view is used as default view
double* Matrix,
// Optional 3D transformation matrix
double CamDistance,
// Camera distance or 0.0 if not known
T3DRenderingMode RM, // 3D Rendering mode
T3DLightingSheme LS) // 3D Lighting scheme
typedef enum
{
rmBoundingBox,
rmHiddenWireframe,
rmIllustration,
rmShadedIllustration,
rmShadedVertices,
rmShadedWireframe,
rmSolid,
rmSolidOutline,
rmSolidWireframe,
rmTransparent,
rmTranspBBox,
rmTranspBBoxOutline,
rmTranspWireframe,
rmVertices,
rmWireframe,
rmNotSet
}T3DRenderingMode;
 

Previous topic: Create3DProjection, Perspective projection

Next topic: CreateAltFontList, CreateAnnotAP