Skip to content

# PDF3DView

Namespace: O2S.Components.PDF4NET.Annotations

Defines the parameters to be applied to the virtual camera associated with a 3D annotation.

    public class PDF3DView

Inheritance Object → PDF3DView

## Constructors

### PDF3DView()

Initializes a new PDF3DView object.

    public PDF3DView()

## Properties

### Background

Gets or sets the view background.

    public PDF3DBackground Background { get; set; }

Property Value

PDF3DBackground
A PDF3DBackground that represents the background over which the 3D artwork is to be drawn.

### CameraToWorldMatrix

Gets or sets the camera to world transformation matrix.

    public Double[] CameraToWorldMatrix { get; set; }

Property Value

Double[]
A 12-element 3D transformation matrix that specifies a position and orientation of the camera in world coordinates.

### CenterOfOrbit

Gets or sets the center of orbit.

    public double CenterOfOrbit { get; set; }

Property Value

Double
A non-negative number indicating a distance in the camera coordinate system along the z axis to the center of orbit for this view.

### CrossSections

Gets the collection of cross sections.

    public PDF3DCrossSectionCollection CrossSections { get; }

Property Value

PDF3DCrossSectionCollection
A collection of PDF3DCrossSection.

Remarks

Each cross section provides parameters for applying a cross section to the 3D artwork when using this view.

### ExternalName

Gets or sets the external name of the view.

    public string ExternalName { get; set; }

Property Value

String
The external name of the view, suitable for presentation in a user interface.

### InternalName

Gets or sets the internal name of the view

    public string InternalName { get; set; }

Property Value

String
The internal name of the view, used to refer to the view from other objects, such as the go-to-3D-view actions.

### LightingScheme

Gets or sets the lighting scheme.

    public PDF3DLightingScheme LightingScheme { get; set; }

Property Value

PDF3DLightingScheme
A PDF3DLightingScheme that represents the lighting scheme to be used when rendering 3D artwork with this view.

### Nodes

Gets the collection of 3D nodes.

    public PDF3DNodeCollection Nodes { get; }

Property Value

PDF3DNodeCollection
A collection of PDF3DNode.

Remarks

Each 3D node may contain entries that change the node's state, including its opacity and its position in world space.

### Projection

Gets or sets the view projection.

    public PDF3DProjection Projection { get; set; }

Property Value

PDF3DProjection
A PDF3DProjection that represents the projection of coordinates in the 3D artwork (already transformed into camera coordinates) onto the target coordinate system of the annotation.

### RenderMode

Gets or sets the view rendering mode.

    public PDF3DRenderMode RenderMode { get; set; }

Property Value

PDF3DRenderMode
A PDF3DRenderMode that represents the render mode to use when rendering 3D artwork with this view.

### ResetNodes

Gets or sets a value indicating whether nodes specified in the PDF3DView.Nodes collection are returned to their original states (as specified in the 3D artwork) before applying transformation matrices and opacity settings specified in the node objects.

    public bool ResetNodes { get; set; }

Property Value

Boolean
If true, the artwork's 3D node parameters are restored to their original states and then the dictionaries specified by the PDF3DView.Nodes collection are applied. If false, the dictionaries specified by the PDF3DView.Nodes collection are applied to the current states of the nodes.

### U3DPath

Gets or sets the path to a view node in 3D data.

    public string U3DPath { get; set; }

Property Value

String
A string used to access a view node within the 3D artwork.