All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::qt::widgets::AnimationItem Class Referenceabstract

This class is a dialog for the Pixmap Item. More...

#include <AnimationItem.h>

Inheritance diagram for te::qt::widgets::AnimationItem:
te::qt::widgets::PixmapItem te::qt::widgets::TrajectoryItem

Public Member Functions

 AnimationItem (const QString &title, te::qt::widgets::MapDisplay *display)
 Constructor It constructs a Animation Item. More...
 
virtual void createAnimationDataInDisplayProjection ()
 Create Animation Item making reprojection if necessary. 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...
 
void setMatrix ()
 It sets the internal matrix. More...
 
virtual ~AnimationItem ()
 Destructor It destructs a Animation Item. More...
 

Public Attributes

Animationm_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::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.05 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

This class is a dialog for the Pixmap Item.

Definition at line 57 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.

Definition at line 14 of file AnimationItem.cpp.

te::qt::widgets::AnimationItem::~AnimationItem ( )
virtual

Destructor It destructs a Animation Item.

Definition at line 28 of file AnimationItem.cpp.

Member Function Documentation

virtual void te::qt::widgets::AnimationItem::draw ( )
pure virtual
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::PixmapItem, 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::PixmapItem, and te::qt::widgets::TrajectoryItem.

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

Gets the Animation Item direction.

Returns
The Animation Item direction.

Definition at line 70 of file AnimationItem.cpp.

unsigned int te::qt::widgets::AnimationItem::getDuration ( )

Gets the Animation Item duration.

Returns
The Animation Item duration.

Definition at line 65 of file AnimationItem.cpp.

QPoint te::qt::widgets::AnimationItem::getPosInDeviceCoordinate ( )

It returns the Animation Item position in device coordinate.

Returns
Position in device coordinate.

Definition at line 44 of file AnimationItem.cpp.

Referenced by te::qt::widgets::TimeSliderWidget::onDisplayPaintEvent().

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.

Definition at line 59 of file AnimationItem.cpp.

Referenced by te::qt::widgets::TimeSliderWidget::setDirection().

void te::qt::widgets::AnimationItem::setDuration ( const unsigned int &  duration)

Sets the Animation Item duration.

Parameters
durationThe Animation Item duration.

Definition at line 49 of file AnimationItem.cpp.

Referenced by te::qt::widgets::TimeSliderWidget::setDirection(), and te::qt::widgets::AnimationScene::setDuration().

Member Data Documentation

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

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().

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.

Referenced by te::qt::widgets::Animation::getAnimationDataIndex(), te::qt::widgets::TimeSliderWidget::onDisplayPaintEvent(), and te::qt::widgets::Animation::setDataKeyValues().

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

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().

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.

Referenced by te::qt::widgets::AnimationScene::draw().

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.

Referenced by te::qt::widgets::TimeSliderWidget::drawPixmapItem().

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

Normalized final time (between 0 and 1).

Definition at line 156 of file AnimationItem.h.

Referenced by te::qt::widgets::Animation::setDataKeyValues().

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

Normalized initial time (between 0 and 1).

Definition at line 155 of file AnimationItem.h.

Referenced by te::qt::widgets::Animation::setDataKeyValues().

double te::qt::widgets::AnimationItem::m_panFactor
QPointF te::qt::widgets::AnimationItem::m_pos

The icon position.

Definition at line 146 of file AnimationItem.h.

Property Documentation

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

Definition at line 60 of file AnimationItem.h.


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