Public Slots | Signals | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
MAKLogger::DtTimeComponent Class Reference

A time component represents the current time of the logger. More...

+ Inheritance diagram for MAKLogger::DtTimeComponent:
+ Collaboration diagram for MAKLogger::DtTimeComponent:

List of all members.

Public Slots

virtual void setFollowMode (bool)
 Enable follow mode.
virtual void setStartStopTimes (const DtAbsoluteTime &, const DtAbsoluteTime &, bool emitSignal=true)
virtual void setFirstTime (const DtAbsoluteTime &)
virtual void setLastTime (const DtAbsoluteTime &)
virtual void setCurrentTime (const DtAbsoluteTime &)
virtual void emitSetCurrentTime (const DtAbsoluteTime &)
virtual void emitStartStopTimesChanged (const DtAbsoluteTime &, const DtAbsoluteTime &)

Signals

void firstTimeChanged (const DtAbsoluteTime &)
 Distribution.
void lastTimeChanged (const DtAbsoluteTime &)
void startStopTimesChanged (const DtAbsoluteTime &, const DtAbsoluteTime &)
void currentTimeChanged (const DtAbsoluteTime &)
void modifyCurrentTime (const DtAbsoluteTime &)
void modifyStartStopTime (const DtAbsoluteTime &, const DtAbsoluteTime &)
void followModeChanged (bool)

Public Member Functions

virtual DtAbsoluteTime timeOfPercentFirstLast (float percent) const
 Calculate the time based on a percentage between the first and last times.
virtual float percentOfTimeFirstLast (const DtAbsoluteTime &time) const
 Calculate the percent on a time between the first and last times.
virtual DtAbsoluteTime timeOfPercentStartStop (float percent) const
 Calculate the time based on a percentage between the start and stop times.
virtual float percentOfTimeStartStop (const DtAbsoluteTime &time) const
 Calculate the percent on a time between the start and stop times.
bool followModeEnabled () const
 Get whether follow mode is enabled.
virtual DtAbsoluteTime firstTime () const
 Concepts:
virtual DtAbsoluteTime lastTime () const
 Get the last time that is valid.
virtual DtAbsoluteTime startTime () const
 Get the start time.
virtual DtAbsoluteTime stopTime () const
 Get the stop time.
virtual DtAbsoluteTime currentTime () const
 Get the current time.
virtual DtRelativeTime length () const
 Get the total length. This is last minus first.
virtual DtRelativeTime duration () const
 Get the current duration. This is stop minus start.

Static Public Member Functions

static void listenOnly (const DtTimeComponent *, const DtTimeComponent *)
 Connect the second component to listen only to the first.
static void disconnect (const DtTimeComponent *, const DtTimeComponent *)
 Connect two time components so they stay synchronized.

Private Member Functions

 DtTimeComponent (const DtTimeComponent &)
 Not Implemented.
DtTimeComponentoperator= (const DtTimeComponent &)
 Not Implemented.

Private Attributes

DtAbsoluteTime myFirstTime
 Bounds.
DtAbsoluteTime myLastTime
DtAbsoluteTime myStartTime
 Dynamic parameters.
DtAbsoluteTime myStopTime
DtAbsoluteTime myCurrentTime
bool myFollowModeFlag
DtRelativeTime myFollowTime

Detailed Description

A time component represents the current time of the logger.

The time can be synchronized between all the time components.


Member Function Documentation

static void MAKLogger::DtTimeComponent::disconnect ( const DtTimeComponent ,
const DtTimeComponent  
) [static]

Connect two time components so they stay synchronized.

static void connect(const DtTimeComponent*,const DtTimeComponent*); Disconnect two time components that were connected.

virtual DtAbsoluteTime MAKLogger::DtTimeComponent::firstTime ( ) const [virtual]

Concepts:

Get the first time that is valid.

bool MAKLogger::DtTimeComponent::followModeEnabled ( ) const

Get whether follow mode is enabled.

true Follow mode is enabled. false Follow mode is not enabled, absolute mode is used.

virtual float MAKLogger::DtTimeComponent::percentOfTimeFirstLast ( const DtAbsoluteTime time) const [virtual]

Calculate the percent on a time between the first and last times.

virtual float MAKLogger::DtTimeComponent::percentOfTimeStartStop ( const DtAbsoluteTime time) const [virtual]

Calculate the percent on a time between the start and stop times.

virtual DtAbsoluteTime MAKLogger::DtTimeComponent::timeOfPercentFirstLast ( float  percent) const [virtual]

Calculate the time based on a percentage between the first and last times.

virtual DtAbsoluteTime MAKLogger::DtTimeComponent::timeOfPercentStartStop ( float  percent) const [virtual]

Calculate the time based on a percentage between the start and stop times.


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

Document ID: Generated on Tue Oct 11 19:41:03 EDT 2011 from SVN revision 107422
Copyright © 2005-2011 VT MÄK Inc. All Rights Reserved (www.mak.com)