Contents
Navigation
Home User Reference Other Resources


This is an utility class that allows you to create and manage easily time selections; you will be required to use instances of this class in many plugin methods.

Since version 6.7 of the plugin this class can be used in Console Applications






The QTPlgTimeRange64 class constructors are called when you create a new instance of the class, while the ˜QTPlgTimeRange64 class destructor, is called automatically when the class is no more in use. Also, you can invoke the class destructor by setting the instance of the class to nil.
Once a new class instance is returned, it is good practice to check the class property to be sure that the new object can be used. A QTPlgTimeRange64 object is valid if both the values of the and class properties are greater than or equal to 0
The class provides you with the following initializer methods:
()
This is the default constructor. Both the and class properties are set to 0.0; the property is set to 0 as well
(other as QTPlgTimeRange64)
This is the copy constructor. If the object to be copied is valid, then its properties will be used to initialize the new class instance properties
(start as double, length as double)
the and class properties are initialized to the values of the start and length parameters. The property is set to 0
(tmRange as )
the and class properties are initialized to their counterpart values of the tmRange object. The property is set to 0
(mp as movieplayer)
if the movieplayer specified by the mp parameter has an active time selection, the property is initialized to the value of the start time of the current user time selection and the property is initialized to the duration of the current user time selection. The property is set to to the movieplayer’s time scale
[Deprecated]: since version 6.6 of the plugin this redundant constructor has been deprecated and will be removed from a future plugin version; use property of the class

specifies the begin of the time selection
specifies the duration of the time selection
specifies the end of the time selection (obtained by adding the duration value to the start time)
if the is set to a valid value, specifies the start of the time selection in seconds
if the is set to a valid value, specifies the duration of the time selection in seconds
if the is set to a valid value, specifies the end of the time selection in seconds
specifies the units per second the other class properties refer to. If is set to 0 no scale is defined for the time values

() as
this operator allows to convert transparently a QTPlgTimeRange64 class instance to a object
returns a new class instance. Check the class property for errors