[]
        
(Showing Draft Content)

Model3DView

Class: Model3DView

Represens 3D view (or simply view) specifies parameters that shall be applied to the virtual camera associated with a 3D annotation.

Extends

Constructors

Constructor

new Model3DView(om): Model3DView;

Creates a new Model3DView.

Parameters

om

ObjectManager

ObjectManager that controls the lifetime of the Model3DView.

Returns

Model3DView

Overrides

ObjectBase.constructor

Constructor

new Model3DView(): Model3DView;

Creates a new Model3DView.

Returns

Model3DView

Overrides

ObjectBase.constructor

Constructor

new Model3DView(
   om, 
   uiName, 
   cameraPosition, 
   cameraDistance?): Model3DView;

Creates a new Model3DView.

Parameters

om

ObjectManager

ObjectManager that controls the lifetime of the Model3DView.

uiName

string

The value of Model3DView.uiName property.

cameraPosition

Matrix3D

The transformation matrix that specifies a position and orientation of the camera in world coordinates.

cameraDistance?

number

The camera distance.

Returns

Model3DView

Overrides

ObjectBase.constructor

Constructor

new Model3DView(
   uiName, 
   cameraPosition, 
   cameraDistance?): Model3DView;

Creates a new Model3DView.

Parameters

uiName

string

The value of Model3DView.uiName property.

cameraPosition

Matrix3D

The transformation matrix that specifies a position and orientation of the camera in world coordinates.

cameraDistance?

number

The camera distance.

Returns

Model3DView

Overrides

ObjectBase.constructor

Accessors

backgroundColor

Get Signature

get backgroundColor(): Color;

Gets the background of the Model3DView as a solid color, returns null if background color can't be parsed.

Returns

Color

Set Signature

set backgroundColor(value): void;

Sets the background of the Model3DView as a solid color.

Parameters
value

Color

Returns

void


cameraDistance

Get Signature

get cameraDistance(): number;

Gets a non-negative number indicating a distance in the camera coordinate system along the z axis to the centre of orbit for this view; If this entry is not present, the interactive PDF processor shall determine the centre of orbit.

Returns

number

Set Signature

set cameraDistance(value): void;

Sets a non-negative number indicating a distance in the camera coordinate system along the z axis to the centre of orbit for this view; If this entry is not present, the interactive PDF processor shall determine the centre of orbit.

Parameters
value

number

Returns

void


cameraPosition

Get Signature

get cameraPosition(): Matrix3D;

Gets the transformation matrix that specifies a position and orientation of the camera in world coordinates, returns null of transformation matrix not specified or has unknown/unsupported format.

Returns

Matrix3D

Set Signature

set cameraPosition(value): void;

Sets the transformation matrix that specifies a position and orientation of the camera in world coordinates.

Parameters
value

Matrix3D

Returns

void


id

Get Signature

get id(): number;

Gets the reference to the object.

Returns

number

Inherited from

ObjectBase.id


lightingSchemeType

Get Signature

get lightingSchemeType(): string;

Gets the type of lighting scheme that shall be used when rendering 3D artwork If omitted, the lighting scheme specified in the 3D artwork shall be used. The Model3DLightingSchemeType defines the values listed in the PDF specification; this list may be extended in future revisions.

Returns

string

Set Signature

set lightingSchemeType(value): void;

Sets the type of lighting scheme that shall be used when rendering 3D artwork If omitted, the lighting scheme specified in the 3D artwork shall be used. The Model3DLightingSchemeType defines the values listed in the PDF specification; this list may be extended in future revisions.

Parameters
value

string

Returns

void


name

Get Signature

get name(): string;

Gets the internal name of the view, used to refer to the Model3DView from other objects. If omitted, the external name uiName shall be used.

Returns

string

Set Signature

set name(value): void;

Sets the internal name of the view, used to refer to the Model3DView from other objects. If omitted, the external name uiName shall be used.

Parameters
value

string

Returns

void


om

Get Signature

get om(): ObjectManager;

Gets the owner ObjectManager instance.

Returns

ObjectManager

Inherited from

ObjectBase.om


renderingModeType

Get Signature

get renderingModeType(): string;

Gets the type of render mode to use when rendering 3D artwork. If omitted, the render mode specified in the 3D artwork shall be used. The Model3DRenderingModeType defines the values listed in the PDF specification; this list may be extended in future revisions.

Returns

string

Set Signature

set renderingModeType(value): void;

Sets the type of render mode to use when rendering 3D artwork. If omitted, the render mode specified in the 3D artwork shall be used. The Model3DRenderingModeType defines the values listed in the PDF specification; this list may be extended in future revisions.

Parameters
value

string

Returns

void


uiName

Get Signature

get uiName(): string;

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

Returns

string

Set Signature

set uiName(value): void;

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

Parameters
value

string

Returns

void

Methods

free()

free(): void;

Detaches the object from the ObjectManager and deallocates its memory, if possible.

Returns

void

Inherited from

ObjectBase.free


rebind()

rebind(omTo): void;

Rebinds the object from the current ObjectManager to the specified one.

Parameters

omTo

ObjectManager

The new ObjectManager for the object.

Returns

void

Inherited from

ObjectBase.rebind