49 #ifndef __vtkParallelRenderManager_h
50 #define __vtkParallelRenderManager_h
98 virtual void InitializePieces();
105 virtual void InitializeOffScreen();
111 virtual void StartInteractor();
115 virtual void StartServices();
118 virtual void StopServices();
122 virtual void StartRender();
123 virtual void EndRender();
124 virtual void SatelliteStartRender();
125 virtual void SatelliteEndRender();
126 virtual void RenderRMI();
128 virtual void ResetCameraClippingRange(
vtkRenderer *ren);
129 virtual void ComputeVisiblePropBoundsRMI(
int renderId);
132 virtual void InitializeRMIs();
137 virtual void ResetAllCameras();
140 virtual void ComputeVisiblePropBounds(
vtkRenderer *ren,
double bounds[6]);
147 vtkSetMacro(ParallelRendering,
int);
148 vtkGetMacro(ParallelRendering,
int);
149 vtkBooleanMacro(ParallelRendering,
int);
157 vtkSetMacro(RenderEventPropagation,
int);
158 vtkGetMacro(RenderEventPropagation,
int);
159 vtkBooleanMacro(RenderEventPropagation,
int);
166 static void SetDefaultRenderEventPropagation(
bool val)
168 static bool GetDefaultRenderEventPropagation()
176 vtkSetMacro(UseCompositing,
int);
177 vtkGetMacro(UseCompositing,
int);
178 vtkBooleanMacro(UseCompositing,
int);
193 virtual void SetImageReductionFactor(
double factor);
194 vtkGetMacro(ImageReductionFactor,
double);
197 vtkSetMacro(MaxImageReductionFactor,
double);
198 vtkGetMacro(MaxImageReductionFactor,
double);
205 virtual void SetImageReductionFactorForUpdateRate(
double DesiredUpdateRate);
211 vtkSetMacro(AutoImageReductionFactor,
int);
212 vtkGetMacro(AutoImageReductionFactor,
int);
213 vtkBooleanMacro(AutoImageReductionFactor,
int);
218 vtkGetMacro(RenderTime,
double);
219 vtkGetMacro(ImageProcessingTime,
double);
231 vtkGetMacro(SyncRenderWindowRenderers,
int);
232 vtkSetMacro(SyncRenderWindowRenderers,
int);
233 vtkBooleanMacro(SyncRenderWindowRenderers,
int);
236 virtual void RemoveAllRenderers();
247 vtkSetMacro(WriteBackImages,
int);
248 vtkGetMacro(WriteBackImages,
int);
249 vtkBooleanMacro(WriteBackImages,
int);
256 vtkSetMacro(MagnifyImages,
int);
257 vtkGetMacro(MagnifyImages,
int);
258 vtkBooleanMacro(MagnifyImages,
int);
269 virtual void SetMagnifyImageMethod(
int method);
270 vtkGetMacro(MagnifyImageMethod,
int);
272 this->SetMagnifyImageMethod(NEAREST);
275 this->SetMagnifyImageMethod(LINEAR);
282 const int fullImageSize[2],
284 const int reducedImageSize[2],
285 const int fullImageViewport[4] = NULL,
286 const int reducedImageViewport[4] = NULL);
288 const int fullImageSize[2],
290 const int reducedImageSize[2],
291 const int fullImageViewport[4] = NULL,
292 const int reducedImageViewport[4] = NULL);
294 const int fullImageSize[2],
296 const int reducedImageSize[2],
297 const int fullImageViewport[4] = NULL,
298 const int reducedImageViewport[4] = NULL);
308 virtual void GetPixelData(
int x1,
int y1,
int x2,
int y2,
319 virtual void GetReducedPixelData(
int x1,
int y1,
int x2,
int y2,
325 vtkGetVector2Macro(FullImageSize,
int);
329 vtkGetVector2Macro(ReducedImageSize,
int);
334 void TileWindows(
int xsize,
int ysize,
int nColumns);
339 vtkSetMacro(UseRGBA,
int);
340 vtkGetMacro(UseRGBA,
int);
347 vtkSetMacro(ForceRenderWindowSize,
int);
348 vtkGetMacro(ForceRenderWindowSize,
int);
354 vtkSetVector2Macro(ForcedRenderWindowSize,
int);
355 vtkGetVector2Macro(ForcedRenderWindowSize,
int);
360 RENDER_RMI_TAG=34532,
361 COMPUTE_VISIBLE_PROP_BOUNDS_RMI_TAG=54636,
364 LIGHT_INFO_TAG=87838,
374 #if defined(_COMPILER_VERSION)
375 # pragma set woff 3303
377 #if defined(__INTEL_COMPILER)
378 # pragma warning (push)
379 # pragma warning (disable:858)
382 #ifdef VTK_WORKAROUND_WINDOWS_MANGLE
383 # define StartServiceA StartService
384 # define StartServiceW StartService
389 VTK_LEGACY(
virtual void StartService());
391 #ifdef VTK_WORKAROUND_WINDOWS_MANGLE
392 # undef StartServiceW
393 # undef StartServiceA
395 VTK_LEGACY(
virtual void StartServiceA());
396 VTK_LEGACY(
virtual void StartServiceW());
401 #if defined(__INTEL_COMPILER)
402 # pragma warning (pop)
404 #if defined(_COMPILER_VERSION)
405 # pragma reset woff 3303
413 vtkSetMacro(UseBackBuffer,
int);
414 vtkGetMacro(UseBackBuffer,
int);
415 vtkBooleanMacro(UseBackBuffer,
int);
423 vtkSetMacro(SynchronizeTileProperties,
int);
424 vtkGetMacro(SynchronizeTileProperties,
int);
425 vtkBooleanMacro(SynchronizeTileProperties,
int);
431 virtual void GenericStartRenderCallback();
432 virtual void GenericEndRenderCallback();
443 void AddRenderWindowEventHandlers();
444 void RemoveRenderWindowEventHandlers();
454 int ForcedRenderWindowSize[2];
483 int FullImageSize[2];
484 int ReducedImageSize[2];
540 virtual void PreRenderProcessing() = 0;
541 virtual void PostRenderProcessing() = 0;
546 virtual void SetRenderWindowSize();
551 virtual void LocalComputeVisiblePropBounds(
vtkRenderer *ren,
double bounds[6]);
554 virtual void MagnifyReducedImage();
557 virtual void WriteFullImage();
560 virtual void ReadReducedImage();
564 virtual int LastRenderInFrontBuffer();
567 virtual int ChooseBuffer();
572 const int pixelDimensions[2]);
590 double TileViewport[4];
602 double CameraPosition[3];
603 double CameraFocalPoint[3];
604 double CameraViewUp[3];
605 double WindowCenter[2];
606 double CameraClippingRange[2];
609 double Background2[3];
622 double FocalPoint[3];
642 #endif //__vtkParalleRenderManager_h