33 #ifndef vtkSynchronizedRenderers_h 34 #define vtkSynchronizedRenderers_h 36 #include "vtkRenderingParallelModule.h" 81 vtkGetMacro(ParallelRendering,
bool);
89 vtkSetClampMacro(ImageReductionFactor,
int, 1, 50);
90 vtkGetMacro(ImageReductionFactor,
int);
100 vtkGetMacro(WriteBackImages,
bool);
107 VTK_LEGACY(
void SetUseFXAA(
bool));
108 VTK_LEGACY(
bool GetUseFXAA());
109 VTK_LEGACY(
void UseFXAAOn());
110 VTK_LEGACY(
void UseFXAAOff());
122 vtkGetMacro(RootProcessId,
int);
132 void CollectiveExpandForVisiblePropBounds(
double bounds[6]);
152 vtkGetMacro(AutomaticEventHandling,
bool);
158 SYNC_RENDERER_TAG = 15101,
159 RESET_CAMERA_TAG = 15102,
160 COMPUTE_BOUNDS_TAG = 15103
171 this->Size[0] = this->Size[1] = 0;
175 void Resize(
int dx,
int dy,
int numcomps)
178 this->Allocate(dx, dy, numcomps);
193 {
return this->Data; }
201 bool PushToFrameBuffer(
vtkRenderer *ren =
nullptr);
209 void SaveAsPNG(
const char* filename);
216 void Allocate(
int dx,
int dy,
int numcomps);
229 double CameraPosition[3];
230 double CameraFocalPoint[3];
231 double CameraViewUp[3];
232 double CameraWindowCenter[2];
233 double CameraClippingRange[2];
236 double EyeTransformMatrix[16];
237 double ModelTransformMatrix[16];
249 virtual void HandleStartRender();
250 virtual void HandleEndRender();
253 virtual void MasterStartRender();
254 virtual void SlaveStartRender();
256 virtual void MasterEndRender();
257 virtual void SlaveEndRender();
276 virtual void PushImageToScreen();
293 vtkObserver* Observer;
294 friend class vtkObserver;
299 double LastViewport[4];
int CameraParallelProjection
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
stream used to pass data across processes using vtkMultiProcessController.
vtkSynchronizedRenderers * CaptureDelegate
abstract specification for renderers
vtkUnsignedCharArray * GetRawPtr()
static vtkSmartPointer< T > New()
Create an instance of a VTK object.
vtkRawImage can be used to make it easier to deal with images for compositing/communicating over clie...
virtual void HandleAbortRender()
a simple class to control print indentation
vtkMultiProcessController * ParallelController
bool AutomaticEventHandling
double CameraParallelScale
dynamic, self-adjusting array of unsigned char
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void Resize(int dx, int dy, int numcomps)
synchronizes renderers across processes.
Perform FXAA antialiasing on the current framebuffer.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkOpenGLRenderer * Renderer
Configuration for FXAA implementations.
Multiprocessing communication superclass.