![]() |
MAK Data Logger API Documentation for DIS
|
Manages annotations. More...
Collaboration diagram for MAKLogger::DtLgrAnnotationManager:Public Types | |
| typedef std::list < DtLgrAnnotation * > | AnnotationList |
Public Member Functions | |
| DtLgrAnnotationManager () | |
| virtual | ~DtLgrAnnotationManager () |
| virtual void | setAllowChanges (bool allowed) |
| Control whether changes may be made to the annotations. More... | |
| virtual bool | allowChanges () const |
| Get whether changes may be made to the annotations. More... | |
| virtual void | addAnnotation (DtLgrAnnotation *annotation) |
| Adds an annotation to the manager. More... | |
| virtual void | removeAnnotation (DtLgrAnnotation *annotation) |
| Removes the given annotation. The annotation is deallocated. More... | |
| virtual void | clearAnnotations () |
| Remove all annotations. All annotation are deallocated. More... | |
| virtual void | deleteTimeRange (const DtAbsoluteTime &start, const DtAbsoluteTime &end) |
| Delete all annotations in the range, or clip those who are partially in the range. More... | |
| virtual void | moveTimeRange (const DtAbsoluteTime &start, const DtAbsoluteTime &end, const DtRelativeTime &offset) |
| Move all annotations in the range by the offset. More... | |
| virtual void | annotationsStartingAt (DtAbsoluteTime, AnnotationList &output) |
| Get a list of all annotations starting at the given time. More... | |
| virtual void | annotationsEndingAt (DtAbsoluteTime, AnnotationList &output) |
| Get a list of all annotations ending at a given time. More... | |
| virtual void | annotationsDuring (DtAbsoluteTime, AnnotationList &output) |
| Get a list of all annotations which have the given time between their starting and ending points. More... | |
| virtual const AnnotationList & | annotations () |
| Get a list of all annotations. More... | |
| virtual void | annotationChanged (DtLgrAnnotation *annotation) |
| Called by annotation when it is modified. More... | |
| virtual void | annotationsChanged () |
| Called by when annotations in the manager changed. More... | |
| virtual bool | isAnnotationStateSaved () const |
| Get whether the annotation state is currently saved. More... | |
| virtual void | saveAnnotationState (DtEnvironment environment) |
| Save the annotations to the provided environment. More... | |
| virtual void | setAnnotationState (const DtEnvironment environment, bool clear=true) |
| Reads the annotations from the environment. More... | |
| virtual void | addView (DtLgrAnnotationBaseView *view) |
| Add a view to be notified of changes. More... | |
| virtual void | removeView (DtLgrAnnotationBaseView *view) |
| Remove a view from the model which stops it from receiving notification of changes. More... | |
| virtual void | annotationsSaved () |
| Called when annotations have been saved. More... | |
| virtual bool | autoLoad () const |
| Annotations are automatically loaded when a lgr file is opened. More... | |
| virtual void | setAutoLoad (bool autoLoad) |
| Set whether annotations are automatically loaded when a lgr file is opened. More... | |
| virtual bool | empty () const |
| Whether the are no annotations. More... | |
Protected Types | |
| typedef std::set < DtLgrAnnotationBaseView * > | ViewSet |
| List type of views. More... | |
Protected Attributes | |
| AnnotationList | myAnnotations |
| The managers list of annotations. More... | |
| bool | myAnnotationStateSaved |
| Stores whether the state is considered 'saved'. More... | |
| bool | myUnlockedState |
| ViewSet | myViews |
| A list of views the model will notify of changes. More... | |
| bool | myAutoLoadFlag |
Private Member Functions | |
| DtLgrAnnotationManager (const DtLgrAnnotationManager &) | |
| Not Implemented. More... | |
| DtLgrAnnotationManager & | operator= (const DtLgrAnnotationManager &) |
| Not Implemented. More... | |
Manages annotations.
| typedef std::list<DtLgrAnnotation*> MAKLogger::DtLgrAnnotationManager::AnnotationList |
|
protected |
List type of views.
| MAKLogger::DtLgrAnnotationManager::DtLgrAnnotationManager | ( | ) |
|
virtual |
|
private |
Not Implemented.
|
virtual |
Adds an annotation to the manager.
The manager assumes ownership of the annotation.
|
virtual |
Add a view to be notified of changes.
All views must be removed before being deallocated.
|
virtual |
Get whether changes may be made to the annotations.
|
virtual |
Called by annotation when it is modified.
This function is used to track annotation changes.
|
virtual |
Get a list of all annotations.
|
virtual |
Called by when annotations in the manager changed.
|
virtual |
Get a list of all annotations which have the given time between their starting and ending points.
|
virtual |
Get a list of all annotations ending at a given time.
|
virtual |
Called when annotations have been saved.
|
virtual |
Get a list of all annotations starting at the given time.
|
virtual |
Annotations are automatically loaded when a lgr file is opened.
|
virtual |
Remove all annotations. All annotation are deallocated.
|
virtual |
Delete all annotations in the range, or clip those who are partially in the range.
|
virtual |
Whether the are no annotations.
|
virtual |
Get whether the annotation state is currently saved.
|
virtual |
Move all annotations in the range by the offset.
|
private |
Not Implemented.
|
virtual |
Removes the given annotation. The annotation is deallocated.
|
virtual |
Remove a view from the model which stops it from receiving notification of changes.
|
virtual |
Save the annotations to the provided environment.
|
virtual |
Control whether changes may be made to the annotations.
|
virtual |
Reads the annotations from the environment.
Only the root's child annotation objects in the environment will be used. Existing annotations are deleted unless clear is set to false.
| Input | |
| clear | Controls whether the existing annotations are cleared first. |
|
virtual |
Set whether annotations are automatically loaded when a lgr file is opened.
|
protected |
The managers list of annotations.
|
protected |
Stores whether the state is considered 'saved'.
Initially the state is not saved. Upon opening a file the state is considered saved until a changes is made. Once a change is made the state will be false until the state is re-saved.
|
protected |
|
protected |
|
protected |
A list of views the model will notify of changes.