pqTimeInspectorWidget is a widget that allows the user to look at all sources that provide time. More...
#include <pqTimeInspectorWidget.h>
Inherits QWidget.
Public Slots | |
void | setServer (pqServer *server) |
set the active server. More... | |
void | setSceneCurrentTime (double) |
set the current time for the scene. More... | |
Signals | |
void | dummySignal () |
void | sceneCurrentTimeChanged () |
void | suppressedTimeSourcesChanged () |
Public Member Functions | |
pqTimeInspectorWidget (QWidget *parent=0) | |
~pqTimeInspectorWidget () override | |
pqServer * | server () const |
access the server being reflected on the widget. More... | |
double | sceneStartTime () const |
Get/set the start time for the scene. More... | |
void | setSceneStartTime (double) |
double | sceneEndTime () const |
Get/Set the end time for the scene. More... | |
void | setSceneEndTime (double) |
QString | scenePlayMode () const |
Get/set the play-mode. More... | |
void | setScenePlayMode (const QString &) |
QList< QVariant > | sceneTimeSteps () const |
Get/Set the timesteps in the scene. More... | |
void | setSceneTimeSteps (const QList< QVariant > &val) |
int | sceneNumberOfFrames () const |
Get/Set the number of frames. More... | |
void | setSceneNumberOfFrames (int val) |
QList< QVariant > | timeSources () const |
Get/Set the proxies that are registered with the TimeKeeper as the time sources. More... | |
void | setTimeSources (const QList< QVariant > &proxies) |
QList< QVariant > | suppressedTimeSources () const |
Get/Set the list of proxies which are to be marked as "suppressed" i.e. More... | |
void | setSuppressedTimeSources (const QList< QVariant > &proxies) |
double | sceneCurrentTime () const |
Get the current time for the scene. More... | |
Properties | |
double | sceneStartTime |
double | sceneEndTime |
QString | scenePlayMode |
QList< QVariant > | sceneTimeSteps |
int | sceneNumberOfFrames |
QList< QVariant > | timeSources |
QList< QVariant > | suppressedTimeSources |
double | sceneCurrentTime |
pqTimeInspectorWidget is a widget that allows the user to look at all sources that provide time.
The animation timesteps as well as the timesteps provided by each of the sources can be seen in this widget. This widget allows the user to change 2 things: whether to suppress timesteps from a source, and the current time. Everything else is read-only.
The implementation relies on linking (using pqPropertyLinks) sm-properties on TimeKeeper and AnimationScene proxy for the active session to qt-properties on this widget.
To use this widget since set the animation scene using setAnimationScene(). The widget takes care of the rest. One typically never needs to use any of the other public API which is internally "linked" to the properties on the animation scene proxy.
Definition at line 62 of file pqTimeInspectorWidget.h.
pqTimeInspectorWidget::pqTimeInspectorWidget | ( | QWidget * | parent = 0 | ) |
|
override |
pqServer* pqTimeInspectorWidget::server | ( | ) | const |
access the server being reflected on the widget.
double pqTimeInspectorWidget::sceneStartTime | ( | ) | const |
Get/set the start time for the scene.
void pqTimeInspectorWidget::setSceneStartTime | ( | double | ) |
double pqTimeInspectorWidget::sceneEndTime | ( | ) | const |
Get/Set the end time for the scene.
void pqTimeInspectorWidget::setSceneEndTime | ( | double | ) |
QString pqTimeInspectorWidget::scenePlayMode | ( | ) | const |
Get/set the play-mode.
Used to control how the global ticks are shown and how the current time slider snaps on interaction.
void pqTimeInspectorWidget::setScenePlayMode | ( | const QString & | ) |
QList<QVariant> pqTimeInspectorWidget::sceneTimeSteps | ( | ) | const |
Get/Set the timesteps in the scene.
This is timesteps known to the active sessions TimeKeeper proxy.
void pqTimeInspectorWidget::setSceneTimeSteps | ( | const QList< QVariant > & | val | ) |
int pqTimeInspectorWidget::sceneNumberOfFrames | ( | ) | const |
Get/Set the number of frames.
This is used when the playmode is set to sequence.
void pqTimeInspectorWidget::setSceneNumberOfFrames | ( | int | val | ) |
QList<QVariant> pqTimeInspectorWidget::timeSources | ( | ) | const |
Get/Set the proxies that are registered with the TimeKeeper as the time sources.
Not all proxies in this list may have time. Hence, setTimeSources() needs to cull the list appropriately.
void pqTimeInspectorWidget::setTimeSources | ( | const QList< QVariant > & | proxies | ) |
QList<QVariant> pqTimeInspectorWidget::suppressedTimeSources | ( | ) | const |
Get/Set the list of proxies which are to be marked as "suppressed" i.e.
their timesteps are ignored by the animation playback.
void pqTimeInspectorWidget::setSuppressedTimeSources | ( | const QList< QVariant > & | proxies | ) |
double pqTimeInspectorWidget::sceneCurrentTime | ( | ) | const |
Get the current time for the scene.
|
slot |
set the active server.
|
slot |
set the current time for the scene.
|
signal |
|
signal |
|
signal |
|
readwrite |
Definition at line 65 of file pqTimeInspectorWidget.h.
|
readwrite |
Definition at line 66 of file pqTimeInspectorWidget.h.
|
readwrite |
Definition at line 67 of file pqTimeInspectorWidget.h.
|
readwrite |
Definition at line 68 of file pqTimeInspectorWidget.h.
|
readwrite |
Definition at line 69 of file pqTimeInspectorWidget.h.
|
readwrite |
Definition at line 70 of file pqTimeInspectorWidget.h.
|
readwrite |
Definition at line 72 of file pqTimeInspectorWidget.h.
|
readwrite |
Definition at line 74 of file pqTimeInspectorWidget.h.