VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkSMPProgressObserver Class Reference

Progress observer that is thread safe. More...

#include <vtkSMPProgressObserver.h>

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

List of all members.

Public Types

typedef vtkProgressObserver Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkSMPProgressObserverNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
void UpdateProgress (double amount)
vtkProgressObserverGetLocalObserver ()

Static Public Member Functions

static vtkSMPProgressObserverNew ()
static int IsTypeOf (const char *type)
static vtkSMPProgressObserverSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkSMPProgressObserver ()
 ~vtkSMPProgressObserver ()

Protected Attributes

vtkSMPThreadLocalObject
< vtkProgressObserver
Observers

Detailed Description

Progress observer that is thread safe.

vtkSMPProgressObserver is designed to handle progress events coming from an algorithm in a thread safe way. It does this by using thread local objects that it updates. To receive the progress information, one has to listen to the local observer in the same thread. Since the execution will be somewhat load balanced, it may be enough to do this only on the main thread.

Definition at line 33 of file vtkSMPProgressObserver.h.


Member Typedef Documentation

Reimplemented from vtkProgressObserver.

Definition at line 37 of file vtkSMPProgressObserver.h.


Constructor & Destructor Documentation


Member Function Documentation

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkProgressObserver.

static int vtkSMPProgressObserver::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkProgressObserver.

virtual int vtkSMPProgressObserver::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkProgressObserver.

Reimplemented from vtkProgressObserver.

virtual vtkObjectBase* vtkSMPProgressObserver::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkProgressObserver.

Reimplemented from vtkProgressObserver.

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

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkProgressObserver.

void vtkSMPProgressObserver::UpdateProgress ( double  amount) [virtual]

Passes the progress event to a thread local ProgressObserver instance.

Reimplemented from vtkProgressObserver.

Returns the progress observer local to the thread it was called from.

Definition at line 46 of file vtkSMPProgressObserver.h.


Member Data Documentation

Definition at line 56 of file vtkSMPProgressObserver.h.


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