a time keeper is used to keep track of the pipeline time. More...
#include <vtkSMTimeKeeper.h>
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
void | SetTime (double time) |
Get/Set the pipeline time. More... | |
virtual double | GetTime () |
Get/Set the pipeline time. More... | |
void | AddView (vtkSMProxy *) |
Add/Remove view proxy linked to this time keeper. More... | |
void | RemoveView (vtkSMProxy *) |
Add/Remove view proxy linked to this time keeper. More... | |
void | RemoveAllViews () |
Add/Remove view proxy linked to this time keeper. More... | |
void | AddTimeSource (vtkSMSourceProxy *) |
List of proxies that provide time. More... | |
void | RemoveTimeSource (vtkSMSourceProxy *) |
List of proxies that provide time. More... | |
void | RemoveAllTimeSources () |
List of proxies that provide time. More... | |
void | AddSuppressedTimeSource (vtkSMSourceProxy *) |
List of proxies that provide time. More... | |
void | RemoveSuppressedTimeSource (vtkSMSourceProxy *) |
List of proxies that provide time. More... | |
void | UpdateTimeInformation () |
Iterates over all sources providing time and calls vtkSMSourceProxy::UpdatePipelineInformation on them. More... | |
![]() | |
vtkBaseTypeMacro (vtkObject, vtkObjectBase) | |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual vtkMTimeType | GetMTime () |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
![]() | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
void | PrintRevisions (ostream &) |
Static Public Member Functions | |
static vtkSMTimeKeeper * | New () |
static int | IsTypeOf (const char *type) |
static vtkSMTimeKeeper * | SafeDownCast (vtkObject *o) |
![]() | |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static vtkTypeBool | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
static vtkObjectBase * | New () |
Protected Member Functions | |
vtkSMTimeKeeper () | |
~vtkSMTimeKeeper () override | |
void | SetTimestepValuesProperty (vtkSMProperty *) |
void | SetTimeRangeProperty (vtkSMProperty *) |
void | SetTimeLabelProperty (vtkSMProperty *) |
void | UpdateTimeSteps () |
![]() | |
vtkObject () | |
virtual | ~vtkObject () |
void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE |
void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Protected Attributes | |
vtkSMProperty * | TimeLabelProperty |
vtkSMProperty * | TimeRangeProperty |
vtkSMProperty * | TimestepValuesProperty |
double | Time |
![]() | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
Friends | |
class | vtkSMTimeKeeperProxy |
a time keeper is used to keep track of the pipeline time.
TimeKeeper can be thought of as a application wide clock. In ParaView, all views are registered with the TimeKeeper (using AddView()) so that all the views render data at the same global time.
TimeKeeper also keeps track of time steps and continuous time ranges provided by sources/readers/filters. This expects that the readers have a "TimestepValues" and/or "TimeRange" properties from which the time steps and time ranges provided by the reader can be obtained. All sources whose time steps/time ranges must be noted by the time keeper need to be registered with the time keeper using AddTimeSource(). ParaView automatically registers all created sources/filters/readers with the time keeper. The time steps and time ranges are made accessible by two information properties "TimestepValues" and "TimeRange" on the TimeKeeper proxy.
To change the time shown by all the views, simply change the "Time" property on the time keeper proxy (don't directly call SetTime() since otherwise undo/redo, state etc. will not work as expected).
This proxy has no VTK objects that it creates on the server.
Definition at line 39 of file vtkSMTimeKeeper.h.
typedef vtkObject vtkSMTimeKeeper::Superclass |
Definition at line 43 of file vtkSMTimeKeeper.h.
|
protected |
|
overrideprotected |
|
static |
|
virtual |
Reimplemented from vtkObjectBase.
|
static |
|
overridevirtual |
Reimplemented from vtkObject.
void vtkSMTimeKeeper::SetTime | ( | double | time | ) |
Get/Set the pipeline time.
|
virtual |
Get/Set the pipeline time.
void vtkSMTimeKeeper::AddView | ( | vtkSMProxy * | ) |
Add/Remove view proxy linked to this time keeper.
void vtkSMTimeKeeper::RemoveView | ( | vtkSMProxy * | ) |
Add/Remove view proxy linked to this time keeper.
void vtkSMTimeKeeper::RemoveAllViews | ( | ) |
Add/Remove view proxy linked to this time keeper.
void vtkSMTimeKeeper::AddTimeSource | ( | vtkSMSourceProxy * | ) |
List of proxies that provide time.
TimestepValues property has a set of timesteps provided by all the sources added to this property alone.
void vtkSMTimeKeeper::RemoveTimeSource | ( | vtkSMSourceProxy * | ) |
List of proxies that provide time.
TimestepValues property has a set of timesteps provided by all the sources added to this property alone.
void vtkSMTimeKeeper::RemoveAllTimeSources | ( | ) |
List of proxies that provide time.
TimestepValues property has a set of timesteps provided by all the sources added to this property alone.
void vtkSMTimeKeeper::AddSuppressedTimeSource | ( | vtkSMSourceProxy * | ) |
List of proxies that provide time.
TimestepValues property has a set of timesteps provided by all the sources added to this property alone.
void vtkSMTimeKeeper::RemoveSuppressedTimeSource | ( | vtkSMSourceProxy * | ) |
List of proxies that provide time.
TimestepValues property has a set of timesteps provided by all the sources added to this property alone.
void vtkSMTimeKeeper::UpdateTimeInformation | ( | ) |
Iterates over all sources providing time and calls vtkSMSourceProxy::UpdatePipelineInformation
on them.
That ensures that timekeeper is using the latest time information available to it.
|
protected |
|
protected |
|
protected |
|
protected |
|
friend |
Definition at line 95 of file vtkSMTimeKeeper.h.
|
protected |
Definition at line 102 of file vtkSMTimeKeeper.h.
|
protected |
Definition at line 103 of file vtkSMTimeKeeper.h.
|
protected |
Definition at line 104 of file vtkSMTimeKeeper.h.
|
protected |
Definition at line 105 of file vtkSMTimeKeeper.h.