![]() |
Slicer
4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
Manage display nodes with polydata in 3D views. More...
#include <Libs/MRML/DisplayableManager/vtkMRMLModelDisplayableManager.h>
Public Types | |
typedef vtkMRMLAbstractThreeDViewDisplayableManager | Superclass |
![]() | |
typedef vtkMRMLAbstractDisplayableManager | Superclass |
![]() | |
typedef vtkMRMLAbstractLogic | Superclass |
![]() | |
typedef vtkObject | Superclass |
typedef void(vtkMRMLAbstractLogic::* | TaskFunctionPointer) (void *clientdata) |
Public Member Functions | |
vtkProp3D * | GetActorByID (const char *id) |
Return the current model actor corresponding to a give MRML ID More... | |
vtkCellPicker * | GetCellPicker () |
Get cell picker More... | |
virtual const char * | GetClassName () |
vtkMRMLClipModelsNode * | GetClipModelsNode () |
Get/Set the ClipModels Node More... | |
const char * | GetIDByActor (vtkProp3D *actor) |
Return the current node ID corresponding to a given vtkProp3D More... | |
vtkMRMLModelHierarchyLogic * | GetModelHierarchyLogic () |
Get/Set vtkMRMLModelHierarchyLogic More... | |
vtkIdType | GetPickedCellID () |
Get/Set the picked cell id, returns -1 if no pick. More... | |
virtual const char * | GetPickedNodeID () VTK_OVERRIDE |
Get the MRML ID of the picked node, returns empty string if no pick More... | |
vtkIdType | GetPickedPointID () |
Get/Set the picked point id, returns -1 if no pick More... | |
double * | GetPickedRAS () |
Get/Set the picked RAS point, returns 0,0,0 if no pick More... | |
double | GetPickTolerance () |
vtkPointPicker * | GetPointPicker () |
Get point picker More... | |
vtkPropPicker * | GetPropPicker () |
Get property picker More... | |
vtkWorldPointPicker * | GetWorldPointPicker () |
Get world point picker More... | |
virtual int | IsA (const char *type) |
bool | IsModelDisplayable (vtkMRMLDisplayableNode *node) const |
Return true if the node can be represented as a model. More... | |
bool | IsModelDisplayable (vtkMRMLDisplayNode *node) const |
Return true if the display node is a model. More... | |
int | Pick (int x, int y) |
virtual int | Pick3D (double ras[3]) VTK_OVERRIDE |
void | PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE |
void | SetClipModelsNode (vtkMRMLClipModelsNode *snode) |
void | SetClipPlaneFromMatrix (vtkMatrix4x4 *sliceMatrix, int planeDirection, vtkPlane *plane) |
void | SetPickedCellID (vtkIdType newCellID) |
void | SetPickedPointID (vtkIdType newPointID) |
void | SetPickedRAS (double *newPickedRAS) |
void | SetPickTolerance (double tolerance) |
![]() | |
vtkMRMLViewNode * | GetMRMLViewNode () |
Get MRML ViewNode. More... | |
virtual int | Pick3D (double vtkNotUsed(ras)[3]) |
void | PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE |
![]() | |
virtual std::string | GetDataProbeInfoStringForPosition (double vtkNotUsed(xyz)[3]) |
vtkMRMLInteractionNode * | GetInteractionNode () |
Convenient method to get the current InteractionNode. More... | |
vtkRenderWindowInteractor * | GetInteractor () |
Convenient method to get the WindowInteractor associated with the Renderer. More... | |
virtual vtkMRMLLightBoxRendererManagerProxy * | GetLightBoxRendererManagerProxy () |
vtkRenderer * | GetRenderer () |
Get the default renderer for this displayable manager. More... | |
vtkRenderer * | GetRenderer (int idx) |
vtkMRMLSelectionNode * | GetSelectionNode () |
Convenient method to get the current SelectionNode. More... | |
bool | IsCreated () |
void | PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE |
virtual void | SetLightBoxRendererManagerProxy (vtkMRMLLightBoxRendererManagerProxy *) |
![]() | |
virtual vtkMRMLApplicationLogic * | GetMRMLApplicationLogic () const |
Get access to overall application state. More... | |
vtkMRMLScene * | GetMRMLScene () const |
Return a reference to the current MRML scene. More... | |
void | PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE |
virtual void | SetMRMLApplicationLogic (vtkMRMLApplicationLogic *logic) |
void | SetMRMLScene (vtkMRMLScene *newScene) |
Set and observe the MRMLScene. More... | |
Static Public Member Functions | |
static vtkLookupTable * | CreateLookupTableCopy (vtkLookupTable *source) |
static bool | IsCellScalarsActive (vtkMRMLDisplayNode *displayNode, vtkMRMLModelNode *model=0) |
static int | IsTypeOf (const char *type) |
static vtkMRMLModelDisplayableManager * | New () |
static vtkMRMLModelDisplayableManager * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkMRMLAbstractThreeDViewDisplayableManager * | New () |
static vtkMRMLAbstractThreeDViewDisplayableManager * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkMRMLAbstractDisplayableManager * | New () |
static vtkMRMLAbstractDisplayableManager * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkMRMLAbstractLogic * | New () |
static vtkMRMLAbstractLogic * | SafeDownCast (vtkObject *o) |
Friends | |
class | vtkThreeDViewInteractorStyle |
Additional Inherited Members | |
![]() | |
static void | WidgetsCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData) |
WidgetsCallback is a static function to relay modified events from the vtk widgets. More... | |
![]() | |
static void | MRMLLogicsCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData) |
MRMLLogicCallback is a static function to relay modified events from the logics. More... | |
static void | MRMLNodesCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData) |
MRMLNodesCallback is a static function to relay modified events from the nodes. More... | |
static void | MRMLSceneCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData) |
Manage display nodes with polydata in 3D views.
Any display node in the scene that contains a valid output polydata is represented into the view renderer using configured synchronized vtkActors and vtkMappers. Note that the display nodes must be of type vtkMRMLModelDisplayNode (to have an output polydata) but the displayable nodes don't necessarily have to be of type vtkMRMLModelNode.
Definition at line 65 of file vtkMRMLModelDisplayableManager.h.
Definition at line 70 of file vtkMRMLModelDisplayableManager.h.
|
protected |
|
protectedvirtual |
|
protectedvirtual |
Subclass can overload this method to specify under which InteractionNode modes this Displayable Manager InteractorStyle events. By default events only arrive when in Place mode (good for annotations) but if you want a continuous read out of, for example, slice positions while the mouse moves set this to include Place and ViewTransform
Reimplemented from vtkMRMLAbstractDisplayableManager.
|
protected |
|
protectedvirtual |
Sub-class could overload that function and perform additional initialization steps
Reimplemented from vtkMRMLAbstractDisplayableManager.
|
protected |
|
static |
Helper function for copying lookup tables It handles special types of lookup tables and fixes error in vtkLoookupTable copy.
|
protected |
|
protected |
vtkProp3D* vtkMRMLModelDisplayableManager::GetActorByID | ( | const char * | id | ) |
Return the current model actor corresponding to a give MRML ID
vtkCellPicker* vtkMRMLModelDisplayableManager::GetCellPicker | ( | ) |
Get cell picker
|
virtual |
Reimplemented from vtkMRMLAbstractThreeDViewDisplayableManager.
vtkMRMLClipModelsNode* vtkMRMLModelDisplayableManager::GetClipModelsNode | ( | ) |
Get/Set the ClipModels Node
|
protected |
|
protected |
const char* vtkMRMLModelDisplayableManager::GetIDByActor | ( | vtkProp3D * | actor | ) |
Return the current node ID corresponding to a given vtkProp3D
vtkMRMLModelHierarchyLogic* vtkMRMLModelDisplayableManager::GetModelHierarchyLogic | ( | ) |
Get/Set vtkMRMLModelHierarchyLogic
vtkIdType vtkMRMLModelDisplayableManager::GetPickedCellID | ( | ) |
Get/Set the picked cell id, returns -1 if no pick.
|
virtual |
Get the MRML ID of the picked node, returns empty string if no pick
Reimplemented from vtkMRMLAbstractThreeDViewDisplayableManager.
vtkIdType vtkMRMLModelDisplayableManager::GetPickedPointID | ( | ) |
Get/Set the picked point id, returns -1 if no pick
double* vtkMRMLModelDisplayableManager::GetPickedRAS | ( | ) |
Get/Set the picked RAS point, returns 0,0,0 if no pick
double vtkMRMLModelDisplayableManager::GetPickTolerance | ( | ) |
Get/Set tolerance for Pick() method. it will call vtkCellPicker.Get/SetTolerance()
vtkPointPicker* vtkMRMLModelDisplayableManager::GetPointPicker | ( | ) |
Get point picker
vtkPropPicker* vtkMRMLModelDisplayableManager::GetPropPicker | ( | ) |
Get property picker
vtkWorldPointPicker* vtkMRMLModelDisplayableManager::GetWorldPointPicker | ( | ) |
Get world point picker
|
virtual |
Reimplemented from vtkMRMLAbstractThreeDViewDisplayableManager.
|
static |
Helper function for determining what type of scalar is active.
bool vtkMRMLModelDisplayableManager::IsModelDisplayable | ( | vtkMRMLDisplayableNode * | node | ) | const |
Return true if the node can be represented as a model.
bool vtkMRMLModelDisplayableManager::IsModelDisplayable | ( | vtkMRMLDisplayNode * | node | ) | const |
Return true if the display node is a model.
|
static |
|
static |
|
protectedvirtual |
Called after interactor style event specified using AddInteractorStyleObservableEvent are invoked.
Reimplemented from vtkMRMLAbstractDisplayableManager.
|
protected |
Returns true if something visible in modelNode has changed and would require a refresh.
|
protectedvirtual |
If vtkMRMLScene::EndCloseEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented from vtkMRMLAbstractLogic.
|
protectedvirtual |
If vtkMRMLScene::NodeAddedEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented from vtkMRMLAbstractLogic.
|
protectedvirtual |
If vtkMRMLScene::NodeRemovedEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented from vtkMRMLAbstractLogic.
|
protectedvirtual |
If vtkMRMLScene::StartCloseEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented from vtkMRMLAbstractLogic.
int vtkMRMLModelDisplayableManager::Pick | ( | int | x, |
int | y | ||
) |
Convert an x/y location to a MRML node, 3D RAS point, point ID, cell ID, as appropriate depending what's found under the xy.
|
virtual |
Convert a RAS location to a MRML node, point ID, cell ID, as appropriate depending what's found under the position.
void vtkMRMLModelDisplayableManager::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
protectedvirtual |
Receives all the events fired by the nodes. To listen to a node, you can add an observer using GetMRMLNodesCallbackCommand() or use the utility macros vtk[SetAndObserve|Observe]MRMLNode[Event]Macro ProcessMRMLNodesEvents calls OnMRMLNodeModified when event is vtkCommand::ModifiedEvent.
Reimplemented from vtkMRMLAbstractDisplayableManager.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
Remove MRML observers.
Reimplemented from vtkMRMLAbstractDisplayableManager.
|
static |
void vtkMRMLModelDisplayableManager::SetClipModelsNode | ( | vtkMRMLClipModelsNode * | snode | ) |
void vtkMRMLModelDisplayableManager::SetClipPlaneFromMatrix | ( | vtkMatrix4x4 * | sliceMatrix, |
int | planeDirection, | ||
vtkPlane * | plane | ||
) |
|
protected |
void vtkMRMLModelDisplayableManager::SetPickedCellID | ( | vtkIdType | newCellID | ) |
void vtkMRMLModelDisplayableManager::SetPickedPointID | ( | vtkIdType | newPointID | ) |
void vtkMRMLModelDisplayableManager::SetPickedRAS | ( | double * | newPickedRAS | ) |
void vtkMRMLModelDisplayableManager::SetPickTolerance | ( | double | tolerance | ) |
|
protectedvirtual |
Called anytime a scene is not set to the logic anymore (e.g. a new or no scene is set) Reimplement the method to delete all the scene specific information such as a node IDs, pointers...
Reimplemented from vtkMRMLAbstractLogic.
|
protected |
Returns not null if modified.
|
protectedvirtual |
Updates Actors based on models in the scene.
Reimplemented from vtkMRMLAbstractDisplayableManager.
|
protectedvirtual |
Called every time the scene has been significantly changed. If the scene BatchProcessState events are observed (in SetMRMLSceneInternal() ), UpdateFromMRMLScene is called after each batch process (Close, Import, Restore...). It is also being called by default when a new scene is set (SetMRMLScene).
Reimplemented from vtkMRMLAbstractLogic.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
friend |
Definition at line 185 of file vtkMRMLModelDisplayableManager.h.