Slicer
5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
DisplayableManagerGroup is a collection of DisplayableManager. More...
#include <Libs/MRML/DisplayableManager/vtkMRMLDisplayableManagerGroup.h>
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
void | AddDisplayableManager (vtkMRMLAbstractDisplayableManager *displayableManager) |
Add a DisplayableManager and initialize it if required. More... | |
virtual const char * | GetClassName () |
vtkMRMLAbstractDisplayableManager * | GetDisplayableManagerByClassName (const char *className) |
Return a DisplayableManager given its class name. More... | |
int | GetDisplayableManagerCount () |
Return the number of DisplayableManager already added to the group. More... | |
vtkRenderWindowInteractor * | GetInteractor () |
Convenient method to get the WindowInteractor associated with the Renderer. More... | |
virtual vtkMRMLLightBoxRendererManagerProxy * | GetLightBoxRendererManagerProxy () |
vtkMRMLNode * | GetMRMLDisplayableNode () |
Set / Get MRML Displayable Node. More... | |
vtkMRMLAbstractDisplayableManager * | GetNthDisplayableManager (int n) |
vtkRenderer * | GetRenderer () |
Get Renderer. More... | |
void | Initialize (vtkMRMLDisplayableManagerFactory *factory, vtkRenderer *renderer) |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
void | RequestRender () |
void | SetAndObserveDisplayableManagerFactory (vtkMRMLDisplayableManagerFactory *factory) |
Set and observe DisplayableManager factory. More... | |
virtual void | SetLightBoxRendererManagerProxy (vtkMRMLLightBoxRendererManagerProxy *) |
void | SetMRMLDisplayableNode (vtkMRMLNode *newMRMLDisplayableNode) |
void | SetRenderer (vtkRenderer *newRenderer) |
Static Public Member Functions | |
static vtkMRMLAbstractDisplayableManager * | InstantiateDisplayableManager (const char *displayableManagerName) |
static bool | IsADisplayableManager (const char *displayableManagerName) |
static int | IsTypeOf (const char *type) |
static vtkMRMLDisplayableManagerGroup * | New () |
static vtkMRMLDisplayableManagerGroup * | SafeDownCast (vtkObject *o) |
Protected Types | |
typedef vtkMRMLDisplayableManagerGroup | Self |
Protected Member Functions | |
void | onDisplayableManagerFactoryRegisteredEvent (const char *displayableManagerName) |
void | onDisplayableManagerFactoryUnRegisteredEvent (const char *displayableManagerName) |
vtkMRMLDisplayableManagerGroup () | |
~vtkMRMLDisplayableManagerGroup () override | |
Static Protected Member Functions | |
static void | DoCallback (vtkObject *vtk_obj, unsigned long event, void *client_data, void *call_data) |
Protected Attributes | |
vtkInternal * | Internal |
DisplayableManagerGroup is a collection of DisplayableManager.
It also provides method allowing to either call RenderRequest or SetAndObserveMRMLDisplayableNode on all member of the group. When the displayable managers in the group request the view to be refreshed, the group fires a vtkCommand::UpdateEvent event. This event can be observed and trigger a Render on the render window.
Definition at line 43 of file vtkMRMLDisplayableManagerGroup.h.
|
protected |
Definition at line 125 of file vtkMRMLDisplayableManagerGroup.h.
typedef vtkObject vtkMRMLDisplayableManagerGroup::Superclass |
Definition at line 48 of file vtkMRMLDisplayableManagerGroup.h.
|
protected |
|
overrideprotected |
void vtkMRMLDisplayableManagerGroup::AddDisplayableManager | ( | vtkMRMLAbstractDisplayableManager * | displayableManager | ) |
Add a DisplayableManager and initialize it if required.
|
staticprotected |
|
virtual |
vtkMRMLAbstractDisplayableManager* vtkMRMLDisplayableManagerGroup::GetDisplayableManagerByClassName | ( | const char * | className | ) |
Return a DisplayableManager given its class name.
int vtkMRMLDisplayableManagerGroup::GetDisplayableManagerCount | ( | ) |
Return the number of DisplayableManager already added to the group.
vtkRenderWindowInteractor* vtkMRMLDisplayableManagerGroup::GetInteractor | ( | ) |
Convenient method to get the WindowInteractor associated with the Renderer.
|
virtual |
Get the LightBoxRendererManagerProxy if one has been provided.
vtkMRMLNode* vtkMRMLDisplayableManagerGroup::GetMRMLDisplayableNode | ( | ) |
Set / Get MRML Displayable Node.
vtkMRMLAbstractDisplayableManager* vtkMRMLDisplayableManagerGroup::GetNthDisplayableManager | ( | int | n | ) |
vtkRenderer* vtkMRMLDisplayableManagerGroup::GetRenderer | ( | ) |
Get Renderer.
void vtkMRMLDisplayableManagerGroup::Initialize | ( | vtkMRMLDisplayableManagerFactory * | factory, |
vtkRenderer * | renderer | ||
) |
Convenient method equivalent to call SetAndObserveDisplayableManagerFactory, SetRenderer, then instantiate and add all displayable managers registered within the factory.
|
static |
Returns a new instance of a displayable manager defined by its name: VTK class name or python file name. You are responsible of the returned pointer.
|
virtual |
|
static |
Returns true if the displayableManagerName corresponds to a valid displayable manager, false otherwise. To be valid, ad displayableManagerName must be the name of a VTK class that derives from vtkMRMLAbstractDisplayableManager or be a valid python script file name.
|
static |
|
static |
|
protected |
Trigger upon a DisplayableManager is either registered or unregistered from the associated factory
|
protected |
|
override |
void vtkMRMLDisplayableManagerGroup::RequestRender | ( | ) |
Invoke vtkCommand::UpdateEvent An observer can then listen for that event and "compress" the different Render requests to efficiently call RenderWindow->Render()
|
static |
void vtkMRMLDisplayableManagerGroup::SetAndObserveDisplayableManagerFactory | ( | vtkMRMLDisplayableManagerFactory * | factory | ) |
Set and observe DisplayableManager factory.
|
virtual |
Set the LightBoxRendererManagerProxy on the DisplayableManagerGroup. This caches the proxy and broadcasts the proxy to all DisplayableManagers in the group. This proxy provides a method GetRenderer(int) that returns the renderer for the Nth lightbox pane. The DisplayableManagers use this method to map coordinates to the proper lightbox pane, e.g. in placing crosshairs or annotations in the proper renderer.
void vtkMRMLDisplayableManagerGroup::SetMRMLDisplayableNode | ( | vtkMRMLNode * | newMRMLDisplayableNode | ) |
void vtkMRMLDisplayableManagerGroup::SetRenderer | ( | vtkRenderer * | newRenderer | ) |
Set Renderer and Interactor No-op if already initialized.
|
protected |
Definition at line 133 of file vtkMRMLDisplayableManagerGroup.h.