|
open_iA 2024.7
|
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 | |
Class synchronizing the viewing parameters between multiple renderers.
Two "modes":
| iARendererViewSync::iARendererViewSync | ( | bool | sharedCamera = true | ) |
Creates a new renderer view synchronization service.
| sharedCamera | whether to use shared camera (true) or just synchronize required view parameters (false). see class description for details. |
| iARendererViewSync::~iARendererViewSync | ( | ) |
destructor, disconnects from all renderers
| 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.
| renderer | the renderer to add to the bundle |
| void iARendererViewSync::removeAll | ( | ) |
Remove all renderers from the bundle synchronized by this class.
| 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.
| renderer | the renderer to remove from the bundle |
| resetCamera | whether 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! |
| bool iARendererViewSync::sharedCamera | ( | ) | const |
whether this renderer view sync instance uses a shared camera or not