![]() |
MAK Data Logger API Documentation for HLA
|
Base annotation class defines interface for all annotations. More...
Inheritance diagram for MAKLogger::DtLgrAnnotation:
Collaboration diagram for MAKLogger::DtLgrAnnotation:Public Member Functions | |
| DtLgrAnnotation (const DtLgrAnnotationDefinition *definition) | |
| CTOR. More... | |
| virtual | ~DtLgrAnnotation () |
| const DtLgrAnnotationDefinition * | definition () const |
| Get the definition of of this type of annotation. More... | |
| virtual void | addedToManager (DtLgrAnnotationManager *manager) |
| Called by manager after added to a given manager. More... | |
| virtual const DtString & | type () const =0 |
| virtual void | setName (const DtString &name)=0 |
| virtual const DtString & | name () const =0 |
| virtual void | setText (const DtString &text)=0 |
| virtual const DtString & | text () const =0 |
| virtual void | setStartTime (const DtAbsoluteTime &time)=0 |
| virtual const DtAbsoluteTime & | startTime () const =0 |
| virtual void | setEndTime (const DtAbsoluteTime &time)=0 |
| virtual const DtAbsoluteTime & | endTime () const =0 |
| const QColor & | color () const |
| User-chosen color; invalid means the theme default. More... | |
| bool | hasColor () const |
| True when the user chose a color for this annotation. More... | |
| void | setColor (const QColor &color) |
| Set the user color (alpha is ignored); invalid restores the default. More... | |
| virtual void | initializeFromObject (const DtEnvObject *annotationObject)=0 |
| Initialize from environment object. More... | |
| virtual void | createObject (DtEnvironment environment)=0 |
| Set the attributes on an environment object. More... | |
Static Public Member Functions | |
| static bool | compareNames (const DtLgrAnnotation *a, const DtLgrAnnotation *b) |
| Static function used for sorting. More... | |
Protected Member Functions | |
| virtual void | annotationChanged () |
| Function should be called by any annotation function which modifies the state of the annotation. More... | |
| void | loadColor (const DtEnvObject *annotationObject) |
| Read the optional color attribute; malformed values keep the default. More... | |
| void | saveColor (DtEnvironment environment, const std::shared_ptr< DtEnvValue > &obj) const |
| Write the color attribute on obj when a color is set. More... | |
Protected Attributes | |
| DtLgrAnnotationManager * | myManager |
| const DtLgrAnnotationDefinition * | myTypeDefinition |
Private Attributes | |
| QColor | myColor |
Base annotation class defines interface for all annotations.
| MAKLogger::DtLgrAnnotation::DtLgrAnnotation | ( | const DtLgrAnnotationDefinition * | definition | ) |
CTOR.
|
virtual |
|
virtual |
Called by manager after added to a given manager.
Annotations maintain a pointer to the manager to notify it of changes.
|
protectedvirtual |
Function should be called by any annotation function which modifies the state of the annotation.
| const QColor& MAKLogger::DtLgrAnnotation::color | ( | ) | const |
User-chosen color; invalid means the theme default.
|
static |
Static function used for sorting.
|
pure virtual |
Set the attributes on an environment object.
Implemented in MAKLogger::DtLgrPointAnnotation, and MAKLogger::DtLgrRangeAnnotation.
| const DtLgrAnnotationDefinition* MAKLogger::DtLgrAnnotation::definition | ( | ) | const |
Get the definition of of this type of annotation.
This is non null if object is created using the annotation factory.
|
pure virtual |
Implemented in MAKLogger::DtLgrRangeAnnotation, and MAKLogger::DtLgrPointAnnotation.
| bool MAKLogger::DtLgrAnnotation::hasColor | ( | ) | const |
True when the user chose a color for this annotation.
|
pure virtual |
Initialize from environment object.
Implemented in MAKLogger::DtLgrPointAnnotation, and MAKLogger::DtLgrRangeAnnotation.
|
protected |
Read the optional color attribute; malformed values keep the default.
|
pure virtual |
Implemented in MAKLogger::DtLgrRangeAnnotation, and MAKLogger::DtLgrPointAnnotation.
|
protected |
Write the color attribute on obj when a color is set.
| void MAKLogger::DtLgrAnnotation::setColor | ( | const QColor & | color | ) |
Set the user color (alpha is ignored); invalid restores the default.
|
pure virtual |
Implemented in MAKLogger::DtLgrPointAnnotation, and MAKLogger::DtLgrRangeAnnotation.
|
pure virtual |
Implemented in MAKLogger::DtLgrRangeAnnotation, and MAKLogger::DtLgrPointAnnotation.
|
pure virtual |
Implemented in MAKLogger::DtLgrPointAnnotation, and MAKLogger::DtLgrRangeAnnotation.
|
pure virtual |
Implemented in MAKLogger::DtLgrRangeAnnotation, and MAKLogger::DtLgrPointAnnotation.
|
pure virtual |
Implemented in MAKLogger::DtLgrRangeAnnotation, and MAKLogger::DtLgrPointAnnotation.
|
pure virtual |
Implemented in MAKLogger::DtLgrRangeAnnotation, and MAKLogger::DtLgrPointAnnotation.
|
pure virtual |
Implemented in MAKLogger::DtLgrRangeAnnotation, and MAKLogger::DtLgrPointAnnotation.
|
private |
|
protected |
|
protected |