This class is a dialog for the Trajectory Icon Item. More...
#include <TrajectoryItem.h>
Public Member Functions | |
void | createAnimationDataInDisplayProjection () |
Create route points making reprojection if necessary. More... | |
void | draw () |
Draw the trajectory long trail. It draws the beginning until the current time. The beginning depends on the direction (forward or backward). More... | |
void | drawForward (const unsigned int &curTime) |
Draw a piece of tracktrajectory trail. It draws from the previous time to the current time. More... | |
void | erase (const unsigned int &curTime) |
erase a piece of tracktrajectory trail. More... | |
QAbstractAnimation::Direction | getDirection () |
Gets the Animation Item direction. More... | |
unsigned int | getDuration () |
Gets the Animation Item duration. More... | |
QPoint | getPosInDeviceCoordinate () |
It returns the Animation Item position in device coordinate. More... | |
void | paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *) |
Paint a piece of trajectory trail. More... | |
void | setDirection (const QAbstractAnimation::Direction &direction) |
Sets the Animation Item direction. More... | |
void | setDuration (const unsigned int &duration) |
Sets the Animation Item duration. More... | |
void | setMatrix () |
It sets the internal matrix. More... | |
TrajectoryItem (const QString &title, te::qt::widgets::MapDisplay *display, const QString &file, const QSize &size) | |
Constructor It constructs a Trajectory Icon Item. More... | |
virtual | ~TrajectoryItem () |
Destructor It destructs a Trajectory Icon Item. More... | |
Public Attributes | |
Animation * | m_animation |
The animation this item. More... | |
QVector< QPointF > | m_animationRoute |
The path coordenates in map display projection. It contains only the portions to be animated. More... | |
QVector< te::dt::TimeInstant > | m_animationTime |
The animation time. It contains only the portions to be animated. More... | |
bool | m_automaticPan |
True if automatic pan over this item. More... | |
QColor | m_backwardColor |
The backward trail color. More... | |
unsigned int | m_curTimeDuration |
Current time (ms). Its value is between 0 and the total duration. More... | |
QAbstractAnimation::Direction | m_direction |
The direction. More... | |
te::qt::widgets::MapDisplay * | m_display |
Indicates where the icon item is displayed. More... | |
bool | m_drawTrail |
flag to draw trail More... | |
unsigned int | m_duration |
The duration this item. More... | |
bool | m_erasePerfectly |
flag to erase trajectory piece perfectly (default = false). More... | |
QColor | m_forwardColor |
The forward trail color. More... | |
QString | m_iconFile |
file that generated the pixmap More... | |
QSize | m_iconSize |
icon size More... | |
int | m_lineWidth |
The route/trail line width in pixels. More... | |
QMatrix | m_matrix |
The display transformation matrix. More... | |
double | m_norFinalTime |
Normalized final time (between 0 and 1). More... | |
double | m_norInitialTime |
Normalized initial time (between 0 and 1). More... | |
int | m_opacity |
Opacity. More... | |
double | m_panFactor |
the range is between 0.05 and 0.5 More... | |
QPointF | m_pos |
The icon position. More... | |
QPointF | m_posOld |
Auxiliar point. More... | |
te::gm::LineString * | m_route |
The input path in world coordenates. More... | |
int | m_SRID |
The input route srid. More... | |
QVector< te::dt::TimeInstant > | m_time |
The input time. More... | |
QString | m_title |
The icon item title. More... | |
Properties | |
QPointF | pos |
This class is a dialog for the Trajectory Icon Item.
Definition at line 58 of file TrajectoryItem.h.
te::qt::widgets::TrajectoryItem::TrajectoryItem | ( | const QString & | title, |
te::qt::widgets::MapDisplay * | display, | ||
const QString & | file, | ||
const QSize & | size | ||
) |
Constructor It constructs a Trajectory Icon Item.
title | The icon item title. |
display | Where the icon item is displayed. |
file | The icon file. |
size | icon size. |
Definition at line 16 of file TrajectoryItem.cpp.
References m_iconSize, and te::qt::widgets::AnimationItem::setMatrix().
|
virtual |
Destructor It destructs a Trajectory Icon Item.
Definition at line 58 of file TrajectoryItem.cpp.
|
virtual |
Create route points making reprojection if necessary.
Reimplemented from te::qt::widgets::AnimationItem.
Definition at line 62 of file TrajectoryItem.cpp.
References te::qt::widgets::AnimationItem::createAnimationDataInDisplayProjection().
|
virtual |
Draw the trajectory long trail. It draws the beginning until the current time. The beginning depends on the direction (forward or backward).
Implements te::qt::widgets::AnimationItem.
Definition at line 268 of file TrajectoryItem.cpp.
References te::qt::widgets::AnimationScene::m_mutex, and te::qt::widgets::AnimationScene::m_trajectoryPixmap.
|
virtual |
Draw a piece of tracktrajectory trail. It draws from the previous time to the current time.
curTime The trajectory current time.
Implements te::qt::widgets::AnimationItem.
Definition at line 156 of file TrajectoryItem.cpp.
References te::qt::widgets::AnimationScene::m_mutex, and te::qt::widgets::AnimationScene::m_trajectoryPixmap.
|
virtual |
erase a piece of tracktrajectory trail.
curTime The trajectory current time.
Implements te::qt::widgets::AnimationItem.
Definition at line 214 of file TrajectoryItem.cpp.
References te::qt::widgets::AnimationScene::m_mutex, and te::qt::widgets::AnimationScene::m_trajectoryPixmap.
|
inherited |
Gets the Animation Item direction.
Definition at line 70 of file AnimationItem.cpp.
|
inherited |
Gets the Animation Item duration.
Definition at line 65 of file AnimationItem.cpp.
|
inherited |
It returns the Animation Item position in device coordinate.
Definition at line 44 of file AnimationItem.cpp.
Referenced by te::qt::widgets::TimeSliderWidget::onDisplayPaintEvent().
|
virtual |
Paint a piece of trajectory trail.
Implements te::qt::widgets::AnimationItem.
Definition at line 67 of file TrajectoryItem.cpp.
References te::gm::Envelope::getHeight(), te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), te::gm::Envelope::getWidth(), te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::gm::Envelope::m_urx, and te::gm::Envelope::m_ury.
|
inherited |
Sets the Animation Item direction.
direction | The Animation Item direction. |
Definition at line 59 of file AnimationItem.cpp.
Referenced by te::qt::widgets::TimeSliderWidget::setDirection().
|
inherited |
Sets the Animation Item duration.
duration | The Animation Item duration. |
Definition at line 49 of file AnimationItem.cpp.
Referenced by te::qt::widgets::TimeSliderWidget::setDirection(), and te::qt::widgets::AnimationScene::setDuration().
|
inherited |
It sets the internal matrix.
Definition at line 33 of file AnimationItem.cpp.
References te::qt::widgets::Canvas::calcAspectRatio(), te::qt::widgets::Canvas::getMatrix(), te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, and te::qt::widgets::Canvas::setWindow().
Referenced by te::qt::widgets::PixmapItem::PixmapItem(), te::qt::widgets::AnimationScene::setMatrix(), and TrajectoryItem().
|
inherited |
The animation this item.
Definition at line 157 of file AnimationItem.h.
Referenced by te::qt::widgets::Animation::Animation(), te::qt::widgets::TimeSliderWidget::calculateSpatialExtent(), te::qt::widgets::TimeSliderWidget::calculateTemporalExtent(), te::qt::widgets::TimeSliderWidget::createAnimations(), te::qt::widgets::TimeSliderWidget::dropAction(), and te::qt::widgets::TimeSliderWidget::removeAnimation().
|
inherited |
The path coordenates in map display projection. It contains only the portions to be animated.
Definition at line 150 of file AnimationItem.h.
Referenced by te::qt::widgets::Animation::setDataKeyValues().
|
inherited |
The animation time. It contains only the portions to be animated.
Definition at line 148 of file AnimationItem.h.
Referenced by te::qt::widgets::Animation::getAnimationDataIndex(), te::qt::widgets::TimeSliderWidget::onDisplayPaintEvent(), and te::qt::widgets::Animation::setDataKeyValues().
|
inherited |
True if automatic pan over this item.
Definition at line 152 of file AnimationItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::adjustTrajectoryGroupBox(), and te::qt::widgets::AnimationScene::setAutomaticPan().
QColor te::qt::widgets::TrajectoryItem::m_backwardColor |
The backward trail color.
Definition at line 118 of file TrajectoryItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::adjustTrajectoryGroupBox(), and te::qt::widgets::TimeSliderWidget::eventFilter().
|
inherited |
Current time (ms). Its value is between 0 and the total duration.
Definition at line 154 of file AnimationItem.h.
Referenced by te::qt::widgets::AnimationScene::draw().
|
inherited |
The direction.
Definition at line 159 of file AnimationItem.h.
|
inherited |
Indicates where the icon item is displayed.
Definition at line 144 of file AnimationItem.h.
bool te::qt::widgets::TrajectoryItem::m_drawTrail |
flag to draw trail
Definition at line 116 of file TrajectoryItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::adjustTrajectoryGroupBox(), and te::qt::widgets::TimeSliderWidget::onDrawTrailCheckBoxClicked().
|
inherited |
The duration this item.
Definition at line 158 of file AnimationItem.h.
bool te::qt::widgets::TrajectoryItem::m_erasePerfectly |
flag to erase trajectory piece perfectly (default = false).
Definition at line 120 of file TrajectoryItem.h.
QColor te::qt::widgets::TrajectoryItem::m_forwardColor |
The forward trail color.
Definition at line 117 of file TrajectoryItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::adjustTrajectoryGroupBox(), and te::qt::widgets::TimeSliderWidget::eventFilter().
QString te::qt::widgets::TrajectoryItem::m_iconFile |
file that generated the pixmap
Definition at line 114 of file TrajectoryItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::eventFilter(), te::qt::widgets::TimeSliderWidget::onHeightValueChanged(), and te::qt::widgets::TimeSliderWidget::onWidthValueChanged().
QSize te::qt::widgets::TrajectoryItem::m_iconSize |
icon size
Definition at line 115 of file TrajectoryItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::eventFilter(), te::qt::widgets::TimeSliderWidget::onHeightValueChanged(), te::qt::widgets::TimeSliderWidget::onWidthValueChanged(), and TrajectoryItem().
int te::qt::widgets::TrajectoryItem::m_lineWidth |
The route/trail line width in pixels.
Definition at line 119 of file TrajectoryItem.h.
|
inherited |
The display transformation matrix.
Definition at line 151 of file AnimationItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::drawPixmapItem().
|
inherited |
Normalized final time (between 0 and 1).
Definition at line 156 of file AnimationItem.h.
Referenced by te::qt::widgets::Animation::setDataKeyValues().
|
inherited |
Normalized initial time (between 0 and 1).
Definition at line 155 of file AnimationItem.h.
Referenced by te::qt::widgets::Animation::setDataKeyValues().
|
inherited |
Opacity.
Definition at line 160 of file AnimationItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::drawPixmapItem(), te::qt::widgets::TimeSliderWidget::drawTrajectoryIcon(), te::qt::widgets::TimeSliderWidget::onAnimationComboBoxActivated(), and te::qt::widgets::TimeSliderWidget::onOpacityValueChanged().
|
inherited |
the range is between 0.05 and 0.5
Definition at line 153 of file AnimationItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::adjustTrajectoryGroupBox(), and te::qt::widgets::TimeSliderWidget::onPanFactorValueChanged().
|
inherited |
The icon position.
Definition at line 146 of file AnimationItem.h.
QPointF te::qt::widgets::TrajectoryItem::m_posOld |
Auxiliar point.
Definition at line 121 of file TrajectoryItem.h.
|
inherited |
The input path in world coordenates.
Definition at line 149 of file AnimationItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::addTrajectory(), te::qt::widgets::TimeSliderWidget::getEtaMetadata(), te::qt::widgets::TimeSliderWidget::getGoesMetadata(), te::qt::widgets::TimeSliderWidget::getHidroMetadata(), and te::qt::widgets::TimeSliderWidget::getTemporalImageMetadata().
|
inherited |
The input route srid.
Definition at line 145 of file AnimationItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::addTrajectory(), te::qt::widgets::TimeSliderWidget::calculateSpatialExtent(), te::qt::widgets::TimeSliderWidget::getEtaCtlParameters(), te::qt::widgets::TimeSliderWidget::getEtaMetadata(), te::qt::widgets::TimeSliderWidget::getGoesMetadata(), te::qt::widgets::TimeSliderWidget::getHidroCtlParameters(), te::qt::widgets::TimeSliderWidget::getHidroMetadata(), te::qt::widgets::TimeSliderWidget::getTemporalImageCtlParameters(), te::qt::widgets::TimeSliderWidget::getTemporalImageMetadata(), and te::qt::widgets::TimeSliderWidget::TimeSliderWidget().
|
inherited |
The input time.
Definition at line 147 of file AnimationItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::addTrajectory(), te::qt::widgets::TimeSliderWidget::getEtaMetadata(), te::qt::widgets::TimeSliderWidget::getGoesMetadata(), te::qt::widgets::TimeSliderWidget::getHidroMetadata(), te::qt::widgets::TimeSliderWidget::getTemporalImageMetadata(), and te::qt::widgets::TimeSliderWidget::onAnimationComboBoxActivated().
|
inherited |
The icon item title.
Definition at line 143 of file AnimationItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::eventFilter(), te::qt::widgets::TimeSliderWidget::onAnimationComboBoxActivated(), te::qt::widgets::TimeSliderWidget::onBackPushButtonClicked(), te::qt::widgets::TimeSliderWidget::onDrawTrailCheckBoxClicked(), te::qt::widgets::TimeSliderWidget::onFrontPushButtonClicked(), te::qt::widgets::TimeSliderWidget::onHeightValueChanged(), te::qt::widgets::TimeSliderWidget::onOpacityValueChanged(), te::qt::widgets::TimeSliderWidget::onWidthValueChanged(), te::qt::widgets::TimeSliderWidget::removeAnimation(), and te::qt::widgets::AnimationScene::setAutomaticPan().
|
readwriteinherited |
Definition at line 60 of file AnimationItem.h.