#include <MP7VideoSegment.hpp>
Inherits MP7View.
Public Member Functions | |
MP7VideoSegment () | |
Default constructor. | |
MP7VideoSegment (MP7Doc *doc, MP7ListViewItem *root) | |
Constructor. | |
virtual MP7ListViewItem * | parent (MP7ListViewItem *root=NULL) const |
Return the root of the parent video segment. | |
virtual MP7ListViewItem * | setRoot (MP7ListViewItem *root, bool searchUp=false) |
Set this view's root. | |
virtual void | setEmpty () |
Create an empty video segment description. | |
virtual bool | edit () |
Show a modal top-level widget allowing the user to enter annotation data of this video segment. | |
MP7Time | mediaTime () const |
Return the media time value of this video segment. | |
bool | setMediaTime (const MP7Time &time) |
Set the media time value of this video segment. | |
bool | modifyMediaStartTime (const MP7Time &startTime, bool recursive=false) |
Modify the media start time (time point) of this segment. | |
bool | modifyMediaEndTime (const MP7Time &endTime, bool recursive=false) |
Modify the media duration of this segment from the given end time. | |
QString | title () const |
Return the segment title. | |
int | level () const |
Return the segment level (tree depth) of this segment within the MPEG-7 document. | |
bool | ancestor (MP7VideoSegment &result, int level=-1) const |
Determine an ancestor video segment. | |
int | childSegments (std::vector< MP7VideoSegment > &result) const |
Return the child video segments of this segment. | |
bool | addChildSegment (MP7VideoSegment &result) |
Add a child segment of this segment to the MPEG-7 document. | |
bool | move (MP7VideoSegment *newParent, MP7VideoSegment *newSibling=NULL) |
Move this segment (and all child segments) to a new parent segment, right after the given new sibling segment. | |
bool | split (MP7VideoSegment &result, const MP7Time &time) |
Split this segment at the given media time point into two sibling segments (this and a new one). | |
bool | remove (bool recursive=false) |
Remove this video segment from the MPEG-7 document. | |
bool | searchByMediaTime (MP7VideoSegment &result, const MP7Time &time, int level) const |
Search for the video segment containing the given media time point at the specified maximal segment level. | |
bool | prevGenSibling (MP7VideoSegment &result) const |
Find the previous generalized sibling segment of this segment. | |
bool | nextGenSibling (MP7VideoSegment &result) const |
Find the next generalized sibling segment of this segment. | |
MP7ListViewItem * | setTitleImage (const MP7Time &time) |
Set the TitleImage descriptor of this segment to the given media time point. |
The root of this view is always an MPEG-7 Video or VideoSegment descriptor.
|
Constructor.
The
|
|
Add a child segment of this segment to the MPEG-7 document. The child segment is appended as the last child of this segment.
|
|
Determine an ancestor video segment.
|
|
Return the child video segments of this segment.
|
|
Show a modal top-level widget allowing the user to enter annotation data of this video segment.
Implements MP7View. |
|
Return the segment level (tree depth) of this segment within the MPEG-7 document. The top-level segment is assigned level 0. |
|
Modify the media duration of this segment from the given end time. The media start time (time point) remains constant.
|
|
Modify the media start time (time point) of this segment. The duration value will be updated such that the segment end time remains constant.
|
|
Move this segment (and all child segments) to a new parent segment, right after the given new sibling segment.
If
|
|
Find the next generalized sibling segment of this segment. This is the segment of the same depth with minimal media time greater than that of this segment.
|
|
Return the root of the parent video segment.
Reimplemented from MP7View. |
|
Find the previous generalized sibling segment of this segment. This is the segment of the same depth with maximal media time less than that of this segment.
|
|
Remove this video segment from the MPEG-7 document. When a segment with a sibling is removed, the sibling's media time is increased to include the removed segment. The top-level segment of an MPEG-7 document cannot be removed (an error status is returned).
|
|
Search for the video segment containing the given media time point at the specified maximal segment level. Only the segment tree below this segment is searched.
|
|
Create an empty video segment description.
Implements MP7View. |
|
Set the media time value of this video segment. The time point will be set only if it is valid. The duration will be set only if it is not 0.
|
|
Set this view's root.
Implements MP7View. |
|
Set the TitleImage descriptor of this segment to the given media time point.
|
|
Split this segment at the given media time point into two sibling segments (this and a new one). This segment will keep its time point, but its duration will be shortened. A root segment cannot be split.
|