Go to the documentation of this file.
49 #ifndef vtkParallelRenderManager_h
50 #define vtkParallelRenderManager_h
273 this->SetMagnifyImageMethod(NEAREST);
276 this->SetMagnifyImageMethod(LINEAR);
283 const int fullImageSize[2],
285 const int reducedImageSize[2],
286 const int fullImageViewport[4] = NULL,
287 const int reducedImageViewport[4] = NULL);
289 const int fullImageSize[2],
291 const int reducedImageSize[2],
292 const int fullImageViewport[4] = NULL,
293 const int reducedImageViewport[4] = NULL);
295 const int fullImageSize[2],
297 const int reducedImageSize[2],
298 const int fullImageViewport[4] = NULL,
299 const int reducedImageViewport[4] = NULL);
361 RENDER_RMI_TAG=34532,
362 COMPUTE_VISIBLE_PROP_BOUNDS_RMI_TAG=54636,
365 LIGHT_INFO_TAG=87838,
420 int ForcedRenderWindowSize[2];
449 int FullImageSize[2];
450 int ReducedImageSize[2];
538 const int pixelDimensions[2]);
556 double TileViewport[4];
568 double CameraPosition[3];
569 double CameraFocalPoint[3];
570 double CameraViewUp[3];
571 double WindowCenter[2];
572 double CameraClippingRange[2];
575 double Background2[3];
588 double FocalPoint[3];
608 #endif //vtkParalleRenderManager_h
double ImageReductionFactor
int ObservingRenderWindow
virtual void CollectWindowInformation(vtkMultiProcessStream &)
virtual void SetRenderWindow(vtkRenderWindow *renWin)
virtual vtkRenderWindow * MakeRenderWindow()
GLsizei GLsizei GLenum GLenum const GLvoid * data
#define vtkGetObjectMacro(name, type)
virtual void StopServices()
virtual void SetRenderWindowSize()
vtkRenderWindow * RenderWindow
virtual void RemoveAllRenderers()
void RemoveRenderWindowEventHandlers()
#define vtkSetVector2Macro(name, type)
virtual void ReadReducedImage()
An object to control parallel rendering.
double AverageTimePerPixel
#define vtkGetVector2Macro(name, type)
unsigned long ResetCameraClippingRangeTag
virtual void GetReducedPixelData(vtkUnsignedCharArray *data)
virtual void StartServices()
static void MagnifyImageNearest(vtkUnsignedCharArray *fullImage, const int fullImageSize[2], vtkUnsignedCharArray *reducedImage, const int reducedImageSize[2], const int fullImageViewport[4]=NULL, const int reducedImageViewport[4]=NULL)
bool Restore(vtkMultiProcessStream &stream)
virtual void WriteFullImage()
stream used to pass data across processes using vtkMultiProcessController.
int RenderEventPropagation
virtual vtkRendererCollection * GetRenderers()
virtual void PostRenderProcessing()=0
virtual void StartRender()
virtual void GenericStartRenderCallback()
virtual void GetReducedPixelData(int x1, int y1, int x2, int y2, vtkUnsignedCharArray *data)
dynamic, self-adjusting array of unsigned char
void AddRenderWindowEventHandlers()
#define vtkTypeMacro(thisClass, superclass)
abstract base class for most VTK objects
virtual void CheckForAbortRender()
void Save(vtkMultiProcessStream &stream)
static void MagnifyImageLinear(vtkUnsignedCharArray *fullImage, const int fullImageSize[2], vtkUnsignedCharArray *reducedImage, const int reducedImageSize[2], const int fullImageViewport[4]=NULL, const int reducedImageViewport[4]=NULL)
double ImageReductionFactor
virtual void SendWindowInformation()
virtual void ComputeVisiblePropBoundsRMI(int renderId)
virtual void PreRenderProcessing()=0
unsigned long ResetCameraTag
int AutoImageReductionFactor
static bool DefaultRenderEventPropagation
void Save(vtkMultiProcessStream &stream)
virtual void InitializePieces()
unsigned long StartRenderTag
virtual void SetController(vtkMultiProcessController *controller)
unsigned long EndRenderTag
virtual bool ProcessWindowInformation(vtkMultiProcessStream &)
double ImageProcessingTime
int ForceRenderWindowSize
static bool GetDefaultRenderEventPropagation()
virtual vtkRenderer * MakeRenderer()
virtual void ResetCamera(vtkRenderer *ren)
int SynchronizeTileProperties
virtual void GetPixelData(vtkUnsignedCharArray *data)
virtual int ImageReduceRenderer(vtkRenderer *)
virtual void MagnifyReducedImage()
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual void SatelliteStartRender()
Multiprocessing communication superclass.
#define VTKRENDERINGPARALLEL_EXPORT
a simple class to control print indentation
virtual void SetRenderWindowPixelData(vtkUnsignedCharArray *pixels, const int pixelDimensions[2])
vtkMultiProcessController * Controller
int RenderWindowImageUpToDate
virtual void AddRenderer(vtkRenderer *)
unsigned long AbortRenderCheckTag
virtual void CollectRendererInformation(vtkRenderer *, vtkMultiProcessStream &)
virtual void MagnifyImage(vtkUnsignedCharArray *fullImage, const int fullImageSize[2], vtkUnsignedCharArray *reducedImage, const int reducedImageSize[2], const int fullImageViewport[4]=NULL, const int reducedImageViewport[4]=NULL)
unsigned long BoundsRMIId
#define vtkGetMacro(name, type)
unsigned long RenderRMIId
virtual void RemoveRenderer(vtkRenderer *)
virtual void StartInteractor()
virtual void InitializeRMIs()
vtkParallelRenderManager()
virtual void ComputeVisiblePropBounds(vtkRenderer *ren, double bounds[6])
virtual void SetMagnifyImageMethod(int method)
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkSetMacro(IgnoreDriverBugs, bool)
bool Restore(vtkMultiProcessStream &stream)
Timer support and logging.
virtual int CheckForAbortComposite()
vtkUnsignedCharArray * ReducedImage
double MaxImageReductionFactor
virtual void ReceiveWindowInformation()
virtual void ResetAllCameras()
virtual void SatelliteEndRender()
virtual void GenericEndRenderCallback()
virtual void ReceiveRendererInformation(vtkRenderer *)
virtual void SendRendererInformation(vtkRenderer *)
vtkRendererCollection * Renderers
virtual void SetImageReductionFactorForUpdateRate(double DesiredUpdateRate)
int SyncRenderWindowRenderers
bool Restore(vtkMultiProcessStream &stream)
abstract specification for renderers
virtual void SetImageReductionFactor(double factor)
void SetMagnifyImageMethodToLinear()
virtual int LastRenderInFrontBuffer()
dynamic, self-adjusting array of double
vtkDoubleArray * Viewports
virtual void GetPixelData(int x1, int y1, int x2, int y2, vtkUnsignedCharArray *data)
static void SetDefaultRenderEventPropagation(bool val)
void Save(vtkMultiProcessStream &stream)
create a window for renderers to draw into
virtual bool ProcessRendererInformation(vtkRenderer *, vtkMultiProcessStream &)
GLint GLint GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
void SetMagnifyImageMethodToNearest()
virtual void InitializeOffScreen()
virtual void LocalComputeVisiblePropBounds(vtkRenderer *ren, double bounds[6])
vtkUnsignedCharArray * FullImage
void TileWindows(int xsize, int ysize, int nColumns)
~vtkParallelRenderManager()
virtual int ChooseBuffer()
virtual void ResetCameraClippingRange(vtkRenderer *ren)