VTK
|
synchronizes renderers across processes. More...
#include <vtkSynchronizedRenderers.h>
synchronizes renderers across processes.
vtkSynchronizedRenderers is used to synchronize renderers (vtkRenderer and subclasses) across processes for parallel rendering. It's designed to be used in conjunction with vtkSynchronizedRenderWindows to synchronize the render windows among those processes. This class handles synchronization of certain render parameters among the renderers such as viewport, camera parameters. It doesn't support compositing of rendered images across processes on its own. You typically either subclass to implement a compositing algorithm or use a renderer capable of compositing eg. IceT based renderer.
Definition at line 45 of file vtkSynchronizedRenderers.h.
Reimplemented from vtkObject.
Reimplemented in vtkCompositedSynchronizedRenderers, and vtkClientServerSynchronizedRenderers.
Definition at line 49 of file vtkSynchronizedRenderers.h.
anonymous enum |
Definition at line 127 of file vtkSynchronizedRenderers.h.
vtkSynchronizedRenderers::vtkSynchronizedRenderers | ( | ) | [protected] |
vtkSynchronizedRenderers::~vtkSynchronizedRenderers | ( | ) | [protected] |
static vtkSynchronizedRenderers* vtkSynchronizedRenderers::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject.
Reimplemented in vtkCompositedSynchronizedRenderers, and vtkClientServerSynchronizedRenderers.
static int vtkSynchronizedRenderers::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 vtkObject.
Reimplemented in vtkCompositedSynchronizedRenderers, and vtkClientServerSynchronizedRenderers.
virtual int vtkSynchronizedRenderers::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 vtkObject.
Reimplemented in vtkCompositedSynchronizedRenderers, and vtkClientServerSynchronizedRenderers.
static vtkSynchronizedRenderers* vtkSynchronizedRenderers::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkObject.
Reimplemented in vtkCompositedSynchronizedRenderers, and vtkClientServerSynchronizedRenderers.
virtual vtkObjectBase* vtkSynchronizedRenderers::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkObject.
Reimplemented in vtkCompositedSynchronizedRenderers, and vtkClientServerSynchronizedRenderers.
Reimplemented from vtkObject.
Reimplemented in vtkCompositedSynchronizedRenderers, and vtkClientServerSynchronizedRenderers.
void vtkSynchronizedRenderers::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 vtkCompositedSynchronizedRenderers, and vtkClientServerSynchronizedRenderers.
virtual void vtkSynchronizedRenderers::SetRenderer | ( | vtkRenderer * | ) | [virtual] |
Set the renderer to be synchronized by this instance. A vtkSynchronizedRenderers instance can be used to synchronize exactly 1 renderer on each processes. You can create multiple instances on vtkSynchronizedRenderers to synchronize multiple renderers.
virtual vtkRenderer* vtkSynchronizedRenderers::GetRenderer | ( | ) | [virtual] |
Set the renderer to be synchronized by this instance. A vtkSynchronizedRenderers instance can be used to synchronize exactly 1 renderer on each processes. You can create multiple instances on vtkSynchronizedRenderers to synchronize multiple renderers.
virtual void vtkSynchronizedRenderers::SetParallelController | ( | vtkMultiProcessController * | ) | [virtual] |
Set the parallel message communicator. This is used to communicate among processes.
virtual vtkMultiProcessController* vtkSynchronizedRenderers::GetParallelController | ( | ) | [virtual] |
Set the parallel message communicator. This is used to communicate among processes.
virtual void vtkSynchronizedRenderers::SetParallelRendering | ( | bool | ) | [virtual] |
Enable/Disable parallel rendering. Unless Parallel rendering is on, the cameras won't be synchronized across processes.
virtual bool vtkSynchronizedRenderers::GetParallelRendering | ( | ) | [virtual] |
Enable/Disable parallel rendering. Unless Parallel rendering is on, the cameras won't be synchronized across processes.
virtual void vtkSynchronizedRenderers::ParallelRenderingOn | ( | ) | [virtual] |
Enable/Disable parallel rendering. Unless Parallel rendering is on, the cameras won't be synchronized across processes.
virtual void vtkSynchronizedRenderers::ParallelRenderingOff | ( | ) | [virtual] |
Enable/Disable parallel rendering. Unless Parallel rendering is on, the cameras won't be synchronized across processes.
virtual void vtkSynchronizedRenderers::SetImageReductionFactor | ( | int | ) | [virtual] |
Get/Set the image reduction factor.
virtual int vtkSynchronizedRenderers::GetImageReductionFactor | ( | ) | [virtual] |
Get/Set the image reduction factor.
virtual void vtkSynchronizedRenderers::SetWriteBackImages | ( | bool | ) | [virtual] |
If on (default), the rendered images are pasted back on to the screen. You should turn this flag off on processes that are not meant to be visible to the user.
virtual bool vtkSynchronizedRenderers::GetWriteBackImages | ( | ) | [virtual] |
If on (default), the rendered images are pasted back on to the screen. You should turn this flag off on processes that are not meant to be visible to the user.
virtual void vtkSynchronizedRenderers::WriteBackImagesOn | ( | ) | [virtual] |
If on (default), the rendered images are pasted back on to the screen. You should turn this flag off on processes that are not meant to be visible to the user.
virtual void vtkSynchronizedRenderers::WriteBackImagesOff | ( | ) | [virtual] |
If on (default), the rendered images are pasted back on to the screen. You should turn this flag off on processes that are not meant to be visible to the user.
virtual void vtkSynchronizedRenderers::SetRootProcessId | ( | int | ) | [virtual] |
Get/Set the root-process id. This is required when the ParallelController is a vtkSocketController. Set to 0 by default (which will not work when using a vtkSocketController but will work for vtkMPIController).
virtual int vtkSynchronizedRenderers::GetRootProcessId | ( | ) | [virtual] |
Get/Set the root-process id. This is required when the ParallelController is a vtkSocketController. Set to 0 by default (which will not work when using a vtkSocketController but will work for vtkMPIController).
void vtkSynchronizedRenderers::CollectiveExpandForVisiblePropBounds | ( | double | bounds[6] | ) |
Computes visible prob bounds. This must be called on all processes at the same time. The collective result is made available on all processes once this method returns. Note that this method requires that bounds is initialized to some value. This expands the bounds to include the prop bounds.
virtual void vtkSynchronizedRenderers::SetCaptureDelegate | ( | vtkSynchronizedRenderers * | ) | [virtual] |
When set, this->CaptureRenderedImage() does not capture image from the screen instead passes the call to the delegate.
virtual vtkSynchronizedRenderers* vtkSynchronizedRenderers::GetCaptureDelegate | ( | ) | [virtual] |
When set, this->CaptureRenderedImage() does not capture image from the screen instead passes the call to the delegate.
virtual void vtkSynchronizedRenderers::SetAutomaticEventHandling | ( | bool | ) | [virtual] |
When multiple groups of processes are synchronized together using different controllers, one needs to specify the order in which the various synchronizers execute. In such cases one starts with the outer most vtkSynchronizedRenderers, sets the dependent one as a CaptureDelegate on it and the turn off AutomaticEventHandling on the delegate.
virtual bool vtkSynchronizedRenderers::GetAutomaticEventHandling | ( | ) | [virtual] |
When multiple groups of processes are synchronized together using different controllers, one needs to specify the order in which the various synchronizers execute. In such cases one starts with the outer most vtkSynchronizedRenderers, sets the dependent one as a CaptureDelegate on it and the turn off AutomaticEventHandling on the delegate.
virtual void vtkSynchronizedRenderers::AutomaticEventHandlingOn | ( | ) | [virtual] |
When multiple groups of processes are synchronized together using different controllers, one needs to specify the order in which the various synchronizers execute. In such cases one starts with the outer most vtkSynchronizedRenderers, sets the dependent one as a CaptureDelegate on it and the turn off AutomaticEventHandling on the delegate.
virtual void vtkSynchronizedRenderers::AutomaticEventHandlingOff | ( | ) | [virtual] |
When multiple groups of processes are synchronized together using different controllers, one needs to specify the order in which the various synchronizers execute. In such cases one starts with the outer most vtkSynchronizedRenderers, sets the dependent one as a CaptureDelegate on it and the turn off AutomaticEventHandling on the delegate.
virtual void vtkSynchronizedRenderers::HandleStartRender | ( | ) | [protected, virtual] |
virtual void vtkSynchronizedRenderers::HandleEndRender | ( | ) | [protected, virtual] |
virtual void vtkSynchronizedRenderers::HandleAbortRender | ( | ) | [inline, protected, virtual] |
Definition at line 219 of file vtkSynchronizedRenderers.h.
virtual void vtkSynchronizedRenderers::MasterStartRender | ( | ) | [protected, virtual] |
virtual void vtkSynchronizedRenderers::SlaveStartRender | ( | ) | [protected, virtual] |
virtual void vtkSynchronizedRenderers::MasterEndRender | ( | ) | [protected, virtual] |
Reimplemented in vtkCompositedSynchronizedRenderers, and vtkClientServerSynchronizedRenderers.
virtual void vtkSynchronizedRenderers::SlaveEndRender | ( | ) | [protected, virtual] |
Reimplemented in vtkCompositedSynchronizedRenderers, and vtkClientServerSynchronizedRenderers.
virtual vtkRawImage& vtkSynchronizedRenderers::CaptureRenderedImage | ( | ) | [protected, virtual] |
Can be used in HandleEndRender(), MasterEndRender() or SlaveEndRender() calls to capture the rendered image. If this->ImageReductionFactor, then the image will be capture in this->ReducedImage, otherwise it will be captured in this->FullImage (this->ReducedImage will be pointing to the same image).
void vtkSynchronizedRenderers::PushImageToScreen | ( | ) | [protected] |
Can be used in HandleEndRender(), MasterEndRender() or SlaveEndRender() calls to paste back the image from either this->ReducedImage or this->FullImage info the viewport.
friend class vtkObserver [friend] |
Definition at line 258 of file vtkSynchronizedRenderers.h.
Definition at line 227 of file vtkSynchronizedRenderers.h.
vtkOpenGLRenderer* vtkSynchronizedRenderers::Renderer [protected] |
Definition at line 228 of file vtkSynchronizedRenderers.h.
Definition at line 242 of file vtkSynchronizedRenderers.h.
vtkRawImage vtkSynchronizedRenderers::ReducedImage [protected] |
Definition at line 243 of file vtkSynchronizedRenderers.h.
vtkRawImage vtkSynchronizedRenderers::FullImage [protected] |
Definition at line 244 of file vtkSynchronizedRenderers.h.
bool vtkSynchronizedRenderers::ParallelRendering [protected] |
Definition at line 246 of file vtkSynchronizedRenderers.h.
int vtkSynchronizedRenderers::ImageReductionFactor [protected] |
Definition at line 247 of file vtkSynchronizedRenderers.h.
bool vtkSynchronizedRenderers::WriteBackImages [protected] |
Definition at line 248 of file vtkSynchronizedRenderers.h.
int vtkSynchronizedRenderers::RootProcessId [protected] |
Definition at line 249 of file vtkSynchronizedRenderers.h.
bool vtkSynchronizedRenderers::AutomaticEventHandling [protected] |
Definition at line 250 of file vtkSynchronizedRenderers.h.