MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Attributes | Static Protected Member Functions | Protected Attributes
MAKLogger::DtLgrPointAnnotation Class Reference

Represents an annotation for a specific point in time. More...

+ Inheritance diagram for MAKLogger::DtLgrPointAnnotation:
+ Collaboration diagram for MAKLogger::DtLgrPointAnnotation:

Public Member Functions

 DtLgrPointAnnotation (const DtString &name, DtAbsoluteTime time, const DtString &text)
 CTOR takes the annotations name, time and text. More...
 
virtual ~DtLgrPointAnnotation ()
 DTOR. More...
 
virtual const DtString & type () const
 Get the annotation's name. More...
 
virtual void setName (const DtString &name)
 Set the annotation's name. More...
 
virtual const DtString & name () const
 Get the annotation's name. More...
 
virtual void setText (const DtString &text)
 Set the annotation's text. More...
 
virtual const DtString & text () const
 Get the annotation's text. More...
 
virtual const DtAbsoluteTime & startTime () const
 Get the annotation's start time. More...
 
virtual const DtAbsoluteTime & endTime () const
 Get the annotation's end time. More...
 
virtual void setStartTime (const DtAbsoluteTime &time)
 
virtual void setEndTime (const DtAbsoluteTime &time)
 
virtual const DtAbsoluteTime & time () const
 Get the annotation's time. The same as startTime and endTime. More...
 
virtual void setTime (DtAbsoluteTime time)
 Set the annotation's time. More...
 
virtual void initializeFromObject (const DtEnvObject *annotationObject)
 Initialize from environment object. More...
 
virtual void createObject (DtEnvironment environment)
 Create an object in the environment. More...
 
- Public Member Functions inherited from MAKLogger::DtLgrAnnotation
 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...
 
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...
 

Static Public Attributes

static DtLgrAnnotationDefinition theDefinition
 The global definition of the point annotation type. More...
 

Static Protected Member Functions

static DtLgrAnnotation * load (const DtEnvObject *)
 Create an annotation from an object. More...
 
static DtLgrAnnotationSliderBar * createBar (DtLgrAnnotation *)
 Draw the bar for a point annotation. More...
 

Protected Attributes

DtString myName
 Name string is in UTF8 format. More...
 
DtString myText
 Text string is in UTF8 format. More...
 
DtAbsoluteTime myTime
 
- Protected Attributes inherited from MAKLogger::DtLgrAnnotation
DtLgrAnnotationManager * myManager
 
const DtLgrAnnotationDefinition * myTypeDefinition
 

Additional Inherited Members

- Static Public Member Functions inherited from MAKLogger::DtLgrAnnotation
static bool compareNames (const DtLgrAnnotation *a, const DtLgrAnnotation *b)
 Static function used for sorting. More...
 
- Protected Member Functions inherited from MAKLogger::DtLgrAnnotation
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...
 

Detailed Description

Represents an annotation for a specific point in time.

Constructor & Destructor Documentation

MAKLogger::DtLgrPointAnnotation::DtLgrPointAnnotation ( const DtString &  name,
DtAbsoluteTime  time,
const DtString &  text 
)

CTOR takes the annotations name, time and text.

virtual MAKLogger::DtLgrPointAnnotation::~DtLgrPointAnnotation ( )
virtual

DTOR.

Member Function Documentation

static DtLgrAnnotationSliderBar* MAKLogger::DtLgrPointAnnotation::createBar ( DtLgrAnnotation *  )
staticprotected

Draw the bar for a point annotation.

virtual void MAKLogger::DtLgrPointAnnotation::createObject ( DtEnvironment  environment)
virtual

Create an object in the environment.

Implements MAKLogger::DtLgrAnnotation.

virtual const DtAbsoluteTime& MAKLogger::DtLgrPointAnnotation::endTime ( ) const
virtual

Get the annotation's end time.

For point annotations start time and end time are the same.

Implements MAKLogger::DtLgrAnnotation.

virtual void MAKLogger::DtLgrPointAnnotation::initializeFromObject ( const DtEnvObject *  annotationObject)
virtual

Initialize from environment object.

Implements MAKLogger::DtLgrAnnotation.

static DtLgrAnnotation* MAKLogger::DtLgrPointAnnotation::load ( const DtEnvObject *  )
staticprotected

Create an annotation from an object.

virtual const DtString& MAKLogger::DtLgrPointAnnotation::name ( ) const
virtual

Get the annotation's name.

Implements MAKLogger::DtLgrAnnotation.

virtual void MAKLogger::DtLgrPointAnnotation::setEndTime ( const DtAbsoluteTime &  time)
virtual
virtual void MAKLogger::DtLgrPointAnnotation::setName ( const DtString &  name)
virtual

Set the annotation's name.

Implements MAKLogger::DtLgrAnnotation.

virtual void MAKLogger::DtLgrPointAnnotation::setStartTime ( const DtAbsoluteTime &  time)
virtual
virtual void MAKLogger::DtLgrPointAnnotation::setText ( const DtString &  text)
virtual

Set the annotation's text.

Implements MAKLogger::DtLgrAnnotation.

virtual void MAKLogger::DtLgrPointAnnotation::setTime ( DtAbsoluteTime  time)
virtual

Set the annotation's time.

virtual const DtAbsoluteTime& MAKLogger::DtLgrPointAnnotation::startTime ( ) const
virtual

Get the annotation's start time.

For point annotations start time and end time are the same.

Implements MAKLogger::DtLgrAnnotation.

virtual const DtString& MAKLogger::DtLgrPointAnnotation::text ( ) const
virtual

Get the annotation's text.

Implements MAKLogger::DtLgrAnnotation.

virtual const DtAbsoluteTime& MAKLogger::DtLgrPointAnnotation::time ( ) const
virtual

Get the annotation's time. The same as startTime and endTime.

virtual const DtString& MAKLogger::DtLgrPointAnnotation::type ( ) const
virtual

Get the annotation's name.

Implements MAKLogger::DtLgrAnnotation.

Member Data Documentation

DtString MAKLogger::DtLgrPointAnnotation::myName
protected

Name string is in UTF8 format.

DtString MAKLogger::DtLgrPointAnnotation::myText
protected

Text string is in UTF8 format.

DtAbsoluteTime MAKLogger::DtLgrPointAnnotation::myTime
protected
DtLgrAnnotationDefinition MAKLogger::DtLgrPointAnnotation::theDefinition
static

The global definition of the point annotation type.


The documentation for this class was generated from the following file:

Document ID: Generated on Tue Nov 17 15:25:07 EST 2026 from SVN revision 298446
Copyright © 2026 MAK Technologies. All Rights Reserved (www.mak.com)