te::qt::widgets::TrajectoryItem Class Reference

#include <TrajectoryItem.h>

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

Public Member Functions

virtual void adjustDataToAnimationTemporalExtent ()
 Adjust data for a given time animation period. More...
 
void draw ()
 Draw the trajectory long trail. It draws the beginning until the current time. The beginning depends on the direction (forward or backward). More...
 
void drawForward (const unsigned int &curTime)
 Draw a piece of tracktrajectory trail. It draws from the previous time to the current time. More...
 
void drawIcon (QPainter *painter)
 draw tracktrajectory icon. More...
 
void erase (const unsigned int &curTime)
 erase a piece of tracktrajectory trail. 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...
 
void paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *)
 Paint a piece of trajectory trail. 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...
 
 TrajectoryItem (const QString &title, const QString &id, te::qt::widgets::MapDisplay *display, const QString &file, const QSize &size)
 Constructor It constructs a Trajectory Icon Item. More...
 
void transformToDisplayProjection (QVector< QPointF > &vec)
 It transform coodinates to map display projection coodinates. More...
 
virtual ~TrajectoryItem ()
 Destructor It destructs a Trajectory Icon 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...
 
QColor m_backwardColor
 The backward trail color. 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...
 
bool m_doIconRotate
 do automatic icon rotate More...
 
bool m_drawTrail
 flag to draw trail More...
 
unsigned int m_duration
 The duration this item. More...
 
bool m_erasePerfectly
 flag to erase trajectory piece perfectly (default = false). More...
 
QColor m_forwardColor
 The forward trail color. More...
 
QString m_iconFile
 file that generated the pixmap More...
 
QSize m_iconSize
 icon size More...
 
QString m_layerId
 trajectory layer Id More...
 
int m_lineWidth
 The route/trail line width in pixels. 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...
 
QPointF m_posOld
 Auxiliar point. 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

Definition at line 57 of file TrajectoryItem.h.

Constructor & Destructor Documentation

te::qt::widgets::TrajectoryItem::TrajectoryItem ( const QString &  title,
const QString &  id,
te::qt::widgets::MapDisplay display,
const QString &  file,
const QSize &  size 
)

Constructor It constructs a Trajectory Icon Item.

Parameters
titleThe icon item title.
idThe trajectory layer id.
displayWhere the icon item is displayed.
fileThe icon file.
sizeicon size.
virtual te::qt::widgets::TrajectoryItem::~TrajectoryItem ( )
virtual

Destructor It destructs a Trajectory Icon Item.

Member Function Documentation

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

Adjust data for a given time animation period.

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

void te::qt::widgets::TrajectoryItem::draw ( )
virtual

Draw the trajectory long trail. It draws the beginning until the current time. The beginning depends on the direction (forward or backward).

Implements te::qt::widgets::AnimationItem.

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

Draw a piece of tracktrajectory trail. It draws from the previous time to the current time.

curTime The trajectory current time.

Implements te::qt::widgets::AnimationItem.

void te::qt::widgets::TrajectoryItem::drawIcon ( QPainter *  painter)

draw tracktrajectory icon.

painter Painter.

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

erase a piece of tracktrajectory trail.

curTime The trajectory current time.

Implements te::qt::widgets::AnimationItem.

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

Gets the Animation Item direction.

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

Gets the Animation Item duration.

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

It returns the Animation Item position in device coordinate.

Returns
Position in device coordinate.
void te::qt::widgets::TrajectoryItem::paint ( QPainter *  ,
const QStyleOptionGraphicsItem *  ,
QWidget *   
)
virtual

Paint a piece of trajectory trail.

Implements te::qt::widgets::AnimationItem.

void te::qt::widgets::AnimationItem::setDirection ( const QAbstractAnimation::Direction &  direction)
inherited

Sets the Animation Item direction.

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

Sets the Animation Item duration.

Parameters
durationThe Animation Item duration.
void te::qt::widgets::TrajectoryItem::transformToDisplayProjection ( QVector< QPointF > &  vec)

It transform coodinates to map display projection coodinates.

Parameters
vecCoordinates in native projection.

Member Data Documentation

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

The animation this item.

Definition at line 157 of file AnimationItem.h.

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

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
inherited

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
inherited

True if automatic pan over this item.

Definition at line 152 of file AnimationItem.h.

QColor te::qt::widgets::TrajectoryItem::m_backwardColor

The backward trail color.

Definition at line 127 of file TrajectoryItem.h.

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

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
inherited

The direction.

Definition at line 159 of file AnimationItem.h.

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

Indicates where the icon item is displayed.

Definition at line 144 of file AnimationItem.h.

bool te::qt::widgets::TrajectoryItem::m_doIconRotate

do automatic icon rotate

Definition at line 124 of file TrajectoryItem.h.

bool te::qt::widgets::TrajectoryItem::m_drawTrail

flag to draw trail

Definition at line 125 of file TrajectoryItem.h.

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

The duration this item.

Definition at line 158 of file AnimationItem.h.

bool te::qt::widgets::TrajectoryItem::m_erasePerfectly

flag to erase trajectory piece perfectly (default = false).

Definition at line 129 of file TrajectoryItem.h.

QColor te::qt::widgets::TrajectoryItem::m_forwardColor

The forward trail color.

Definition at line 126 of file TrajectoryItem.h.

QString te::qt::widgets::TrajectoryItem::m_iconFile

file that generated the pixmap

Definition at line 122 of file TrajectoryItem.h.

QSize te::qt::widgets::TrajectoryItem::m_iconSize

icon size

Definition at line 123 of file TrajectoryItem.h.

QString te::qt::widgets::TrajectoryItem::m_layerId

trajectory layer Id

Definition at line 131 of file TrajectoryItem.h.

int te::qt::widgets::TrajectoryItem::m_lineWidth

The route/trail line width in pixels.

Definition at line 128 of file TrajectoryItem.h.

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

The display transformation matrix.

Definition at line 151 of file AnimationItem.h.

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

Normalized final time (between 0 and 1).

Definition at line 156 of file AnimationItem.h.

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

Normalized initial time (between 0 and 1).

Definition at line 155 of file AnimationItem.h.

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

Opacity.

Definition at line 160 of file AnimationItem.h.

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

the range is between 0.002 and 0.5

Definition at line 153 of file AnimationItem.h.

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

The icon position.

Definition at line 146 of file AnimationItem.h.

QPointF te::qt::widgets::TrajectoryItem::m_posOld

Auxiliar point.

Definition at line 130 of file TrajectoryItem.h.

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

The input path in world coordenates.

Definition at line 149 of file AnimationItem.h.

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

The input route srid.

Definition at line 145 of file AnimationItem.h.

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

The input time.

Definition at line 147 of file AnimationItem.h.

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

The icon item title.

Definition at line 143 of file AnimationItem.h.

Property Documentation

QPointF te::qt::widgets::AnimationItem::pos
readwriteinherited

Definition at line 65 of file AnimationItem.h.


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