te::qt::widgets::AnimationItem Class Referenceabstract

An abstract class for Animation Item. More...

#include <AnimationItem.h>

Inheritance diagram for te::qt::widgets::AnimationItem:
te::qt::widgets::ImageItem te::qt::widgets::TrajectoryItem te::qt::widgets::Eta5kmItem te::qt::widgets::GoesItem te::qt::widgets::HidroItem te::qt::widgets::QtKnowItem

Public Member Functions

virtual void adjustDataToAnimationTemporalExtent ()
 Adjust data for a given time animation period. More...
 
 AnimationItem (const QString &title, te::qt::widgets::MapDisplay *display)
 Constructor It constructs a Animation Item. More...
 
virtual void draw ()=0
 If draw item. More...
 
virtual void drawForward (const unsigned int &curTime)=0
 It draws a piece of tracktrajectory trail or draws the current pixmap item. More...
 
virtual void erase (const unsigned int &curTime)=0
 It erases a piece of tracktrajectory trail or draws the current pixmap item. 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...
 
virtual void paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *)=0
 Paint a Animation 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...
 
virtual ~AnimationItem ()
 Destructor It destructs a Animation Item. More...
 

Public Attributes

Animationm_animation
 The animation this item. More...
 
QVector< QPointF > m_animationRoute
 It contains only the portions to be animated. More...
 
QVector< te::dt::TimeInstantm_animationTime
 The animation time. It contains only the portions to be animated. More...
 
bool m_automaticPan
 True if automatic pan over this item. 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::MapDisplaym_display
 Indicates where the icon item is displayed. More...
 
unsigned int m_duration
 The duration this item. 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.002 and 0.5 More...
 
QPointF m_pos
 The icon position. More...
 
te::gm::LineStringm_route
 The input path in world coordenates. More...
 
int m_SRID
 The input route srid. More...
 
QVector< te::dt::TimeInstantm_time
 The input time. More...
 
QString m_title
 The icon item title. More...
 

Properties

QPointF pos
 

Detailed Description

An abstract class for Animation Item.

It is the base class that stores data of time and route.

See also
ImageItem, TrajectoryItem

Definition at line 62 of file AnimationItem.h.

Constructor & Destructor Documentation

te::qt::widgets::AnimationItem::AnimationItem ( const QString &  title,
te::qt::widgets::MapDisplay display 
)

Constructor It constructs a Animation Item.

Parameters
titleThe Animation Item title.
displayWhere the Animation Item is displayed.
virtual te::qt::widgets::AnimationItem::~AnimationItem ( )
virtual

Destructor It destructs a Animation Item.

Member Function Documentation

virtual void te::qt::widgets::AnimationItem::adjustDataToAnimationTemporalExtent ( )
virtual

Adjust data for a given time animation period.

Reimplemented in te::qt::widgets::ImageItem.

virtual void te::qt::widgets::AnimationItem::draw ( )
pure virtual

If draw item.

Implemented in te::qt::widgets::ImageItem, and te::qt::widgets::TrajectoryItem.

virtual void te::qt::widgets::AnimationItem::drawForward ( const unsigned int &  curTime)
pure virtual

It draws a piece of tracktrajectory trail or draws the current pixmap item.

curTime The Animation Item current time.

Implemented in te::qt::widgets::ImageItem, and te::qt::widgets::TrajectoryItem.

virtual void te::qt::widgets::AnimationItem::erase ( const unsigned int &  curTime)
pure virtual

It erases a piece of tracktrajectory trail or draws the current pixmap item.

curTime The Animation Item current time.

Implemented in te::qt::widgets::ImageItem, and te::qt::widgets::TrajectoryItem.

QAbstractAnimation::Direction te::qt::widgets::AnimationItem::getDirection ( )

Gets the Animation Item direction.

Returns
The Animation Item direction.
unsigned int te::qt::widgets::AnimationItem::getDuration ( )

Gets the Animation Item duration.

Returns
The Animation Item duration.
QPoint te::qt::widgets::AnimationItem::getPosInDeviceCoordinate ( )

It returns the Animation Item position in device coordinate.

Returns
Position in device coordinate.
virtual void te::qt::widgets::AnimationItem::paint ( QPainter *  ,
const QStyleOptionGraphicsItem *  ,
QWidget *   
)
pure virtual
void te::qt::widgets::AnimationItem::setDirection ( const QAbstractAnimation::Direction &  direction)

Sets the Animation Item direction.

Parameters
directionThe Animation Item direction.
void te::qt::widgets::AnimationItem::setDuration ( const unsigned int &  duration)

Sets the Animation Item duration.

Parameters
durationThe Animation Item duration.

Member Data Documentation

Animation* te::qt::widgets::AnimationItem::m_animation

The animation this item.

Definition at line 157 of file AnimationItem.h.

QVector<QPointF> te::qt::widgets::AnimationItem::m_animationRoute

It contains only the portions to be animated.

Definition at line 150 of file AnimationItem.h.

QVector<te::dt::TimeInstant> te::qt::widgets::AnimationItem::m_animationTime

The animation time. It contains only the portions to be animated.

Definition at line 148 of file AnimationItem.h.

bool te::qt::widgets::AnimationItem::m_automaticPan

True if automatic pan over this item.

Definition at line 152 of file AnimationItem.h.

unsigned int te::qt::widgets::AnimationItem::m_curTimeDuration

Current time (ms). Its value is between 0 and the total duration.

Definition at line 154 of file AnimationItem.h.

QAbstractAnimation::Direction te::qt::widgets::AnimationItem::m_direction

The direction.

Definition at line 159 of file AnimationItem.h.

te::qt::widgets::MapDisplay* te::qt::widgets::AnimationItem::m_display

Indicates where the icon item is displayed.

Definition at line 144 of file AnimationItem.h.

unsigned int te::qt::widgets::AnimationItem::m_duration

The duration this item.

Definition at line 158 of file AnimationItem.h.

QMatrix te::qt::widgets::AnimationItem::m_matrix

The display transformation matrix.

Definition at line 151 of file AnimationItem.h.

double te::qt::widgets::AnimationItem::m_norFinalTime

Normalized final time (between 0 and 1).

Definition at line 156 of file AnimationItem.h.

double te::qt::widgets::AnimationItem::m_norInitialTime

Normalized initial time (between 0 and 1).

Definition at line 155 of file AnimationItem.h.

int te::qt::widgets::AnimationItem::m_opacity

Opacity.

Definition at line 160 of file AnimationItem.h.

double te::qt::widgets::AnimationItem::m_panFactor

the range is between 0.002 and 0.5

Definition at line 153 of file AnimationItem.h.

QPointF te::qt::widgets::AnimationItem::m_pos

The icon position.

Definition at line 146 of file AnimationItem.h.

te::gm::LineString* te::qt::widgets::AnimationItem::m_route

The input path in world coordenates.

Definition at line 149 of file AnimationItem.h.

int te::qt::widgets::AnimationItem::m_SRID

The input route srid.

Definition at line 145 of file AnimationItem.h.

QVector<te::dt::TimeInstant> te::qt::widgets::AnimationItem::m_time

The input time.

Definition at line 147 of file AnimationItem.h.

QString te::qt::widgets::AnimationItem::m_title

The icon item title.

Definition at line 143 of file AnimationItem.h.

Property Documentation

QPointF te::qt::widgets::AnimationItem::pos
readwrite

Definition at line 65 of file AnimationItem.h.


The documentation for this class was generated from the following file: