21#ifndef vtkSynchronizedRenderers_h
22#define vtkSynchronizedRenderers_h
26#include "vtkRenderingParallelModule.h"
32VTK_ABI_NAMESPACE_BEGIN
167 vtkSetMacro(FixBackground,
bool);
168 vtkGetMacro(FixBackground,
bool);
169 vtkBooleanMacro(FixBackground,
bool);
187 this->Size[0] = this->Size[1] = 0;
191 void Resize(
int dx,
int dy,
int numcomps)
194 this->Allocate(dx, dy, numcomps);
241 void Allocate(
int dx,
int dy,
int numcomps);
322 double LastViewport[4];
324 double LastBackground[3];
325 double LastBackgroundAlpha;
326 bool LastTexturedBackground;
327 bool LastGradientBackground;
331 std::unique_ptr<vtkInternals> Internal;
Configuration for FXAA implementations.
a simple class to control print indentation
Store data for independent viewers.
Multiprocessing communication superclass.
stream used to pass data across processes using vtkMultiProcessController.
Perform FXAA antialiasing on the current framebuffer.
abstract specification for renderers
Hold a reference to a vtkObjectBase instance.
static vtkSmartPointer< T > New()
Create an instance of a VTK object.
virtual void SetParallelController(vtkMultiProcessController *)
Set the parallel message communicator.
vtkIndependentViewerCollection * IndependentViewers
vtkOpenGLRenderer * Renderer
virtual void SlaveStartRender()
virtual void SetRenderer(vtkRenderer *)
Set the renderer to be synchronized by this instance.
static vtkSynchronizedRenderers * New()
virtual vtkRawImage & CaptureRenderedImage()
Can be used in HandleEndRender(), MasterEndRender() or SlaveEndRender() calls to capture the rendered...
vtkSynchronizedRenderers()
virtual void HandleStartRender()
bool AutomaticEventHandling
virtual void HandleAbortRender()
vtkSynchronizedRenderers * CaptureDelegate
~vtkSynchronizedRenderers() override
virtual void HandleEndRender()
void CollectiveExpandForVisiblePropBounds(double bounds[6])
Computes visible prob bounds.
void EnableSynchronizableActors(bool)
Allows synchronizing collections of actors from local to remote renderer.
virtual vtkRenderer * GetRenderer()
Set the renderer to be synchronized by this instance.
vtkMultiProcessController * ParallelController
virtual void SetCaptureDelegate(vtkSynchronizedRenderers *)
When set, this->CaptureRenderedImage() does not capture image from the screen instead passes the call...
virtual void MasterEndRender()
virtual void SlaveEndRender()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void MasterStartRender()
virtual void PushImageToScreen()
Can be used in HandleEndRender(), MasterEndRender() or SlaveEndRender() calls to paste back the image...
dynamic, self-adjusting array of unsigned char
double EyeTransformMatrix[16]
void CopyTo(vtkRenderer *)
bool Restore(vtkMultiProcessStream &stream)
void Save(vtkMultiProcessStream &stream)
double ModelTransformMatrix[16]
double CameraWindowCenter[2]
void CopyFrom(vtkRenderer *)
double CameraFocalPoint[3]
double CameraParallelScale
double CameraClippingRange[2]
int CameraParallelProjection
double CameraEyeSeparation
vtkRawImage can be used to make it easier to deal with images for compositing/communicating over clie...
void Initialize(int dx, int dy, vtkUnsignedCharArray *data)
Create the buffer from an image data.
void SaveAsPNG(const char *filename)
bool PushToViewport(vtkRenderer *renderer, bool blend=true)
Pushes the image to the viewport.
void Resize(int dx, int dy, int numcomps)
vtkUnsignedCharArray * GetRawPtr()
bool Capture(vtkRenderer *)
bool PushToFrameBuffer(vtkRenderer *ren, bool blend=true)
This is a raw version of PushToViewport() that assumes that the glViewport() has already been setup e...