Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkCaveSynchronizedRenderers Class Reference

vtkSynchronizedRenderers subclass that handles adjusting of camera for cave configurations. More...

#include <vtkCaveSynchronizedRenderers.h>

Inheritance diagram for vtkCaveSynchronizedRenderers:
Inheritance graph
[legend]
Collaboration diagram for vtkCaveSynchronizedRenderers:
Collaboration graph
[legend]

Public Types

typedef vtkSynchronizedRenderers Superclass
 
- Public Types inherited from vtkSynchronizedRenderers
typedef vtkObject Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
- Public Member Functions inherited from vtkSynchronizedRenderers
vtkSynchronizedRenderersNewInstance () const
 
void CollectiveExpandForVisiblePropBounds (double bounds[6])
 
virtual vtkRendererGetRenderer ()
 
virtual void SetParallelController (vtkMultiProcessController *)
 
virtual vtkMultiProcessControllerGetParallelController ()
 
virtual void SetParallelRendering (bool)
 
virtual bool GetParallelRendering ()
 
virtual void ParallelRenderingOn ()
 
virtual void ParallelRenderingOff ()
 
virtual void SetImageReductionFactor (int)
 
virtual int GetImageReductionFactor ()
 
virtual void SetWriteBackImages (bool)
 
virtual bool GetWriteBackImages ()
 
virtual void WriteBackImagesOn ()
 
virtual void WriteBackImagesOff ()
 
virtual void SetRootProcessId (int)
 
virtual int GetRootProcessId ()
 
virtual void SetCaptureDelegate (vtkSynchronizedRenderers *)
 
virtual vtkSynchronizedRenderersGetCaptureDelegate ()
 
virtual void SetAutomaticEventHandling (bool)
 
virtual bool GetAutomaticEventHandling ()
 
virtual void AutomaticEventHandlingOn ()
 
virtual void AutomaticEventHandlingOff ()
 
virtual vtkRendererGetRenderer ()
 
virtual void SetParallelController (vtkMultiProcessController *)
 
virtual vtkMultiProcessControllerGetParallelController ()
 
virtual void SetParallelRendering (bool)
 
virtual bool GetParallelRendering ()
 
virtual void ParallelRenderingOn ()
 
virtual void ParallelRenderingOff ()
 
virtual void SetImageReductionFactor (int)
 
virtual int GetImageReductionFactor ()
 
virtual void SetWriteBackImages (bool)
 
virtual bool GetWriteBackImages ()
 
virtual void WriteBackImagesOn ()
 
virtual void WriteBackImagesOff ()
 
virtual void SetRootProcessId (int)
 
virtual int GetRootProcessId ()
 
virtual void SetCaptureDelegate (vtkSynchronizedRenderers *)
 
virtual vtkSynchronizedRenderersGetCaptureDelegate ()
 
virtual void SetAutomaticEventHandling (bool)
 
virtual bool GetAutomaticEventHandling ()
 
virtual void AutomaticEventHandlingOn ()
 
virtual void AutomaticEventHandlingOff ()
 
- Public Member Functions inherited from vtkObject
 vtkBaseTypeMacro (vtkObject, vtkObjectBase)
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool debugFlag)
 
virtual void Modified ()
 
virtual vtkMTimeType GetMTime ()
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 
virtual void Delete ()
 
virtual void FastDelete ()
 
void Print (ostream &os)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
void SetReferenceCount (int)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 
void PrintRevisions (ostream &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 
void PrintRevisions (ostream &)
 

Static Public Member Functions

static vtkCaveSynchronizedRenderersNew ()
 
static int IsTypeOf (const char *type)
 
static vtkCaveSynchronizedRenderersSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkSynchronizedRenderers
static vtkSynchronizedRenderersNew ()
 
static int IsTypeOf (const char *type)
 
static vtkSynchronizedRenderersSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkObject
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static vtkTypeBool IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 
static vtkObjectBaseNew ()
 

Protected Member Functions

 vtkCaveSynchronizedRenderers ()
 
 ~vtkCaveSynchronizedRenderers () override
 
void HandleStartRender () override
 Called at the start of each render. More...
 
void ProcessCaveConfiguration ()
 During constructor, processes the configuration file to setup the display information. More...
 
void SetNumberOfDisplays (int numberOfDisplays)
 These are to initialize the displays. More...
 
void SetEyeSeparation (double eyeSeparation)
 Set the eye separation for all the displays. More...
 
void DefineDisplay (int idx, double origin[3], double x[3], double y[3])
 
void ComputeCamera (vtkCamera *cam)
 Method to update the camera. More...
 
void SetRenderer (vtkRenderer *renderer) override
 Override Superclass to compute Displays parameters in case of a single screen cave (e.g. More...
 
- Protected Member Functions inherited from vtkSynchronizedRenderers
virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkSynchronizedRenderers ()
 
 ~vtkSynchronizedRenderers ()
 
virtual void HandleEndRender ()
 
virtual void HandleAbortRender ()
 
virtual void MasterStartRender ()
 
virtual void SlaveStartRender ()
 
virtual void MasterEndRender ()
 
virtual void SlaveEndRender ()
 
virtual vtkRawImage & CaptureRenderedImage ()
 
virtual void PushImageToScreen ()
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
void RegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE
 
void UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

double EyeSeparation
 
int NumberOfDisplays
 
double ** Displays
 
double DisplayOrigin [3]
 
double DisplayX [3]
 
double DisplayY [3]
 
int once
 
- Protected Attributes inherited from vtkSynchronizedRenderers
vtkMultiProcessControllerParallelController
 
vtkOpenGLRendererRenderer
 
vtkSynchronizedRenderersCaptureDelegate
 
vtkRawImage ReducedImage
 
vtkRawImage FullImage
 
bool ParallelRendering
 
int ImageReductionFactor
 
bool WriteBackImages
 
int RootProcessId
 
bool AutomaticEventHandling
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Additional Inherited Members

- Public Attributes inherited from vtkSynchronizedRenderers
 SYNC_RENDERER_TAG
 
 RESET_CAMERA_TAG
 
 COMPUTE_BOUNDS_TAG
 

Detailed Description

vtkSynchronizedRenderers subclass that handles adjusting of camera for cave configurations.

vtkCaveSynchronizedRenderers is vtkSynchronizedRenderers used for in CAVE configuration. It is used on the render-server side. It ensures that the camera is transformed based on the orientations specified in the pvx configuration file. This code was previously in class vtkCaveRenderManager.

In case of a single display, if the cave bounds are not set, we compute these values from vtkDisplayConfiguration::Geometry and the client camera view angle.

Definition at line 27 of file vtkCaveSynchronizedRenderers.h.

Member Typedef Documentation

◆ Superclass

Definition at line 31 of file vtkCaveSynchronizedRenderers.h.

Constructor & Destructor Documentation

◆ vtkCaveSynchronizedRenderers()

vtkCaveSynchronizedRenderers::vtkCaveSynchronizedRenderers ( )
protected

◆ ~vtkCaveSynchronizedRenderers()

vtkCaveSynchronizedRenderers::~vtkCaveSynchronizedRenderers ( )
overrideprotected

Member Function Documentation

◆ New()

static vtkCaveSynchronizedRenderers* vtkCaveSynchronizedRenderers::New ( )
static

◆ GetClassName()

virtual const char* vtkCaveSynchronizedRenderers::GetClassName ( )
virtual

◆ IsTypeOf()

static int vtkCaveSynchronizedRenderers::IsTypeOf ( const char *  type)
static

◆ IsA()

virtual int vtkCaveSynchronizedRenderers::IsA ( const char *  type)
virtual

Reimplemented from vtkSynchronizedRenderers.

◆ SafeDownCast()

static vtkCaveSynchronizedRenderers* vtkCaveSynchronizedRenderers::SafeDownCast ( vtkObject o)
static

◆ PrintSelf()

void vtkCaveSynchronizedRenderers::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
overridevirtual

Reimplemented from vtkSynchronizedRenderers.

◆ HandleStartRender()

void vtkCaveSynchronizedRenderers::HandleStartRender ( )
overrideprotectedvirtual

Called at the start of each render.

Overridden to ensure that the camera is updated based on the configuration.

Reimplemented from vtkSynchronizedRenderers.

◆ ProcessCaveConfiguration()

void vtkCaveSynchronizedRenderers::ProcessCaveConfiguration ( )
protected

During constructor, processes the configuration file to setup the display information.

◆ SetNumberOfDisplays()

void vtkCaveSynchronizedRenderers::SetNumberOfDisplays ( int  numberOfDisplays)
protected

These are to initialize the displays.

(This is directly copied from vtkCaveRenderManager).

◆ SetEyeSeparation()

void vtkCaveSynchronizedRenderers::SetEyeSeparation ( double  eyeSeparation)
protected

Set the eye separation for all the displays.

◆ DefineDisplay()

void vtkCaveSynchronizedRenderers::DefineDisplay ( int  idx,
double  origin[3],
double  x[3],
double  y[3] 
)
protected

◆ ComputeCamera()

void vtkCaveSynchronizedRenderers::ComputeCamera ( vtkCamera cam)
protected

Method to update the camera.

◆ SetRenderer()

void vtkCaveSynchronizedRenderers::SetRenderer ( vtkRenderer renderer)
overrideprotectedvirtual

Override Superclass to compute Displays parameters in case of a single screen cave (e.g.

zSpace)

Reimplemented from vtkSynchronizedRenderers.

Member Data Documentation

◆ EyeSeparation

double vtkCaveSynchronizedRenderers::EyeSeparation
protected

Definition at line 74 of file vtkCaveSynchronizedRenderers.h.

◆ NumberOfDisplays

int vtkCaveSynchronizedRenderers::NumberOfDisplays
protected

Definition at line 75 of file vtkCaveSynchronizedRenderers.h.

◆ Displays

double** vtkCaveSynchronizedRenderers::Displays
protected

Definition at line 76 of file vtkCaveSynchronizedRenderers.h.

◆ DisplayOrigin

double vtkCaveSynchronizedRenderers::DisplayOrigin[3]
protected

Definition at line 77 of file vtkCaveSynchronizedRenderers.h.

◆ DisplayX

double vtkCaveSynchronizedRenderers::DisplayX[3]
protected

Definition at line 78 of file vtkCaveSynchronizedRenderers.h.

◆ DisplayY

double vtkCaveSynchronizedRenderers::DisplayY[3]
protected

Definition at line 79 of file vtkCaveSynchronizedRenderers.h.

◆ once

int vtkCaveSynchronizedRenderers::once
protected

Definition at line 80 of file vtkCaveSynchronizedRenderers.h.


The documentation for this class was generated from the following file: