Skip to content

# PDF3DProjection

Namespace: O2S.Components.PDF4NET.Annotations

Defines the mapping of 3D camera coordinates onto the target coordinate system of the annotation.

    public class PDF3DProjection

Inheritance Object → PDF3DProjection

## Constructors

### PDF3DProjection()

Initializes a new PDF3DProjection object.

    public PDF3DProjection()

## Properties

### ClippingStyle

Gets or sets the clipping style.

    public PDF3DProjectionClippingStyle ClippingStyle { get; set; }

Property Value

PDF3DProjectionClippingStyle
A PDF3DProjectionClippingStyle that represents the clipping style.

### FarClippingDistance

Gets or sets the far clipping distance.

    public double FarClippingDistance { get; set; }

Property Value

Double
The far clipping distance, expressed in the camera coordinate system.

Remarks

The value is meaningful only if PDF3DProjection.ClippingStyle property is PDF3DProjectionClippingStyle.ExplicitNearFar.

### FieldOfView

Gets or sets the field of view.

    public double FieldOfView { get; set; }

Property Value

Double
A number between 0 and 180, inclusive, specifying the field of view of the virtual camera, in degrees.

Remarks

This value is meaningful only if PDF3DProjection.Type property is PDF3DProjectionType.Perspective.

### NearClippingDistance

Gets or sets the near clipping distance.

    public double NearClippingDistance { get; set; }

Property Value

Double
The near clipping distance, expressed in the camera coordinate system.

Remarks

This value is meaningful only if PDF3DProjection.ClippingStyle property is PDF3DProjectionClippingStyle.ExplicitNearFar or if PDF3DProjection.Type is PDF3DProjectionType.Perspective.
The value must be non-negative for orthographic projections and positive for perspective projections.

### OrthoScaleStrategy

Gets or sets the ortographic scale strategy.

    public PDF3DProjectionOrthoScaleStrategy OrthoScaleStrategy { get; set; }

Property Value

PDF3DProjectionOrthoScaleStrategy
A PDF3DProjectionOrthoScaleStrategy that represents strategy for binding (scaling to fit) the near plane's x and y coordinates onto the annotation's target coordinate system.

### Scaling

Gets or sets the the scaling used when projecting the 3D artwork.

    public double Scaling { get; set; }

Property Value

Double
A positive number that specifies the scaling used when projecting the 3D artwork onto the annotation's target coordinate system.

### Type

Gets or sets the type of projection.

    public PDF3DProjectionType Type { get; set; }

Property Value

PDF3DProjectionType
A PDF3DProjectionType that represents the type of projection.