ParaView
Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends
vtkPVProgressHandler Class Reference

progress handler. More...

#include <vtkPVProgressHandler.h>

Inheritance diagram for vtkPVProgressHandler:
Inheritance graph
[legend]
Collaboration diagram for vtkPVProgressHandler:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
void RegisterProgressEvent (vtkObject *object, int id)
void PrepareProgress ()
void CleanupPendingProgress ()
void SetSession (vtkPVSession *conn)
virtual vtkPVSessionGetSession ()
virtual void SetProgressFrequency (double)
virtual double GetProgressFrequency ()
virtual char * GetLastProgressText ()
virtual int GetLastProgress ()

Static Public Member Functions

static vtkPVProgressHandlerNew ()
static int IsTypeOf (const char *type)
static vtkPVProgressHandlerSafeDownCast (vtkObject *o)

Protected Types

enum  eTAGS { CLEANUP_TAG = 188969, PROGRESS_EVENT_TAG = 188970 }

Protected Member Functions

void HandleServerProgress (int progress, const char *text)
void CleanupSatellites ()
bool GetIsRoot ()
int GatherProgress ()
bool ReportProgress (double progress)
void SetLocalProgress (int progress, const char *text)
void SendProgressToClient (vtkMultiProcessController *)
void SendProgressToRoot ()
int ReceiveProgressFromSatellites ()
void ReceiveProgressFromServer (vtkMultiProcessController *)
virtual void SetLastProgressText (const char *)

Protected Attributes

int LastProgress
char * LastProgressText
double ProgressFrequency
vtkPVSessionSession

Friends

class vtkObserver
vtkMPICommunicatorOpaqueRequest * GetAsyncRequest ()
void RefreshProgress ()
void MarkAsyncRequestReceived ()
 vtkPVProgressHandler ()
 ~vtkPVProgressHandler ()

Detailed Description

progress handler.

vtkPVProgressHandler handles the progress messages. It handles progress in all configurations single process, client-server, mpi-batch. One progress handler is created per Session.

Progress events are currently not supported in multi-clients mode.

Events:
vtkCommand::StartEvent
  • fired to indicate beginning of progress handling
  • calldata: vtkPVProgressHandler* vtkCommand::ProgressEvent
  • fired to indicate a progress event.
  • calldata: vtkPVProgressHandler* vtkCommand::EndEvent
  • fired to indicate end of progress handling
  • calldata: vtkPVProgressHandler*
See also:
vtkPVMPICommunicator

Definition at line 47 of file vtkPVProgressHandler.h.


Member Enumeration Documentation

enum vtkPVProgressHandler::eTAGS [protected]
Enumerator:
CLEANUP_TAG 
PROGRESS_EVENT_TAG 

Definition at line 95 of file vtkPVProgressHandler.h.


Constructor & Destructor Documentation

vtkPVProgressHandler::vtkPVProgressHandler ( ) [protected]

These methods are used by vtkPVMPICommunicator to handle the progress messages received from satellites while waiting on some receive.

vtkPVProgressHandler::~vtkPVProgressHandler ( ) [protected]

These methods are used by vtkPVMPICommunicator to handle the progress messages received from satellites while waiting on some receive.


Member Function Documentation

static vtkPVProgressHandler* vtkPVProgressHandler::New ( ) [static]

Reimplemented from vtkObject.

virtual const char* vtkPVProgressHandler::GetClassName ( ) [virtual]

Reimplemented from vtkObject.

static int vtkPVProgressHandler::IsTypeOf ( const char *  type) [static]

Reimplemented from vtkObject.

virtual int vtkPVProgressHandler::IsA ( const char *  type) [virtual]

Reimplemented from vtkObject.

static vtkPVProgressHandler* vtkPVProgressHandler::SafeDownCast ( vtkObject o) [static]

Reimplemented from vtkObject.

void vtkPVProgressHandler::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Reimplemented from vtkObject.

void vtkPVProgressHandler::SetSession ( vtkPVSession conn)

Get/Set the session. This is not reference-counted to avoid cycles.

virtual vtkPVSession* vtkPVProgressHandler::GetSession ( ) [virtual]

Get/Set the session. This is not reference-counted to avoid cycles.

void vtkPVProgressHandler::RegisterProgressEvent ( vtkObject object,
int  id 
)

Listen to progress events from the object.

void vtkPVProgressHandler::PrepareProgress ( )

This method resets all the progress counters and prepares progress reporting. All progress events before this call are ignored.

void vtkPVProgressHandler::CleanupPendingProgress ( )

This method collects all outstanding progress messages. All progress events after this call are ignored.

virtual void vtkPVProgressHandler::SetProgressFrequency ( double  ) [virtual]

Get/Set the progress frequency in seconds. Default is 0.5 seconds.

virtual double vtkPVProgressHandler::GetProgressFrequency ( ) [virtual]

Get/Set the progress frequency in seconds. Default is 0.5 seconds.

virtual char* vtkPVProgressHandler::GetLastProgressText ( ) [virtual]

These are only valid in handler for the vtkCommand::ProgressEvent.

virtual int vtkPVProgressHandler::GetLastProgress ( ) [virtual]

These are only valid in handler for the vtkCommand::ProgressEvent.

vtkMPICommunicatorOpaqueRequest* vtkPVProgressHandler::GetAsyncRequest ( )

These methods are used by vtkPVMPICommunicator to handle the progress messages received from satellites while waiting on some receive.

void vtkPVProgressHandler::RefreshProgress ( )

These methods are used by vtkPVMPICommunicator to handle the progress messages received from satellites while waiting on some receive.

void vtkPVProgressHandler::MarkAsyncRequestReceived ( )

These methods are used by vtkPVMPICommunicator to handle the progress messages received from satellites while waiting on some receive.

void vtkPVProgressHandler::HandleServerProgress ( int  progress,
const char *  text 
) [protected]

Called when the client connection (vtkClientConnection) receives progress from the server.

void vtkPVProgressHandler::CleanupSatellites ( ) [protected]

Called on MPI processes to pass around the CLEANUP_TAG marking the end of the progress messages.

bool vtkPVProgressHandler::GetIsRoot ( ) [protected]

Returns if current process is the root node.

int vtkPVProgressHandler::GatherProgress ( ) [protected]

Called on a MPI group to gather progress.

bool vtkPVProgressHandler::ReportProgress ( double  progress) [protected]

Returns if the progress should be reported.

void vtkPVProgressHandler::SetLocalProgress ( int  progress,
const char *  text 
) [protected]
void vtkPVProgressHandler::SendProgressToClient ( vtkMultiProcessController ) [protected]
void vtkPVProgressHandler::SendProgressToRoot ( ) [protected]
int vtkPVProgressHandler::ReceiveProgressFromSatellites ( ) [protected]
void vtkPVProgressHandler::ReceiveProgressFromServer ( vtkMultiProcessController ) [protected]
virtual void vtkPVProgressHandler::SetLastProgressText ( const char *  ) [protected, virtual]

Friends And Related Function Documentation

friend class vtkObserver [friend]

Definition at line 145 of file vtkPVProgressHandler.h.


Member Data Documentation

Definition at line 124 of file vtkPVProgressHandler.h.

Definition at line 126 of file vtkPVProgressHandler.h.

Definition at line 127 of file vtkPVProgressHandler.h.

Definition at line 128 of file vtkPVProgressHandler.h.


The documentation for this class was generated from the following file: