#include <MP7View.hpp>
Inherited by MP7VideoSegment.
Public Member Functions | |
virtual | ~MP7View () |
Destructor. | |
virtual bool | isValid () const |
Return true if this view is valid, i.e. | |
virtual bool | equals (const MP7View &view) const |
Return true if this view is equal to another view, i.e. | |
virtual void | setMP7Doc (MP7Doc *doc) |
Specify the MP7Doc object this view is going to operate on. | |
MP7ListViewItem * | rootItem () const |
Return the root of this view. | |
virtual MP7ListViewItem * | parent (MP7ListViewItem *root=NULL) const |
Return the root of the parent view. | |
virtual MP7ListViewItem * | setRoot (MP7ListViewItem *root, bool searchUp=false)=0 |
Specify the root of this view, i.e. | |
virtual void | setEmpty ()=0 |
Create an empty XML element structure corresponding to this view. | |
virtual bool | edit ()=0 |
Show a modal top-level widget allowing the user to enter MPEG-7 data for all XML elements of this view. | |
Protected Member Functions | |
MP7View () | |
Default constructor. | |
Protected Attributes | |
MP7Doc * | doc |
The MP7Doc object this view is going to operate on. | |
MP7ListViewItem * | root |
The root of this view (see the class description). |
We define a view as a subset of XML tree nodes of an MPEG-7 document. The root of a view is the root of the minimal XML subtree of the MPEG-7 document containing all the XML nodes of the view.
An implementation (subclass) of the view interface provides methods for easy creation and manipulation of a certain set of MPEG-7 descriptors within an MPEG-7 document. By defining creation and access methods in the view interface, an application could manage different views on the same MPEG-7 document in a generic manner. Moreover, the integration of additional views into the same application should become more feasible.
|
Show a modal top-level widget allowing the user to enter MPEG-7 data for all XML elements of this view.
Implemented in MP7VideoSegment. |
|
Return if both views refer to the same MPEG-7 document and view root. |
|
Return if both the MPEG-7 document and the view root have been set. |
|
Return the root of the parent view.
Reimplemented in MP7VideoSegment. |
|
Create an empty XML element structure corresponding to this view. Existing XML elements will not be deleted, but their values will be cleared. So calling this method twice should do no harm. Implemented in MP7VideoSegment. |
|
Specify the root of this view, i.e.
the root of the minimal XML subtree containing this view within the MPEG-7 document. If the given root element's tag name is not what this view expects it to be, the XML tree is searched for the nearest suitable element in the direction specified by the
Implemented in MP7VideoSegment. |