#include <Eta5kmItem.h>
Public Member Functions | |
void | adjustDataToAnimationTemporalExtent () |
Adjust data for a given time animation period. More... | |
void | calculateCurrentFile (const unsigned int &curTime) |
Calculate current file. More... | |
void | draw () |
Draw the current image item. More... | |
virtual void | drawCurrentImage (QPainter *p) |
Get current image. More... | |
void | drawForward (const unsigned int &curTime) |
Draw current image item. curTime The animation current time. More... | |
void | erase (const unsigned int &curTime) |
Draw current image item. curTime The animation current time. More... | |
Eta5kmItem () | |
Empty Constructor. More... | |
Eta5kmItem (const QString &title, const QString &folder, te::qt::widgets::MapDisplay *display) | |
Constructor It constructs a Eta5km Item. More... | |
void | generateRoute () |
It generate the raster route. 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 image 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 | tryDoReprojectionUsingAffineTransform (QPainter *painter) |
It try do reprojection using affine transfom. For small areas it gives a good result, however, for larger areas the result is not good. More... | |
virtual | ~Eta5kmItem () |
Destructor It destructs a Eta5km 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 |
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... | |
QImage * | m_image |
current image 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.002 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 |
Private Member Functions | |
bool | getCtlParameters () |
Get control parameters. More... | |
te::dt::TimeInstant | getTime (QString file) |
Get time of the raster data. More... | |
void | loadCurrentImage () |
Load current image. More... | |
bool | loadData () |
Load temporal raster data. More... | |
void | setLUT () |
Sets the default LUT. More... | |
Definition at line 41 of file Eta5kmItem.h.
te::qt::widgets::Eta5kmItem::Eta5kmItem | ( | ) |
Empty Constructor.
Definition at line 13 of file Eta5kmItem.cpp.
te::qt::widgets::Eta5kmItem::Eta5kmItem | ( | const QString & | title, |
const QString & | folder, | ||
te::qt::widgets::MapDisplay * | display | ||
) |
Constructor It constructs a Eta5km Item.
title | The item title. |
folder | The absolute folder path name. |
display | Where the item is displayed. |
Definition at line 18 of file Eta5kmItem.cpp.
|
virtual |
Destructor It destructs a Eta5km Item.
Definition at line 23 of file Eta5kmItem.cpp.
|
virtualinherited |
Adjust data for a given time animation period.
Reimplemented from te::qt::widgets::AnimationItem.
Definition at line 343 of file ImageItem.cpp.
References te::qt::widgets::AnimationItem::adjustDataToAnimationTemporalExtent().
|
inherited |
Calculate current file.
curTime | current time |
Definition at line 413 of file ImageItem.cpp.
|
virtualinherited |
Draw the current image item.
Implements te::qt::widgets::AnimationItem.
Definition at line 407 of file ImageItem.cpp.
|
virtualinherited |
Get current image.
p Pointer to QPainter. r Image rect in device coordinate. ima Pointer to QImage.
Definition at line 187 of file ImageItem.cpp.
Referenced by te::qt::widgets::TimeSliderWidget::onDisplayPaintEvent().
|
virtualinherited |
Draw current image item. curTime The animation current time.
Implements te::qt::widgets::AnimationItem.
Definition at line 394 of file ImageItem.cpp.
|
virtualinherited |
Draw current image item. curTime The animation current time.
Implements te::qt::widgets::AnimationItem.
Definition at line 402 of file ImageItem.cpp.
|
inherited |
It generate the raster route.
animation The animation control.
count | The temporal data size. |
Definition at line 465 of file ImageItem.cpp.
References te::gm::LineStringType.
|
privatevirtual |
Get control parameters.
Reimplemented from te::qt::widgets::ImageItem.
Definition at line 84 of file Eta5kmItem.cpp.
|
inherited |
Gets the Animation Item direction.
Definition at line 67 of file AnimationItem.cpp.
|
inherited |
Gets the Animation Item duration.
Definition at line 62 of file AnimationItem.cpp.
|
inherited |
It returns the Animation Item position in device coordinate.
Definition at line 33 of file AnimationItem.cpp.
References TE_UNKNOWN_SRS, and te::gm::AbstractPoint::transform().
|
inherited |
It gets image rect in device coordinate.
Definition at line 428 of file ImageItem.cpp.
References TE_UNKNOWN_SRS, and te::gm::Envelope::transform().
Referenced by te::qt::widgets::TimeSliderWidget::onDisplayPaintEvent().
|
privatevirtual |
Get time of the raster data.
file raster data file name.
The time instant.
Implements te::qt::widgets::ImageItem.
Definition at line 223 of file Eta5kmItem.cpp.
|
privatevirtual |
Load current image.
pointer to current image.
Reimplemented from te::qt::widgets::ImageItem.
Definition at line 160 of file Eta5kmItem.cpp.
|
privatevirtual |
Load temporal raster data.
True if success.
Reimplemented from te::qt::widgets::ImageItem.
Definition at line 27 of file Eta5kmItem.cpp.
References te::dt::TimeInstant::getTimeInstant().
|
virtualinherited |
Paint a image item.
Implements te::qt::widgets::AnimationItem.
Definition at line 385 of file ImageItem.cpp.
|
inherited |
Sets the Animation Item direction.
direction | The Animation Item direction. |
Definition at line 56 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 46 of file AnimationItem.cpp.
Referenced by te::qt::widgets::TimeSliderWidget::setDirection(), and te::qt::widgets::AnimationScene::setDuration().
|
inherited |
Definition at line 41 of file ImageItem.cpp.
References te::gm::Envelope::getHeight(), te::gm::Envelope::getWidth(), te::gm::Envelope::m_llx, and te::gm::Envelope::m_lly.
|
private |
Sets the default LUT.
Definition at line 238 of file Eta5kmItem.cpp.
References te::qt::widgets::ImageItem::setLUT().
|
inherited |
Sets the LUT. tab The LUT information.
Definition at line 441 of file ImageItem.cpp.
Referenced by setLUT(), and te::qt::widgets::HidroItem::setLUT().
|
inherited |
It try do reprojection using affine transfom. For small areas it gives a good result, however, for larger areas the result is not good.
painter | Painter that will be configured to try do reprojection. |
Definition at line 244 of file ImageItem.cpp.
References te::gm::LineString::getPointN(), te::gm::Point::getX(), te::gm::Point::getY(), te::gm::LineStringType, PI, te::gm::LineString::setPoint(), TE_UNKNOWN_SRS, and te::gm::LineString::transform().
|
inherited |
The animation this item.
Definition at line 157 of file AnimationItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::addTemporalImages(), te::qt::widgets::Animation::Animation(), te::qt::widgets::TimeSliderWidget::calculateAllSpatialExtent(), te::qt::widgets::TimeSliderWidget::calculateAllTemporalExtent(), te::qt::widgets::TimeSliderWidget::createAnimations(), te::qt::widgets::TimeSliderWidget::dropAction(), and te::qt::widgets::TimeSliderWidget::removeAnimation().
|
inherited |
The png files in display projection. It contains only the portions to be animated.
Definition at line 197 of file ImageItem.h.
|
inherited |
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::adjustPropertyDialog(), and te::qt::widgets::TimeSliderWidget::onAutoPanCheckBoxClicked().
|
inherited |
Base file name.
Definition at line 200 of file ImageItem.h.
Referenced by te::qt::widgets::ImageItem::ImageItem().
|
inherited |
Image to be displayed on paint event animation.
Definition at line 198 of file ImageItem.h.
|
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 image data directory.
Definition at line 192 of file ImageItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::addTemporalImages(), te::qt::widgets::TimeSliderWidget::coverageAlreadyExists(), te::qt::widgets::TimeSliderWidget::eventFilter(), te::qt::widgets::ImageItem::ImageItem(), te::qt::widgets::TimeSliderWidget::onBackPushButtonClicked(), te::qt::widgets::TimeSliderWidget::onFrontPushButtonClicked(), te::qt::widgets::TimeSliderWidget::onOpacityValueChanged(), and te::qt::widgets::TimeSliderWidget::removeAnimation().
|
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.
|
inherited |
The input files.
Definition at line 196 of file ImageItem.h.
|
inherited |
current image
Definition at line 199 of file ImageItem.h.
|
inherited |
Center of the image.
Definition at line 204 of file ImageItem.h.
|
inherited |
Image location.
Definition at line 202 of file ImageItem.h.
|
inherited |
LUT.
Definition at line 203 of file ImageItem.h.
Referenced by te::qt::widgets::ImageItem::ImageItem().
|
inherited |
The display transformation matrix.
Definition at line 151 of file AnimationItem.h.
Referenced by te::qt::widgets::AnimationView::setMatrix().
|
inherited |
number of colunms.
Definition at line 194 of file ImageItem.h.
|
inherited |
number of lines.
Definition at line 193 of file ImageItem.h.
|
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::onAnimationComboBoxActivated(), and te::qt::widgets::TimeSliderWidget::onOpacityValueChanged().
|
inherited |
the range is between 0.002 and 0.5
Definition at line 153 of file AnimationItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::adjustPropertyDialog(), 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.
|
inherited |
The input route srid.
Definition at line 145 of file AnimationItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::calculateAllSpatialExtent(), and te::qt::widgets::TimeSliderWidget::TimeSliderWidget().
|
inherited |
File suffix.
Definition at line 201 of file ImageItem.h.
Referenced by te::qt::widgets::ImageItem::ImageItem().
|
inherited |
The input time.
Definition at line 147 of file AnimationItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::onAnimationComboBoxActivated().
|
inherited |
The icon item title.
Definition at line 143 of file AnimationItem.h.
Referenced by te::qt::widgets::TimeSliderWidget::coverageAlreadyExists(), and te::qt::widgets::TimeSliderWidget::trajectoryAlreadyExists().
|
inherited |
undef value.
Definition at line 195 of file ImageItem.h.
|
readwriteinherited |
Definition at line 65 of file AnimationItem.h.