47 #ifndef vtkParallelRenderManager_h
48 #define vtkParallelRenderManager_h
50 #include "vtkRenderingParallelModule.h"
107 virtual void InitializePieces();
116 virtual void InitializeOffScreen();
124 virtual void StartInteractor();
130 virtual void StartServices();
135 virtual void StopServices();
141 virtual void StartRender();
142 virtual void EndRender();
143 virtual void SatelliteStartRender();
144 virtual void SatelliteEndRender();
145 virtual void RenderRMI();
147 virtual void ResetCameraClippingRange(
vtkRenderer *ren);
148 virtual void ComputeVisiblePropBoundsRMI(
int renderId);
151 virtual void InitializeRMIs();
158 virtual void ResetAllCameras();
163 virtual void ComputeVisiblePropBounds(
vtkRenderer *ren,
double bounds[6]);
173 vtkGetMacro(ParallelRendering,
int);
185 vtkGetMacro(RenderEventPropagation,
int);
206 vtkGetMacro(UseCompositing,
int);
224 virtual void SetImageReductionFactor(
double factor);
225 vtkGetMacro(ImageReductionFactor,
double);
229 vtkGetMacro(MaxImageReductionFactor,
double);
237 virtual void SetImageReductionFactorForUpdateRate(
double DesiredUpdateRate);
246 vtkGetMacro(AutoImageReductionFactor,
int);
254 vtkGetMacro(RenderTime,
double);
255 vtkGetMacro(ImageProcessingTime,
double);
268 vtkGetMacro(SyncRenderWindowRenderers,
int);
273 virtual void RemoveAllRenderers();
287 vtkGetMacro(WriteBackImages,
int);
298 vtkGetMacro(MagnifyImages,
int);
310 virtual void SetMagnifyImageMethod(
int method);
311 vtkGetMacro(MagnifyImageMethod,
int);
313 this->SetMagnifyImageMethod(NEAREST);
316 this->SetMagnifyImageMethod(LINEAR);
325 const int fullImageSize[2],
327 const int reducedImageSize[2],
328 const int fullImageViewport[4] = NULL,
329 const int reducedImageViewport[4] = NULL);
331 const int fullImageSize[2],
333 const int reducedImageSize[2],
334 const int fullImageViewport[4] = NULL,
335 const int reducedImageViewport[4] = NULL);
337 const int fullImageSize[2],
339 const int reducedImageSize[2],
340 const int fullImageViewport[4] = NULL,
341 const int reducedImageViewport[4] = NULL);
353 virtual void GetPixelData(
int x1,
int y1,
int x2,
int y2,
366 virtual void GetReducedPixelData(
int x1,
int y1,
int x2,
int y2,
374 vtkGetVector2Macro(FullImageSize,
int);
380 vtkGetVector2Macro(ReducedImageSize,
int);
387 void TileWindows(
int xsize,
int ysize,
int nColumns);
395 vtkGetMacro(UseRGBA,
int);
404 vtkGetMacro(ForceRenderWindowSize,
int);
412 vtkSetVector2Macro(ForcedRenderWindowSize,
int);
413 vtkGetVector2Macro(ForcedRenderWindowSize,
int);
417 RENDER_RMI_TAG=34532,
418 COMPUTE_VISIBLE_PROP_BOUNDS_RMI_TAG=54636,
421 LIGHT_INFO_TAG=87838,
437 vtkGetMacro(UseBackBuffer,
int);
448 vtkGetMacro(SynchronizeTileProperties,
int);
458 virtual void GenericStartRenderCallback();
459 virtual void GenericEndRenderCallback();
471 void AddRenderWindowEventHandlers();
472 void RemoveRenderWindowEventHandlers();
482 int ForcedRenderWindowSize[2];
513 int FullImageSize[2];
514 int ReducedImageSize[2];
574 virtual void PreRenderProcessing() = 0;
575 virtual void PostRenderProcessing() = 0;
582 virtual void SetRenderWindowSize();
589 virtual void LocalComputeVisiblePropBounds(
vtkRenderer *ren,
double bounds[6]);
594 virtual void MagnifyReducedImage();
599 virtual void WriteFullImage();
604 virtual void ReadReducedImage();
610 virtual int LastRenderInFrontBuffer();
615 virtual int ChooseBuffer();
621 const int pixelDimensions[2]);
640 double TileViewport[4];
652 double CameraPosition[3];
653 double CameraFocalPoint[3];
654 double CameraViewUp[3];
655 double WindowCenter[2];
656 double CameraClippingRange[2];
659 double Background2[3];
672 double FocalPoint[3];
692 #endif //vtkParalleRenderManager_h
vtkUnsignedCharArray * FullImage
virtual bool ProcessWindowInformation(vtkMultiProcessStream &)
vtkMultiProcessController * Controller
virtual bool ProcessRendererInformation(vtkRenderer *, vtkMultiProcessStream &)
abstract base class for most VTK objects
virtual int CheckForAbortComposite()
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.
vtkUnsignedCharArray * ReducedImage
An object to control parallel rendering.
int RenderWindowImageUpToDate
unsigned long EndRenderTag
unsigned long BoundsRMIId
int SyncRenderWindowRenderers
virtual void SetRenderWindow(vtkRenderWindow *renwin)
unsigned long StartRenderTag
double AverageTimePerPixel
Used by SetImageReductionFactorForUpdateRate to smooth transitions transitions between image reductio...
abstract specification for renderers
virtual void SendRendererInformation(vtkRenderer *)
static void SetDefaultRenderEventPropagation(bool val)
Get/Set the default value used for RenderEventPropagation when a new instance of vtkParallelRenderMan...
void SetMagnifyImageMethodToNearest()
Sets the method used to magnify images.
unsigned long AbortRenderCheckTag
double ImageReductionFactor
vtkDoubleArray * Viewports
dynamic, self-adjusting array of double
Timer support and logging.
int ObservingRenderWindow
virtual void CollectWindowInformation(vtkMultiProcessStream &)
Subclass should override these methods (instead of SendWindowInformation/ReceiveWindowInformation or ...
a simple class to control print indentation
double ImageProcessingTime
int ForceRenderWindowSize
vtkRenderWindow * RenderWindow
virtual void ReceiveRendererInformation(vtkRenderer *)
virtual void CheckForAbortRender()
virtual void ReceiveWindowInformation()
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
dynamic, self-adjusting array of unsigned char
vtkWeakPointer< vtkRenderWindow > RenderWindow
static bool GetDefaultRenderEventPropagation()
create a window for renderers to draw into
virtual void SendWindowInformation()
Used to synchronize rendering information per frame.
int RootProcessId
The "root" node's process id.
unsigned long RenderRMIId
int AutoImageReductionFactor
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
unsigned long ResetCameraClippingRangeTag
double MaxImageReductionFactor
void SetMagnifyImageMethodToLinear()
Sets the method used to magnify images.
unsigned long ResetCameraTag
static bool DefaultRenderEventPropagation
int SynchronizeTileProperties
vtkRendererCollection * Renderers
int RenderEventPropagation
virtual void CollectRendererInformation(vtkRenderer *, vtkMultiProcessStream &)
virtual int ImageReduceRenderer(vtkRenderer *)
Returns true if the image for the given renderer should be rendered at a reduced size to be magnified...
Multiprocessing communication superclass.
double ImageReductionFactor