#include <Animation.h>
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... | |
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.
| te::qt::widgets::Animation::Animation | ( | QObject * | target, |
| const QByteArray & | propertyName, | ||
| QObject * | parent = 0 |
||
| ) |
Constructor It constructs a Animation.
| target | The target QObject for this animation. |
| propertyName | The target property name for this animation. |
| parent | Parent of this object. |
Definition at line 4 of file Animation.cpp.
References te::qt::widgets::AnimationItem::m_animation, and ~Animation().
|
virtualdefault |
Destructor It destructs a Animation.
Referenced by Animation().
| void te::qt::widgets::Animation::adjustDataToAnimationTemporalExtent | ( | const te::dt::TimePeriod & | period | ) |
It adjust animation data for a given period; /param period The temporal period.
Definition at line 13 of file Animation.cpp.
References te::qt::widgets::AnimationItem::adjustDataToAnimationTemporalExtent(), te::dt::TimePeriod::getFinalTimeInstant(), te::dt::TimePeriod::getInitialTimeInstant(), m_temporalAnimationExtent, and setDataKeyValues().
Referenced by te::qt::widgets::TimeSliderWidget::createAnimations().
| int te::qt::widgets::Animation::getClosestAnimationDataIndex | ( | const double & | trel | ) |
It It gets the closest animation data index.
| trel | Normalized time (between 0 and 1). |
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 | ) |
It It gets the next animation data index. it is the end point, between two points of the trajectory.
| trel | Normalized time (between 0 and 1). |
Definition at line 179 of file Animation.cpp.
References getClosestAnimationDataIndex(), te::dt::TimePeriod::getFinalTimeInstant(), te::dt::TimePeriod::getInitialTimeInstant(), te::dt::TimeInstant::getTimeInstant(), te::qt::widgets::AnimationItem::m_animationTime, and m_temporalAnimationExtent.
Referenced by te::qt::widgets::TrajectoryItem::draw(), te::qt::widgets::TrajectoryItem::drawForward(), te::qt::widgets::TrajectoryItem::drawIcon(), and te::qt::widgets::TrajectoryItem::erase().
| void te::qt::widgets::Animation::setDataKeyValues | ( | ) |
It It sets the data key values.
Definition at line 26 of file Animation.cpp.
References te::dt::TimePeriod::getFinalTimeInstant(), te::dt::TimePeriod::getInitialTimeInstant(), te::dt::TimeInstant::getTimeInstant(), te::qt::widgets::ImageItem::m_animationFiles, te::qt::widgets::AnimationItem::m_animationRoute, te::qt::widgets::AnimationItem::m_animationTime, te::qt::widgets::AnimationItem::m_norFinalTime, te::qt::widgets::AnimationItem::m_norInitialTime, and m_temporalAnimationExtent.
Referenced by adjustDataToAnimationTemporalExtent().
| te::gm::Envelope te::qt::widgets::Animation::m_spatialExtent |
Spatial extent.
Definition at line 109 of file Animation.h.
Referenced by te::qt::widgets::TimeSliderWidget::addTrajectory(), te::qt::widgets::TimeSliderWidget::calculateAllSpatialExtent(), te::qt::widgets::TimeSliderWidget::createAnimations(), te::qt::widgets::ImageItem::generateRoute(), te::qt::widgets::HidroItem::loadData(), te::qt::widgets::Eta5kmItem::loadData(), and te::qt::widgets::ImageItem::loadData().
| te::dt::TimePeriod te::qt::widgets::Animation::m_temporalAnimationExtent |
Temporal animation extent. It can be a portion of the total or greater than the total.
Definition at line 111 of file Animation.h.
Referenced by adjustDataToAnimationTemporalExtent(), te::qt::widgets::ImageItem::adjustDataToAnimationTemporalExtent(), te::qt::widgets::AnimationItem::adjustDataToAnimationTemporalExtent(), te::qt::widgets::TimeSliderWidget::calculateAllTemporalExtent(), te::qt::widgets::TimeSliderWidget::createAnimations(), getClosestAnimationDataIndex(), getNextAnimationDataIndex(), and setDataKeyValues().
| te::dt::TimePeriod te::qt::widgets::Animation::m_temporalExtent |
Total temporal extent.
Definition at line 110 of file Animation.h.
Referenced by te::qt::widgets::TimeSliderWidget::addTrajectory(), te::qt::widgets::TimeSliderWidget::calculateAllTemporalExtent(), te::qt::widgets::TimeSliderWidget::createAnimations(), te::qt::widgets::HidroItem::loadData(), te::qt::widgets::Eta5kmItem::loadData(), and te::qt::widgets::ImageItem::loadData().