#include <vtkParallelRenderManager.h>
Inheritance diagram for vtkParallelRenderManager:


vtkParallelRenderManager operates in multiple processes. It provides proper renderers and render windows for performing the parallel rendering correctly. It can also attach itself to render windows and propagate rendering events and camera views.
This class is based on the vtkCompositeManager class, except that it can handle any type of parallel rendering.
Definition at line 66 of file vtkParallelRenderManager.h.
Reimplemented from vtkObject.
Reimplemented in vtkCompositeRenderManager.
Definition at line 69 of file vtkParallelRenderManager.h.
| anonymous enum |
| RENDER_RMI_TAG | |
| COMPUTE_VISIBLE_PROP_BOUNDS_RMI_TAG | |
| WIN_INFO_TAG | |
| REN_INFO_TAG | |
| LIGHT_INFO_TAG | |
| REN_ID_TAG | |
| BOUNDS_TAG |
Definition at line 361 of file vtkParallelRenderManager.h.
| vtkParallelRenderManager::vtkParallelRenderManager | ( | ) | [protected] |
| vtkParallelRenderManager::~vtkParallelRenderManager | ( | ) | [protected] |
| virtual const char* vtkParallelRenderManager::GetClassName | ( | ) | [virtual] |
| static int vtkParallelRenderManager::IsTypeOf | ( | const char * | type | ) | [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 vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkObject.
Reimplemented in vtkCompositeRenderManager.
| virtual int vtkParallelRenderManager::IsA | ( | const char * | type | ) | [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 vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkObject.
Reimplemented in vtkCompositeRenderManager.
| static vtkParallelRenderManager* vtkParallelRenderManager::SafeDownCast | ( | vtkObject * | o | ) | [static] |
| virtual void vtkParallelRenderManager::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 vtkObject.
Reimplemented in vtkCompositeRenderManager.
| virtual vtkRenderWindow* vtkParallelRenderManager::MakeRenderWindow | ( | ) | [virtual] |
Builds a vtkRenderWindow compatible with this render manager. The user program is responsible for registering the render window with the SetRenderWindow method and calling Delete. It is not advisable to use a parallel render manager with a render window that was not built with this method.
| virtual vtkRenderer* vtkParallelRenderManager::MakeRenderer | ( | ) | [virtual] |
Builds a vtkRenderer compatible with this render manager. (Should we also register it?) The user program is responsible for calling Delete. It is not advisable to use a parallel render manager with a renderer that was not built with this method.
| virtual vtkRenderWindow* vtkParallelRenderManager::GetRenderWindow | ( | ) | [virtual] |
Set/Get the RenderWindow to use for compositing. We add a start and end observer to the window.
| virtual void vtkParallelRenderManager::SetRenderWindow | ( | vtkRenderWindow * | renWin | ) | [virtual] |
Set/Get the RenderWindow to use for compositing. We add a start and end observer to the window.
| virtual vtkMultiProcessController* vtkParallelRenderManager::GetController | ( | ) | [virtual] |
Set/Get the vtkMultiProcessController which will handle communications for the parallel rendering.
| virtual void vtkParallelRenderManager::SetController | ( | vtkMultiProcessController * | controller | ) | [virtual] |
Set/Get the vtkMultiProcessController which will handle communications for the parallel rendering.
| virtual void vtkParallelRenderManager::InitializePieces | ( | ) | [virtual] |
This method sets the piece and number of pieces for each actor with a polydata mapper.
| virtual void vtkParallelRenderManager::InitializeOffScreen | ( | ) | [virtual] |
Make all rendering windows not viewable set as off screen rendering. To make all renderwindows on screen rendering again, call OffScreenRenderingOff on all the render windows. This class assumes the window on root node is the only one viewable. Subclasses should change this as necessary.
| virtual void vtkParallelRenderManager::StartInteractor | ( | ) | [virtual] |
Initializes the RMIs and then, if on root node, starts the interactor on the attached render window. Otherwise, starts processing RMIs. When the interactor returns, it breaks the RMI listening on all other processors.
| virtual void vtkParallelRenderManager::StartServices | ( | ) | [virtual] |
If on node other than root, starts serving RMI requests for parallel renders.
| virtual void vtkParallelRenderManager::StopServices | ( | ) | [virtual] |
If on root node, stops the RMI processing on all service nodes.
| virtual void vtkParallelRenderManager::StartRender | ( | ) | [virtual] |
Callbacks that initialize and finish rendering and other tasks.
| virtual void vtkParallelRenderManager::EndRender | ( | ) | [virtual] |
Callbacks that initialize and finish rendering and other tasks.
| virtual void vtkParallelRenderManager::SatelliteStartRender | ( | ) | [virtual] |
Callbacks that initialize and finish rendering and other tasks.
| virtual void vtkParallelRenderManager::SatelliteEndRender | ( | ) | [virtual] |
Callbacks that initialize and finish rendering and other tasks.
| virtual void vtkParallelRenderManager::RenderRMI | ( | ) | [virtual] |
Callbacks that initialize and finish rendering and other tasks.
| virtual void vtkParallelRenderManager::ResetCamera | ( | vtkRenderer * | ren | ) | [virtual] |
Callbacks that initialize and finish rendering and other tasks.
| virtual void vtkParallelRenderManager::ResetCameraClippingRange | ( | vtkRenderer * | ren | ) | [virtual] |
Callbacks that initialize and finish rendering and other tasks.
| virtual void vtkParallelRenderManager::ComputeVisiblePropBoundsRMI | ( | int | renderId | ) | [virtual] |
Callbacks that initialize and finish rendering and other tasks.
| virtual void vtkParallelRenderManager::InitializeRMIs | ( | ) | [virtual] |
| virtual void vtkParallelRenderManager::ResetAllCameras | ( | ) | [virtual] |
Resets the camera of each renderer contained in the RenderWindow. Should only be called in the "root" process, and all remote processes must be processing RMIs for this method to complete.
| virtual void vtkParallelRenderManager::ComputeVisiblePropBounds | ( | vtkRenderer * | ren, | |
| double | bounds[6] | |||
| ) | [virtual] |
Calculates the bounds by gathering information from all processes.
| virtual void vtkParallelRenderManager::SetParallelRendering | ( | int | ) | [virtual] |
Turns on/off parallel rendering. When on (the default) the object responds to render events of the attached window, propagates the render event to other processors, and otherwise enables the parallel rendering process.
| virtual int vtkParallelRenderManager::GetParallelRendering | ( | ) | [virtual] |
Turns on/off parallel rendering. When on (the default) the object responds to render events of the attached window, propagates the render event to other processors, and otherwise enables the parallel rendering process.
| virtual void vtkParallelRenderManager::ParallelRenderingOn | ( | ) | [virtual] |
Turns on/off parallel rendering. When on (the default) the object responds to render events of the attached window, propagates the render event to other processors, and otherwise enables the parallel rendering process.
| virtual void vtkParallelRenderManager::ParallelRenderingOff | ( | ) | [virtual] |
Turns on/off parallel rendering. When on (the default) the object responds to render events of the attached window, propagates the render event to other processors, and otherwise enables the parallel rendering process.
| virtual void vtkParallelRenderManager::SetRenderEventPropagation | ( | int | ) | [virtual] |
Turns on/off render event propagation. When on (the default) and ParallelRendering is on, process 0 will send an RMI call to all remote processes to perform a synchronized render. When off, render must be manually called on each process.
| virtual int vtkParallelRenderManager::GetRenderEventPropagation | ( | ) | [virtual] |
Turns on/off render event propagation. When on (the default) and ParallelRendering is on, process 0 will send an RMI call to all remote processes to perform a synchronized render. When off, render must be manually called on each process.
| virtual void vtkParallelRenderManager::RenderEventPropagationOn | ( | ) | [virtual] |
Turns on/off render event propagation. When on (the default) and ParallelRendering is on, process 0 will send an RMI call to all remote processes to perform a synchronized render. When off, render must be manually called on each process.
| virtual void vtkParallelRenderManager::RenderEventPropagationOff | ( | ) | [virtual] |
Turns on/off render event propagation. When on (the default) and ParallelRendering is on, process 0 will send an RMI call to all remote processes to perform a synchronized render. When off, render must be manually called on each process.
| static void vtkParallelRenderManager::SetDefaultRenderEventPropagation | ( | bool | val | ) | [inline, static] |
Get/Set the default value used for RenderEventPropagation when a new instance of vtkParallelRenderManager is created. Set to true by default.
Definition at line 169 of file vtkParallelRenderManager.h.
References DefaultRenderEventPropagation.
| static bool vtkParallelRenderManager::GetDefaultRenderEventPropagation | ( | ) | [inline, static] |
Get/Set the default value used for RenderEventPropagation when a new instance of vtkParallelRenderManager is created. Set to true by default.
Definition at line 171 of file vtkParallelRenderManager.h.
References DefaultRenderEventPropagation.
| virtual void vtkParallelRenderManager::SetUseCompositing | ( | int | ) | [virtual] |
This is used for tiled display rendering. When data has been duplicated on all processes, then we do not need to compositing. Cameras and renders are still propagated though.
| virtual int vtkParallelRenderManager::GetUseCompositing | ( | ) | [virtual] |
This is used for tiled display rendering. When data has been duplicated on all processes, then we do not need to compositing. Cameras and renders are still propagated though.
| virtual void vtkParallelRenderManager::UseCompositingOn | ( | ) | [virtual] |
This is used for tiled display rendering. When data has been duplicated on all processes, then we do not need to compositing. Cameras and renders are still propagated though.
| virtual void vtkParallelRenderManager::UseCompositingOff | ( | ) | [virtual] |
This is used for tiled display rendering. When data has been duplicated on all processes, then we do not need to compositing. Cameras and renders are still propagated though.
| virtual void vtkParallelRenderManager::SetImageReductionFactor | ( | double | factor | ) | [virtual] |
Set/Get the reduction factor (for sort-last based parallel renderers). The size of rendered image is divided by the reduction factor and then is blown up to the size of the current vtkRenderWindow. Setting higher reduction factors enables shorter image transfer times (which is often the bottleneck) but will greatly reduce image quality. A reduction factor of 2 or greater should only be used for intermediate images in interactive applications. A reduction factor of 1 (or less) will result in no change in image quality. A parallel render manager may ignore the image reduction factor if it will result in little or no performance enhancements (eg. it does not do image space manipulations).
| virtual double vtkParallelRenderManager::GetImageReductionFactor | ( | ) | [virtual] |
Set/Get the reduction factor (for sort-last based parallel renderers). The size of rendered image is divided by the reduction factor and then is blown up to the size of the current vtkRenderWindow. Setting higher reduction factors enables shorter image transfer times (which is often the bottleneck) but will greatly reduce image quality. A reduction factor of 2 or greater should only be used for intermediate images in interactive applications. A reduction factor of 1 (or less) will result in no change in image quality. A parallel render manager may ignore the image reduction factor if it will result in little or no performance enhancements (eg. it does not do image space manipulations).
| virtual void vtkParallelRenderManager::SetMaxImageReductionFactor | ( | double | ) | [virtual] |
| virtual double vtkParallelRenderManager::GetMaxImageReductionFactor | ( | ) | [virtual] |
| virtual void vtkParallelRenderManager::SetImageReductionFactorForUpdateRate | ( | double | DesiredUpdateRate | ) | [virtual] |
Sets the ReductionFactor based on the given desired update rate and the rendering metrics taken from the last time UpdateServerInfo was called. Note that if AutoReductionFactor is on, this function is called with the desired update rate of the render window automatically.
| virtual void vtkParallelRenderManager::SetAutoImageReductionFactor | ( | int | ) | [virtual] |
If on, the ReductionFactor is automatically adjusted to best meet the the DesiredUpdateRate in the current RenderWindow based on metrics from the last render.
| virtual int vtkParallelRenderManager::GetAutoImageReductionFactor | ( | ) | [virtual] |
If on, the ReductionFactor is automatically adjusted to best meet the the DesiredUpdateRate in the current RenderWindow based on metrics from the last render.
| virtual void vtkParallelRenderManager::AutoImageReductionFactorOn | ( | ) | [virtual] |
If on, the ReductionFactor is automatically adjusted to best meet the the DesiredUpdateRate in the current RenderWindow based on metrics from the last render.
| virtual void vtkParallelRenderManager::AutoImageReductionFactorOff | ( | ) | [virtual] |
If on, the ReductionFactor is automatically adjusted to best meet the the DesiredUpdateRate in the current RenderWindow based on metrics from the last render.
| virtual double vtkParallelRenderManager::GetRenderTime | ( | ) | [virtual] |
Get rendering metrics.
| virtual double vtkParallelRenderManager::GetImageProcessingTime | ( | ) | [virtual] |
Get rendering metrics.
Reimplemented in vtkCompositeRenderManager.
| virtual int vtkParallelRenderManager::GetSyncRenderWindowRenderers | ( | ) | [virtual] |
By default, the state of all renderers in the root's render window is propagated to the rest of the processes. In order for this to work, all render windows must have the same renderers in the same order. If this is not the case, you can turn off the SyncRenderWindowRenderers. When this flag is off, the list of renderers held by this parallel render manager (initially empty) is synced. You can modify the list of renderers with the AddRenderer, RemoveRenderer, and RemoveAllRenderers methods.
| virtual void vtkParallelRenderManager::SetSyncRenderWindowRenderers | ( | int | ) | [virtual] |
By default, the state of all renderers in the root's render window is propagated to the rest of the processes. In order for this to work, all render windows must have the same renderers in the same order. If this is not the case, you can turn off the SyncRenderWindowRenderers. When this flag is off, the list of renderers held by this parallel render manager (initially empty) is synced. You can modify the list of renderers with the AddRenderer, RemoveRenderer, and RemoveAllRenderers methods.
| virtual void vtkParallelRenderManager::SyncRenderWindowRenderersOn | ( | ) | [virtual] |
By default, the state of all renderers in the root's render window is propagated to the rest of the processes. In order for this to work, all render windows must have the same renderers in the same order. If this is not the case, you can turn off the SyncRenderWindowRenderers. When this flag is off, the list of renderers held by this parallel render manager (initially empty) is synced. You can modify the list of renderers with the AddRenderer, RemoveRenderer, and RemoveAllRenderers methods.
| virtual void vtkParallelRenderManager::SyncRenderWindowRenderersOff | ( | ) | [virtual] |
By default, the state of all renderers in the root's render window is propagated to the rest of the processes. In order for this to work, all render windows must have the same renderers in the same order. If this is not the case, you can turn off the SyncRenderWindowRenderers. When this flag is off, the list of renderers held by this parallel render manager (initially empty) is synced. You can modify the list of renderers with the AddRenderer, RemoveRenderer, and RemoveAllRenderers methods.
| virtual void vtkParallelRenderManager::AddRenderer | ( | vtkRenderer * | ) | [virtual] |
By default, the state of all renderers in the root's render window is propagated to the rest of the processes. In order for this to work, all render windows must have the same renderers in the same order. If this is not the case, you can turn off the SyncRenderWindowRenderers. When this flag is off, the list of renderers held by this parallel render manager (initially empty) is synced. You can modify the list of renderers with the AddRenderer, RemoveRenderer, and RemoveAllRenderers methods.
| virtual void vtkParallelRenderManager::RemoveRenderer | ( | vtkRenderer * | ) | [virtual] |
By default, the state of all renderers in the root's render window is propagated to the rest of the processes. In order for this to work, all render windows must have the same renderers in the same order. If this is not the case, you can turn off the SyncRenderWindowRenderers. When this flag is off, the list of renderers held by this parallel render manager (initially empty) is synced. You can modify the list of renderers with the AddRenderer, RemoveRenderer, and RemoveAllRenderers methods.
| virtual void vtkParallelRenderManager::RemoveAllRenderers | ( | ) | [virtual] |
By default, the state of all renderers in the root's render window is propagated to the rest of the processes. In order for this to work, all render windows must have the same renderers in the same order. If this is not the case, you can turn off the SyncRenderWindowRenderers. When this flag is off, the list of renderers held by this parallel render manager (initially empty) is synced. You can modify the list of renderers with the AddRenderer, RemoveRenderer, and RemoveAllRenderers methods.
| virtual void vtkParallelRenderManager::SetWriteBackImages | ( | int | ) | [virtual] |
If on (the default), the result of any image space manipulations are written back to the render window frame buffer. If off, the image stored in the frame buffer may not be correct. Either way, the correct frame buffer images may be read with vtkParallelRenderManager::GetPixelData. Turning WriteBackImages off may result in a speedup if the render window is not visible to the user and images are read back for further processing or transit.
| virtual int vtkParallelRenderManager::GetWriteBackImages | ( | ) | [virtual] |
If on (the default), the result of any image space manipulations are written back to the render window frame buffer. If off, the image stored in the frame buffer may not be correct. Either way, the correct frame buffer images may be read with vtkParallelRenderManager::GetPixelData. Turning WriteBackImages off may result in a speedup if the render window is not visible to the user and images are read back for further processing or transit.
| virtual void vtkParallelRenderManager::WriteBackImagesOn | ( | ) | [virtual] |
If on (the default), the result of any image space manipulations are written back to the render window frame buffer. If off, the image stored in the frame buffer may not be correct. Either way, the correct frame buffer images may be read with vtkParallelRenderManager::GetPixelData. Turning WriteBackImages off may result in a speedup if the render window is not visible to the user and images are read back for further processing or transit.
| virtual void vtkParallelRenderManager::WriteBackImagesOff | ( | ) | [virtual] |
If on (the default), the result of any image space manipulations are written back to the render window frame buffer. If off, the image stored in the frame buffer may not be correct. Either way, the correct frame buffer images may be read with vtkParallelRenderManager::GetPixelData. Turning WriteBackImages off may result in a speedup if the render window is not visible to the user and images are read back for further processing or transit.
| virtual void vtkParallelRenderManager::SetMagnifyImages | ( | int | ) | [virtual] |
If on (the default), when the ImageReductionFactor is greater than 1 and WriteBackImages is on, the image will be magnified to fill the entire render window.
| virtual int vtkParallelRenderManager::GetMagnifyImages | ( | ) | [virtual] |
If on (the default), when the ImageReductionFactor is greater than 1 and WriteBackImages is on, the image will be magnified to fill the entire render window.
| virtual void vtkParallelRenderManager::MagnifyImagesOn | ( | ) | [virtual] |
If on (the default), when the ImageReductionFactor is greater than 1 and WriteBackImages is on, the image will be magnified to fill the entire render window.
| virtual void vtkParallelRenderManager::MagnifyImagesOff | ( | ) | [virtual] |
If on (the default), when the ImageReductionFactor is greater than 1 and WriteBackImages is on, the image will be magnified to fill the entire render window.
| virtual void vtkParallelRenderManager::SetMagnifyImageMethod | ( | int | method | ) | [virtual] |
Sets the method used to magnify images. Nearest simply replicates each pixel enough times to fill the image. Linear performs linear interpolation between the pixels.
| virtual int vtkParallelRenderManager::GetMagnifyImageMethod | ( | ) | [virtual] |
Sets the method used to magnify images. Nearest simply replicates each pixel enough times to fill the image. Linear performs linear interpolation between the pixels.
| void vtkParallelRenderManager::SetMagnifyImageMethodToNearest | ( | ) | [inline] |
Sets the method used to magnify images. Nearest simply replicates each pixel enough times to fill the image. Linear performs linear interpolation between the pixels.
Definition at line 274 of file vtkParallelRenderManager.h.
| void vtkParallelRenderManager::SetMagnifyImageMethodToLinear | ( | ) | [inline] |
Sets the method used to magnify images. Nearest simply replicates each pixel enough times to fill the image. Linear performs linear interpolation between the pixels.
Definition at line 277 of file vtkParallelRenderManager.h.
| virtual void vtkParallelRenderManager::MagnifyImage | ( | vtkUnsignedCharArray * | fullImage, |
| const int | fullImageSize[2], | ||
| vtkUnsignedCharArray * | reducedImage, | ||
| const int |