PTMovie
@interface PTMovie : PTAnnot
A movie annotation contains animated graphics and sound to be presented on the computer screen and through the speakers. When the annotation is activated, the movie is played.
-
Creates a Movie annotation and initializes it using given Cos/SDF object.
Note
The constructor does not copy any data, but is instead the logical equivalent of a type cast.Parameters
d
The Cos/SDF object to initialze the annotation with.
-
Undocumented
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
-
Creates a new Movie annotation in the specified document.
Declaration
Parameters
doc
A document to which the Movie annotation is added.
pos
A rectangle specifying the Movie annotation’s bounds in default user space units.
Return Value
A newly created blank Movie annotation.
-
Returns the title of the Movie Annotation.
Note
Movie actions may use this title to reference the movie annotation.Declaration
Objective-C
- (NSString *)GetTitle;
Swift
func getTitle() -> String!
Return Value
A string representing the title of the Movie Annotation.
-
Sets the title of the Movie Annotation. (Optional)
Note
Movie actions may use this title to reference the movie annotation.Declaration
Objective-C
- (void)SetTitle:(NSString *)title;
Swift
func setTitle(_ title: String!)
Parameters
title
A string representing the title of the Movie Annotation.
-
Returns the option of whether the Movie is to be played.
Note
IsToBePlayed is a flag specifying whether to play the movie when the annotation is activated. The movie shall be played using default activation parameters. If the value is false, the movie shall not be played. Default value: true.Declaration
Objective-C
- (BOOL)IsToBePlayed;
Swift
func isToBePlayed() -> Bool
Return Value
a boolean value indicating if the movie is to be played.
-
Sets the option of whether the Movie is to be played. (Optional)
Note
IsToBePlayed is a flag specifying whether to play the movie when the annotation is activated. The movie shall be played using default activation parameters. If the value is false, the movie shall not be played. Default value: true.Declaration
Objective-C
- (void)SetToBePlayed:(BOOL)isplay;
Swift
func setToBePlayed(_ isplay: Bool)
Parameters
isplay
A boolean value telling if the movie is to be played. Default value: true.