[]
Represents 3D stream, contains definition of a 3D model.
new Model3DStream(
om,
bytes,
format): Model3DStream;
Creates a new Model3DStream.
ObjectManager that controls the lifetime of the Model3DStream.
Uint8Array
The 3D data.
The format of 3D data.
Model3DStream
ObjectBase.constructor
new Model3DStream(bytes, format): Model3DStream;
Creates a new Model3DStream.
Uint8Array
The 3D data.
The format of 3D data.
Model3DStream
ObjectBase.constructor
get animationRepeatCount(): number;
Gets a value specifying the play count for the animation style. A non-negative integer represents the number of times the animation shall be played. A negative integer indicates that the animation shall be infinitely repeated.
number
set animationRepeatCount(value): void;
Sets a value specifying the play count for the animation style. A non-negative integer represents the number of times the animation shall be played. A negative integer indicates that the animation shall be infinitely repeated.
number
void
get animationSpeed(): number;
Gets a positive number specifying the time multiplier that shall be used when running the animation. A value greater than one shortens the time it takes to play the animation, or effectively speeds up the animation.
number
set animationSpeed(value): void;
Sets the transformation matrix that specifies a position and orientation of the camera in world coordinates.
number
void
get animationStyle(): string;
Gets the animation style. The Model3DAnimationStyle defines the values listed in the PDF specification; this list may be extended in future revisions.
string
set animationStyle(value): void;
Sets the animation style. The Model3DAnimationStyle defines the values listed in the PDF specification; this list may be extended in future revisions.
string
void
get defaultView(): Model3DView;
Gets the stream-level default Model3DView for this 3D stream.
The default view is read from the stream dictionary entry identified by the PDF name
set defaultView(value): void;
Sets the stream-level default Model3DView object, the value can be specified as object itself or zero-based index of 3D view in Model3DStream.views collection.
number | Model3DView
void
get format(): string;
Gets the format of the 3D data contained in the stream. The Model3DStreamFormat defines the values listed in the PDF specification; this list may be extended in future revisions.
string
set format(value): void;
Sets the format of the 3D data contained in the stream. The Model3DStreamFormat defines the values listed in the PDF specification; this list may be extended in future revisions.
string
void
get id(): number;
Gets the reference to the object.
number
get om(): ObjectManager;
Gets the owner ObjectManager instance.
get views(): Model3DViewCollection;
Gets a collection of Model3DView objects, each of which specifies a named preset view of this Model3DStream.
free(): void;
Detaches the object from the ObjectManager and deallocates its memory, if possible.
void
rebind(omTo): void;
Rebinds the object from the current ObjectManager to the specified one.
The new ObjectManager for the object.
void