Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 205

Previous Page 204   Index   Next Page 206

Function Reference
Page 205 of 750
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: Perspective projection

Next topic: CreateArticleThread