#include <pqAnimationModel.h>
Inherits QGraphicsScene.
|
enum | ModeType { Real,
Sequence,
Custom
} |
| Real, Sequence or Custom mode Real mode shows no tick marks for timesteps Sequence mode shows evenly spaced ticks for teach timestep where the number of ticks can be controlled by the ticks property Custom shows tick marks at the location indicated by the setTickMarks(). More...
|
|
Definition at line 23 of file pqAnimationModel.h.
◆ ModeType
Real, Sequence or Custom mode Real mode shows no tick marks for timesteps Sequence mode shows evenly spaced ticks for teach timestep where the number of ticks can be controlled by the ticks property Custom shows tick marks at the location indicated by the setTickMarks().
Enumerator |
---|
Real | |
Sequence | |
Custom | |
Definition at line 43 of file pqAnimationModel.h.
◆ pqAnimationModel()
pqAnimationModel::pqAnimationModel |
( |
QGraphicsView * |
p = nullptr | ) |
|
◆ ~pqAnimationModel()
pqAnimationModel::~pqAnimationModel |
( |
| ) |
|
|
override |
◆ count()
int pqAnimationModel::count |
( |
| ) |
|
◆ track()
◆ addTrack()
add a track.
If trackToAdd
is nullptr, we create a new pqAnimationTrack instance.
◆ removeTrack()
◆ mode()
ModeType pqAnimationModel::mode |
( |
| ) |
const |
◆ ticks()
int pqAnimationModel::ticks |
( |
| ) |
const |
◆ currentTime()
double pqAnimationModel::currentTime |
( |
| ) |
const |
◆ startTime()
double pqAnimationModel::startTime |
( |
| ) |
const |
◆ endTime()
double pqAnimationModel::endTime |
( |
| ) |
const |
◆ zoomStartTime()
double pqAnimationModel::zoomStartTime |
( |
| ) |
const |
◆ zoomEndTime()
double pqAnimationModel::zoomEndTime |
( |
| ) |
const |
◆ zoomFactor()
double pqAnimationModel::zoomFactor |
( |
| ) |
const |
◆ interactive()
bool pqAnimationModel::interactive |
( |
| ) |
const |
get whether this scene is interactive
◆ header()
QAbstractItemModel* pqAnimationModel::header |
( |
| ) |
|
◆ enabledHeader()
QAbstractItemModel* pqAnimationModel::enabledHeader |
( |
| ) |
|
◆ setRowHeight()
void pqAnimationModel::setRowHeight |
( |
int |
| ) |
|
◆ rowHeight()
int pqAnimationModel::rowHeight |
( |
| ) |
const |
◆ positionZoom()
void pqAnimationModel::positionZoom |
( |
double |
zoomStartTime | ) |
|
positions the zoom window with its beginning at zoomStartTime
◆ customTicks()
const QList<double>& pqAnimationModel::customTicks |
( |
| ) |
const |
|
inline |
◆ setEnabledHeaderToolTip()
void pqAnimationModel::setEnabledHeaderToolTip |
( |
const QString & |
val | ) |
|
set the tooltip to use for the checkbox in the EnabledHeader.
default is "Enable/Disable Track".
◆ enabledHeaderToolTip()
const QString& pqAnimationModel::enabledHeaderToolTip |
( |
| ) |
const |
|
inline |
◆ setMode
void pqAnimationModel::setMode |
( |
ModeType |
| ) |
|
|
slot |
◆ setTicks
void pqAnimationModel::setTicks |
( |
int |
| ) |
|
|
slot |
◆ setCurrentTime
void pqAnimationModel::setCurrentTime |
( |
double |
| ) |
|
|
slot |
◆ setStartTime
void pqAnimationModel::setStartTime |
( |
double |
| ) |
|
|
slot |
◆ setEndTime
void pqAnimationModel::setEndTime |
( |
double |
| ) |
|
|
slot |
◆ setInteractive
void pqAnimationModel::setInteractive |
( |
bool |
| ) |
|
|
slot |
set whether this scene is interactive
◆ setTickMarks
void pqAnimationModel::setTickMarks |
( |
int |
num, |
|
|
double * |
tick_marks |
|
) |
| |
|
slot |
set the locations for tick marks if Mode is Custom.
This also results in a call to setTicks().
◆ setTimePrecision
void pqAnimationModel::setTimePrecision |
( |
int |
precision | ) |
|
|
slot |
Set the precision for time printing.
Default is 6.
◆ setTimeNotation
void pqAnimationModel::setTimeNotation |
( |
const QChar & |
notation | ) |
|
|
slot |
Set the notation to use for time printing.
Should be one of the following: e,E,f,g or G. Default is g.
◆ zoomTrack
Scales the drawing of the track to the current zoom.
◆ trackSelected
◆ currentTimeSet
void pqAnimationModel::currentTimeSet |
( |
double |
| ) |
|
|
signal |
◆ keyFrameTimeChanged
◆ zoomChanged
void pqAnimationModel::zoomChanged |
( |
| ) |
|
|
signal |
◆ resizeTracks
void pqAnimationModel::resizeTracks |
( |
| ) |
|
|
protectedslot |
◆ trackNameChanged
void pqAnimationModel::trackNameChanged |
( |
| ) |
|
|
protectedslot |
◆ enabledChanged
void pqAnimationModel::enabledChanged |
( |
| ) |
|
|
protectedslot |
◆ timeBarPoly()
QPolygonF pqAnimationModel::timeBarPoly |
( |
double |
time | ) |
|
|
protected |
◆ positionFromTime()
◆ timeFromPosition()
◆ timeFromTick()
double pqAnimationModel::timeFromTick |
( |
int |
tick | ) |
|
|
protected |
◆ tickFromTime()
int pqAnimationModel::tickFromTime |
( |
double |
pos | ) |
|
|
protected |
◆ drawForeground()
void pqAnimationModel::drawForeground |
( |
QPainter * |
painter, |
|
|
const QRectF & |
rect |
|
) |
| |
|
overrideprotected |
◆ drawTimeLabel()
QRectF pqAnimationModel::drawTimeLabel |
( |
double |
time, |
|
|
const QRectF & |
row, |
|
|
QPainter * |
painter, |
|
|
const QFontMetrics & |
metrics, |
|
|
QList< const QRectF *> const & |
priorities |
|
) |
| |
|
protected |
Draws a label for the specified time in the specified row of the timeline.
The user can enter painter or metrics parameters to customize it. A list of priorities must be entered: they define the zones where the label can't be drawn.
◆ updateNewTime()
void pqAnimationModel::updateNewTime |
( |
QGraphicsSceneMouseEvent * |
mouseEvent | ) |
|
|
protected |
◆ hitTestCurrentTimePoly()
bool pqAnimationModel::hitTestCurrentTimePoly |
( |
const QPointF & |
pos | ) |
|
|
protected |
◆ hitTestTracks()
◆ hitTestKeyFrame()
◆ eventFilter()
bool pqAnimationModel::eventFilter |
( |
QObject * |
w, |
|
|
QEvent * |
e |
|
) |
| |
|
overrideprotected |
◆ mouseDoubleClickEvent()
void pqAnimationModel::mouseDoubleClickEvent |
( |
QGraphicsSceneMouseEvent * |
mouseEvent | ) |
|
|
overrideprotected |
◆ mousePressEvent()
void pqAnimationModel::mousePressEvent |
( |
QGraphicsSceneMouseEvent * |
mouseEvent | ) |
|
|
overrideprotected |
◆ mouseMoveEvent()
void pqAnimationModel::mouseMoveEvent |
( |
QGraphicsSceneMouseEvent * |
mouseEvent | ) |
|
|
overrideprotected |
◆ mouseReleaseEvent()
void pqAnimationModel::mouseReleaseEvent |
( |
QGraphicsSceneMouseEvent * |
mouseEvent | ) |
|
|
overrideprotected |
◆ wheelEvent()
void pqAnimationModel::wheelEvent |
( |
QGraphicsSceneWheelEvent * |
wheelEvent | ) |
|
|
overrideprotected |
◆ timeToNormalizedTime()
double pqAnimationModel::timeToNormalizedTime |
( |
double |
| ) |
const |
|
protected |
◆ normalizedTimeToTime()
double pqAnimationModel::normalizedTimeToTime |
( |
double |
| ) |
const |
|
protected |
◆ currentTicks()
int pqAnimationModel::currentTicks |
( |
| ) |
const |
|
protected |
Based on this->Mode, this will either returns the number of custom ticks or return this->ticks().
◆ mode
◆ ticks
int pqAnimationModel::ticks |
|
readwrite |
◆ currentTime
double pqAnimationModel::currentTime |
|
readwrite |
◆ startTime
double pqAnimationModel::startTime |
|
readwrite |
◆ endTime
double pqAnimationModel::endTime |
|
readwrite |
◆ interactive
bool pqAnimationModel::interactive |
|
readwrite |
The documentation for this class was generated from the following file: