te::qt::widgets::Animation Class Reference

#include <Animation.h>

Inheritance diagram for te::qt::widgets::Animation:
QPropertyAnimation

Public Member Functions

void adjustDataToAnimationTemporalExtent (const te::dt::TimePeriod &period)
 It adjust animation data for a given period; /param period The temporal period. More...
 
 Animation (QObject *target, const QByteArray &propertyName, QObject *parent=0)
 Constructor It constructs a Animation. More...
 
int getClosestAnimationDataIndex (const double &trel)
 It It gets the closest animation data index. More...
 
int getNextAnimationDataIndex (const double &trel)
 It It gets the next animation data index. it is the end point, between two points of the trajectory. More...
 
void setDataKeyValues ()
 It It sets the data key values. More...
 
virtual ~Animation ()
 Destructor It destructs a Animation. More...
 

Public Attributes

te::gm::Envelope m_spatialExtent
 Spatial extent. More...
 
te::dt::TimePeriod m_temporalAnimationExtent
 Temporal animation extent. It can be a portion of the total or greater than the total. More...
 
te::dt::TimePeriod m_temporalExtent
 Total temporal extent. More...
 

Detailed Description

This class is responsible for making the animation of a trajectory or temporal image. It has controls like loop, forward, backward and pause.

Definition at line 59 of file Animation.h.

Constructor & Destructor Documentation

te::qt::widgets::Animation::Animation ( QObject target,
const QByteArray &  propertyName,
QObject parent = 0 
)

Constructor It constructs a Animation.

Parameters
targetThe target QObject for this animation.
propertyNameThe target property name for this animation.
parentParent of this object.

Definition at line 4 of file Animation.cpp.

References te::qt::widgets::AnimationItem::m_animation, and ~Animation().

te::qt::widgets::Animation::~Animation ( )
virtualdefault

Destructor It destructs a Animation.

Referenced by Animation().

Member Function Documentation

void te::qt::widgets::Animation::adjustDataToAnimationTemporalExtent ( const te::dt::TimePeriod period)
int te::qt::widgets::Animation::getClosestAnimationDataIndex ( const double &  trel)

It It gets the closest animation data index.

Parameters
trelNormalized time (between 0 and 1).
Returns
The animation data index.

Definition at line 105 of file Animation.cpp.

References te::dt::TimePeriod::getFinalTimeInstant(), te::dt::TimePeriod::getInitialTimeInstant(), te::dt::TimeInstant::getTimeInstant(), te::qt::widgets::AnimationItem::m_animationTime, m_temporalAnimationExtent, and td.

Referenced by te::qt::widgets::ImageItem::calculateCurrentFile(), and getNextAnimationDataIndex().

int te::qt::widgets::Animation::getNextAnimationDataIndex ( const double &  trel)

Member Data Documentation


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