#include <vtkPHardwareSelector.h>
vtkPHardwareSelector is a vtkHardwareSelector that is parallel aware. It relies on the fact that the application is going to use some other mechanism to ensure that renders are synchronized among windows on all processes. The synchronization happens from the root node. When the root node renders, all processes render. Only vtkPHardwareSelector instance on the root node triggers the renders. All other processes, simply listen to the StartEvent fired and beginning of the render to ensure that vtkHardwareSelector's CurrentPass is updated appropriately.
Definition at line 34 of file vtkPHardwareSelector.h.
Public Types | |
typedef vtkHardwareSelector | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual bool | CaptureBuffers () |
virtual void | SetProcessIsRoot (bool) |
virtual bool | GetProcessIsRoot () |
virtual void | ProcessIsRootOn () |
virtual void | ProcessIsRootOff () |
Static Public Member Functions | |
static vtkPHardwareSelector * | New () |
static int | IsTypeOf (const char *type) |
static vtkPHardwareSelector * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkPHardwareSelector () | |
~vtkPHardwareSelector () | |
void | StartRender () |
void | EndRender () |
Protected Attributes | |
bool | ProcessIsRoot |
Friends | |
class | vtkObserver |
vtkPHardwareSelector::vtkPHardwareSelector | ( | ) | [protected] |
vtkPHardwareSelector::~vtkPHardwareSelector | ( | ) | [protected] |
static vtkPHardwareSelector* vtkPHardwareSelector::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkHardwareSelector.
virtual const char* vtkPHardwareSelector::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkHardwareSelector.
static int vtkPHardwareSelector::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 vtkHardwareSelector.
virtual int vtkPHardwareSelector::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 vtkHardwareSelector.
static vtkPHardwareSelector* vtkPHardwareSelector::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkHardwareSelector.
void vtkPHardwareSelector::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 vtkHardwareSelector.
virtual void vtkPHardwareSelector::SetProcessIsRoot | ( | bool | ) | [virtual] |
Set/Get the is the root process. The root processes is the only processes which has the composited result and hence the only processes that capture buffers and builds selected list ids.
virtual bool vtkPHardwareSelector::GetProcessIsRoot | ( | ) | [virtual] |
Set/Get the is the root process. The root processes is the only processes which has the composited result and hence the only processes that capture buffers and builds selected list ids.
virtual void vtkPHardwareSelector::ProcessIsRootOn | ( | ) | [virtual] |
Set/Get the is the root process. The root processes is the only processes which has the composited result and hence the only processes that capture buffers and builds selected list ids.
virtual void vtkPHardwareSelector::ProcessIsRootOff | ( | ) | [virtual] |
Set/Get the is the root process. The root processes is the only processes which has the composited result and hence the only processes that capture buffers and builds selected list ids.
virtual bool vtkPHardwareSelector::CaptureBuffers | ( | ) | [virtual] |
Overridden to only allow the superclass implementation on the root node. On all other processes, the updating the internal state of the vtkHardwareSelector as the capturing of buffers progresses is done as a slave to the master render.
Reimplemented from vtkHardwareSelector.
void vtkPHardwareSelector::StartRender | ( | ) | [protected] |
void vtkPHardwareSelector::EndRender | ( | ) | [protected] |
friend class vtkObserver [friend] |
Definition at line 70 of file vtkPHardwareSelector.h.
bool vtkPHardwareSelector::ProcessIsRoot [protected] |
Definition at line 64 of file vtkPHardwareSelector.h.