helper to move data between ParaView processes. More...
#include <vtkPVDataMover.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 |
bool | Execute () |
Once the helper has been setup, use this method to fetch the data. More... | |
void | SetProducer (vtkAlgorithm *producer) |
Get/Set the data-producer to fetch data from. More... | |
virtual vtkAlgorithm * | GetProducer () |
Get/Set the data-producer to fetch data from. More... | |
virtual void | SetPortNumber (int) |
Get/Set the output-port number to use to fetch data. More... | |
virtual int | GetPortNumber () |
Get/Set the output-port number to use to fetch data. More... | |
virtual void | SetGatherOnAllRanks (bool) |
In symmetric batch mode, set this to true to indicate that the data must be cloned on all ranks. More... | |
virtual bool | GetGatherOnAllRanks () |
In symmetric batch mode, set this to true to indicate that the data must be cloned on all ranks. More... | |
virtual void | SetSkipEmptyDataSets (bool) |
When set to true (default is false), skips moving empty datasets. More... | |
virtual bool | GetSkipEmptyDataSets () |
When set to true (default is false), skips moving empty datasets. More... | |
virtual void | SkipEmptyDataSetsOn () |
When set to true (default is false), skips moving empty datasets. More... | |
virtual void | SkipEmptyDataSetsOff () |
When set to true (default is false), skips moving empty datasets. More... | |
void | AddSourceRank (int rank) |
API to select source ranks. More... | |
void | ClearAllSourceRanks () |
API to select source ranks. More... | |
void | SetSourceRanks (const std::vector< int > &ranks) |
API to select source ranks. More... | |
const std::vector< int > & | GetSourceRanks () const |
API to select source ranks. More... | |
unsigned int | GetNumberOfDataSets () const |
int | GetDataSetRank (unsigned int index) const |
vtkDataObject * | GetDataSetAtIndex (unsigned int index) const |
vtkDataObject * | GetDataSetFromRank (int rank) const |
Public Member Functions inherited from vtkObject | |
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) |
Public Member Functions inherited from vtkObjectBase | |
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 vtkPVDataMover * | New () |
static int | IsTypeOf (const char *type) |
static vtkPVDataMover * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkObject | |
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 Public Member Functions inherited from vtkObjectBase | |
static vtkTypeBool | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
static vtkObjectBase * | New () |
Protected Member Functions | |
vtkPVDataMover () | |
~vtkPVDataMover () override | |
Protected Member Functions inherited from vtkObject | |
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 () |
Protected Member Functions inherited from vtkObjectBase | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Additional Inherited Members | |
Protected Attributes inherited from vtkObject | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
Protected Attributes inherited from vtkObjectBase | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
helper to move data between ParaView processes.
vtkPVDataMover is used to transfer data between ParView processes without any transformations. This is primarily used by simple.FetchData
to transfer data to the client.
Definition at line 24 of file vtkPVDataMover.h.
typedef vtkObject vtkPVDataMover::Superclass |
Definition at line 28 of file vtkPVDataMover.h.
|
protected |
|
overrideprotected |
|
static |
|
virtual |
Reimplemented from vtkObjectBase.
|
static |
|
overridevirtual |
Reimplemented from vtkObject.
void vtkPVDataMover::SetProducer | ( | vtkAlgorithm * | producer | ) |
Get/Set the data-producer to fetch data from.
|
virtual |
Get/Set the data-producer to fetch data from.
|
virtual |
Get/Set the output-port number to use to fetch data.
Defaults to 0
.
|
virtual |
Get/Set the output-port number to use to fetch data.
Defaults to 0
.
|
virtual |
In symmetric batch mode, set this to true to indicate that the data must be cloned on all ranks.
Otherwise, the data is only generated on the root node. Defaults to false
.
This has no effect in non-symmetric MPI mode and is simply ignored.
|
virtual |
In symmetric batch mode, set this to true to indicate that the data must be cloned on all ranks.
Otherwise, the data is only generated on the root node. Defaults to false
.
This has no effect in non-symmetric MPI mode and is simply ignored.
|
virtual |
When set to true (default is false), skips moving empty datasets.
A dataset is treated as empty if it has no cells, points, etc. i.e. vtkDataObject::GetNumberOfElements
for all types returns 0.
|
virtual |
When set to true (default is false), skips moving empty datasets.
A dataset is treated as empty if it has no cells, points, etc. i.e. vtkDataObject::GetNumberOfElements
for all types returns 0.
|
virtual |
When set to true (default is false), skips moving empty datasets.
A dataset is treated as empty if it has no cells, points, etc. i.e. vtkDataObject::GetNumberOfElements
for all types returns 0.
|
virtual |
When set to true (default is false), skips moving empty datasets.
A dataset is treated as empty if it has no cells, points, etc. i.e. vtkDataObject::GetNumberOfElements
for all types returns 0.
void vtkPVDataMover::AddSourceRank | ( | int | rank | ) |
API to select source ranks.
This allows users to limit fetching data from only certain ranks as listed. If none are provided, default, data from all ranks is fetched. Otherwise, data only from the ranks listed is fetched.
void vtkPVDataMover::ClearAllSourceRanks | ( | ) |
API to select source ranks.
This allows users to limit fetching data from only certain ranks as listed. If none are provided, default, data from all ranks is fetched. Otherwise, data only from the ranks listed is fetched.
void vtkPVDataMover::SetSourceRanks | ( | const std::vector< int > & | ranks | ) |
API to select source ranks.
This allows users to limit fetching data from only certain ranks as listed. If none are provided, default, data from all ranks is fetched. Otherwise, data only from the ranks listed is fetched.
|
inline |
API to select source ranks.
This allows users to limit fetching data from only certain ranks as listed. If none are provided, default, data from all ranks is fetched. Otherwise, data only from the ranks listed is fetched.
Definition at line 81 of file vtkPVDataMover.h.
bool vtkPVDataMover::Execute | ( | ) |
Once the helper has been setup, use this method to fetch the data.
unsigned int vtkPVDataMover::GetNumberOfDataSets | ( | ) | const |
vtkDataObject* vtkPVDataMover::GetDataSetAtIndex | ( | unsigned int | index | ) | const |
vtkDataObject* vtkPVDataMover::GetDataSetFromRank | ( | int | rank | ) | const |