#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... | |
QString | m_preffix |
File preffix. More... | |
te::gm::LineString * | m_route |
The input path in world coordenates. More... | |
int | m_SRID |
The input route srid. More... | |
QImage | m_staticRepresentation |
Static representation of the animation. 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.
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. |
|
virtual |
Destructor It destructs a Eta5km Item.
|
virtualinherited |
Adjust data for a given time animation period.
Reimplemented from te::qt::widgets::AnimationItem.
|
inherited |
Calculate current file.
curTime | current time |
|
virtualinherited |
Draw the current image item.
Implements te::qt::widgets::AnimationItem.
|
virtualinherited |
Get current image.
p Pointer to QPainter. r Image rect in device coordinate. ima Pointer to QImage.
|
virtualinherited |
Draw current image item. curTime The animation current time.
Implements te::qt::widgets::AnimationItem.
|
virtualinherited |
Draw current image item. curTime The animation current time.
Implements te::qt::widgets::AnimationItem.
|
inherited |
It generate the raster route.
animation The animation control.
count | The temporal data size. |
|
privatevirtual |
Get control parameters.
Reimplemented from te::qt::widgets::ImageItem.
|
inherited |
|
inherited |
|
inherited |
It returns the Animation Item position in device coordinate.
|
inherited |
It gets image rect in device coordinate.
|
privatevirtual |
Get time of the raster data.
file raster data file name.
The time instant.
Implements te::qt::widgets::ImageItem.
|
privatevirtual |
|
privatevirtual |
|
virtualinherited |
Paint a image item.
Implements te::qt::widgets::AnimationItem.
|
inherited |
|
inherited |
|
inherited |
|
private |
Sets the default LUT.
|
inherited |
Sets the LUT. tab The LUT information.
|
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. |
|
inherited |
The animation this item.
Definition at line 157 of file AnimationItem.h.
|
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.
|
inherited |
The animation time. It contains only the portions to be animated.
Definition at line 148 of file AnimationItem.h.
|
inherited |
True if automatic pan over this item.
Definition at line 152 of file AnimationItem.h.
|
inherited |
Base file name.
Definition at line 200 of file ImageItem.h.
|
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.
|
inherited |
The image data directory.
Definition at line 192 of file ImageItem.h.
|
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 205 of file ImageItem.h.
|
inherited |
Image location.
Definition at line 203 of file ImageItem.h.
|
inherited |
LUT.
Definition at line 204 of file ImageItem.h.
|
inherited |
The display transformation matrix.
Definition at line 151 of file AnimationItem.h.
|
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.
|
inherited |
Normalized initial time (between 0 and 1).
Definition at line 155 of file AnimationItem.h.
|
inherited |
Opacity.
Definition at line 160 of file AnimationItem.h.
|
inherited |
the range is between 0.002 and 0.5
Definition at line 153 of file AnimationItem.h.
|
inherited |
The icon position.
Definition at line 146 of file AnimationItem.h.
|
inherited |
File preffix.
Definition at line 202 of file ImageItem.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.
|
inherited |
Static representation of the animation.
Definition at line 206 of file ImageItem.h.
|
inherited |
File suffix.
Definition at line 201 of file ImageItem.h.
|
inherited |
The input time.
Definition at line 147 of file AnimationItem.h.
|
inherited |
The icon item title.
Definition at line 143 of file AnimationItem.h.
|
inherited |
undef value.
Definition at line 195 of file ImageItem.h.
|
readwriteinherited |
Definition at line 65 of file AnimationItem.h.