#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 49 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 67 of file pqAnimationModel.h.
◆ pqAnimationModel()
pqAnimationModel::pqAnimationModel |
( |
QGraphicsView * |
p = 0 | ) |
|
◆ ~pqAnimationModel()
pqAnimationModel::~pqAnimationModel |
( |
| ) |
|
|
override |
◆ count()
int pqAnimationModel::count |
( |
| ) |
|
◆ track()
◆ addTrack()
◆ 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 |
◆ 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 |
◆ 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.
◆ trackSelected
◆ currentTimeSet
void pqAnimationModel::currentTimeSet |
( |
double |
| ) |
|
|
signal |
◆ keyFrameTimeChanged
◆ 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 |
◆ 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 |
◆ 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: