open_iA 2023.02
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
iARendererViewSync Class Reference

Class synchronizing the viewing parameters between multiple renderers. More...

#include <iARendererViewSync.h>

Public Member Functions

 iARendererViewSync (bool sharedCamera=true)
 Creates a new renderer view synchronization service.
 
 ~iARendererViewSync ()
 destructor, disconnects from all renderers
 
void addToBundle (vtkRenderer *renderer)
 Adds given renderer to the bundle of renderers with synced views.
 
void removeAll ()
 Remove all renderers from the bundle synchronized by this class.
 
bool removeFromBundle (vtkRenderer *renderer, bool resetCamera=true)
 Remove given renderer from bundle.
 
bool sharedCamera () const
 whether this renderer view sync instance uses a shared camera or not
 

Detailed Description

Class synchronizing the viewing parameters between multiple renderers.

Two "modes":

Constructor & Destructor Documentation

◆ iARendererViewSync()

iARendererViewSync::iARendererViewSync ( bool  sharedCamera = true)

Creates a new renderer view synchronization service.

Parameters
sharedCamerawhether to use shared camera (true) or just synchronize required view parameters (false). see class description for details.

◆ ~iARendererViewSync()

iARendererViewSync::~iARendererViewSync ( )

destructor, disconnects from all renderers

Member Function Documentation

◆ addToBundle()

void iARendererViewSync::addToBundle ( vtkRenderer *  renderer)

Adds given renderer to the bundle of renderers with synced views.

Any change in that renderer's viewing parameters will be synced to all other renderers in the bundle.

Parameters
rendererthe renderer to add to the bundle

◆ removeAll()

void iARendererViewSync::removeAll ( )

Remove all renderers from the bundle synchronized by this class.

◆ removeFromBundle()

bool iARendererViewSync::removeFromBundle ( vtkRenderer *  renderer,
bool  resetCamera = true 
)

Remove given renderer from bundle.

Stops synchronizing this renderers' viewing parameters with the other renderers in the bundle.

Parameters
rendererthe renderer to remove from the bundle
resetCamerawhether the camera of the removed renderer should be reset to a new one with a copy of the settings of the common renderer; set to false for example if the renderer is not used after removing from bundle, or if you set your own camera. Note that when resetCamera=false, and you reuse the renderer afterwards, but don't set your own camera to the renderer, camera updates will still be shared to other renderers added to the bundle, but updates will not propagate anymore!

◆ sharedCamera()

bool iARendererViewSync::sharedCamera ( ) const

whether this renderer view sync instance uses a shared camera or not


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