#include <PixmapItem.h>
Public Member Functions | |
void | calculateCurrentFile (const unsigned int &curTime) |
Calculate current file. More... | |
void | createAnimationDataInDisplayProjection () |
Create images making reprojection if necessary. More... | |
void | draw () |
Draw the current pixmap item. More... | |
void | drawForward (const unsigned int &curTime) |
Draw current pixmap item. curTime The animation current time. More... | |
void | erase (const unsigned int &curTime) |
Draw current pixmap item. curTime The animation current time. 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... | |
QRect | getRect () |
It gets image rect in device coordinate. More... | |
void | paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *) |
Paint a pixmap item. More... | |
PixmapItem () | |
Empty Constructor. More... | |
PixmapItem (const QString &title, const QString &file, te::qt::widgets::MapDisplay *display) | |
Constructor It constructs a Pixmap Item. 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 | setImagePosition (const QPointF &p, const QRectF &dr) |
void | setLUT (const std::vector< std::pair< int, QColor > > &tab) |
Sets the LUT. tab The LUT information. More... | |
void | setMatrix () |
It sets the internal matrix. More... | |
virtual | ~PixmapItem () |
Destructor It destructs a Pixmap Item. More... | |
Public Attributes | |
Animation * | m_animation |
The animation this item. More... | |
QVector< QString > | m_animationFiles |
The png files in display projection. It contains only the portions to be animated. 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... | |
QString | m_baseFile |
Base file name. More... | |
QString | m_currentImageFile |
Image to be displayed on paint event animation. More... | |
unsigned int | m_curTimeDuration |
Current time (ms). Its value is between 0 and the total duration. More... | |
QDir | m_dir |
The image data directory. More... | |
QAbstractAnimation::Direction | m_direction |
The direction. More... | |
te::qt::widgets::MapDisplay * | m_display |
Indicates where the icon item is displayed. More... | |
unsigned int | m_duration |
The duration this item. More... | |
QVector< QString > | m_files |
The input files. More... | |
QPointF | m_imageCenterPos |
Center of the image. More... | |
QRectF | m_imaRect |
Image location. More... | |
std::map< uchar, QColor > | m_lut |
LUT. More... | |
QMatrix | m_matrix |
The display transformation matrix. More... | |
size_t | m_ncols |
number of colunms. More... | |
size_t | m_nlines |
number of lines. 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... | |
te::gm::LineString * | m_route |
The input path in world coordenates. More... | |
int | m_SRID |
The input route srid. More... | |
QString | m_suffix |
File suffix. More... | |
QVector< te::dt::TimeInstant > | m_time |
The input time. More... | |
QString | m_title |
The icon item title. More... | |
float | m_undef |
undef value. More... | |
Properties | |
QPointF | pos |
Definition at line 61 of file PixmapItem.h.
te::qt::widgets::PixmapItem::PixmapItem | ( | ) |
Empty Constructor.
Definition at line 13 of file PixmapItem.cpp.
te::qt::widgets::PixmapItem::PixmapItem | ( | const QString & | title, |
const QString & | file, | ||
te::qt::widgets::MapDisplay * | display | ||
) |
Constructor It constructs a Pixmap Item.
title | The pixmap item title. |
file | The absolute file path name. |
display | Where the pixmap item is displayed. |
Definition at line 18 of file PixmapItem.cpp.
References m_baseFile, m_dir, m_lut, m_suffix, and te::qt::widgets::AnimationItem::setMatrix().
|
virtual |
Destructor It destructs a Pixmap Item.
Definition at line 36 of file PixmapItem.cpp.
void te::qt::widgets::PixmapItem::calculateCurrentFile | ( | const unsigned int & | curTime | ) |
Calculate current file.
curTime | current time |
Definition at line 127 of file PixmapItem.cpp.
|
virtual |
Create images making reprojection if necessary.
Reimplemented from te::qt::widgets::AnimationItem.
Definition at line 55 of file PixmapItem.cpp.
References te::qt::widgets::AnimationItem::createAnimationDataInDisplayProjection(), and te::gm::Envelope::transform().
|
virtual |
Draw the current pixmap item.
Implements te::qt::widgets::AnimationItem.
Definition at line 121 of file PixmapItem.cpp.
|
virtual |
Draw current pixmap item. curTime The animation current time.
Implements te::qt::widgets::AnimationItem.
Definition at line 108 of file PixmapItem.cpp.
|
virtual |
Draw current pixmap item. curTime The animation current time.
Implements te::qt::widgets::AnimationItem.
Definition at line 116 of file PixmapItem.cpp.
|
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().
QRect te::qt::widgets::PixmapItem::getRect | ( | ) |
It gets image rect in device coordinate.
Definition at line 136 of file PixmapItem.cpp.
|
virtual |
Paint a pixmap item.
Implements te::qt::widgets::AnimationItem.
Definition at line 99 of file PixmapItem.cpp.
|
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().
void te::qt::widgets::PixmapItem::setImagePosition | ( | const QPointF & | p, |
const QRectF & | dr | ||
) |
Definition at line 40 of file PixmapItem.cpp.
References te::gm::Envelope::getHeight(), te::gm::Envelope::getWidth(), te::gm::Envelope::m_llx, and te::gm::Envelope::m_lly.
void te::qt::widgets::PixmapItem::setLUT | ( | const std::vector< std::pair< int, QColor > > & | tab | ) |
Sets the LUT. tab The LUT information.
Definition at line 142 of file PixmapItem.cpp.
Referenced by te::qt::widgets::TimeSliderWidget::setEtaLUT(), and te::qt::widgets::TimeSliderWidget::setHidroLUT().
|
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 PixmapItem(), te::qt::widgets::AnimationScene::setMatrix(), and te::qt::widgets::TrajectoryItem::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().
QVector<QString> te::qt::widgets::PixmapItem::m_animationFiles |
The png files in display projection. It contains only the portions to be animated.
Definition at line 141 of file PixmapItem.h.
|
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().
QString te::qt::widgets::PixmapItem::m_baseFile |
QString te::qt::widgets::PixmapItem::m_currentImageFile |
Image to be displayed on paint event animation.
Definition at line 142 of file PixmapItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::drawPixmapItem(), and te::qt::widgets::TimeSliderWidget::getImage().
|
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().
QDir te::qt::widgets::PixmapItem::m_dir |
The image data directory.
Definition at line 136 of file PixmapItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::getImage(), and PixmapItem().
|
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.
|
inherited |
The duration this item.
Definition at line 158 of file AnimationItem.h.
QVector<QString> te::qt::widgets::PixmapItem::m_files |
The input files.
Definition at line 140 of file PixmapItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::getEtaMetadata(), te::qt::widgets::TimeSliderWidget::getGoesMetadata(), te::qt::widgets::TimeSliderWidget::getHidroMetadata(), and te::qt::widgets::TimeSliderWidget::getTemporalImageMetadata().
QPointF te::qt::widgets::PixmapItem::m_imageCenterPos |
Center of the image.
Definition at line 147 of file PixmapItem.h.
QRectF te::qt::widgets::PixmapItem::m_imaRect |
Image location.
Definition at line 145 of file PixmapItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::drawPixmapItem(), 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(), and te::qt::widgets::TimeSliderWidget::getTemporalImageMetadata().
std::map<uchar, QColor> te::qt::widgets::PixmapItem::m_lut |
LUT.
Definition at line 146 of file PixmapItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::getImage(), and PixmapItem().
|
inherited |
The display transformation matrix.
Definition at line 151 of file AnimationItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::drawPixmapItem().
size_t te::qt::widgets::PixmapItem::m_ncols |
number of colunms.
Definition at line 138 of file PixmapItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::getEtaCtlParameters(), te::qt::widgets::TimeSliderWidget::getHidroCtlParameters(), and te::qt::widgets::TimeSliderWidget::getImage().
size_t te::qt::widgets::PixmapItem::m_nlines |
number of lines.
Definition at line 137 of file PixmapItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::getEtaCtlParameters(), te::qt::widgets::TimeSliderWidget::getHidroCtlParameters(), and te::qt::widgets::TimeSliderWidget::getImage().
|
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.
|
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().
QString te::qt::widgets::PixmapItem::m_suffix |
File suffix.
Definition at line 144 of file PixmapItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::getGoesMetadata(), te::qt::widgets::TimeSliderWidget::getImage(), te::qt::widgets::TimeSliderWidget::getTemporalImageCtlParameters(), te::qt::widgets::TimeSliderWidget::getTemporalImageMetadata(), and PixmapItem().
|
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().
float te::qt::widgets::PixmapItem::m_undef |
undef value.
Definition at line 139 of file PixmapItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::getEtaCtlParameters(), te::qt::widgets::TimeSliderWidget::getHidroCtlParameters(), te::qt::widgets::TimeSliderWidget::getImage(), and te::qt::widgets::TimeSliderWidget::getTemporalImageCtlParameters().
|
readwriteinherited |
Definition at line 60 of file AnimationItem.h.