Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends
vtkMRMLRulerDisplayableManager Class Reference

Displayable manager that displays orienatation marker in a slice or 3D view. More...

#include <Libs/MRML/DisplayableManager/vtkMRMLRulerDisplayableManager.h>

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

Classes

struct  RulerScalePreset
 

Public Types

typedef vtkMRMLAbstractDisplayableManager Superclass
 
- Public Types inherited from vtkMRMLAbstractDisplayableManager
typedef vtkMRMLAbstractLogic Superclass
 
- Public Types inherited from vtkMRMLAbstractLogic
typedef vtkObject Superclass
 
typedef void(vtkMRMLAbstractLogic::* TaskFunctionPointer) (void *clientdata)
 

Public Member Functions

void AddRulerScalePreset (double length, int numberOfMajorDivisons, int numberOfMinorDivisions, const std::string &displayedUnitName, double displayedScale)
 
virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE
 
void RemoveAllRulerScalePresets ()
 Remove all scale presets. More...
 
- Public Member Functions inherited from vtkMRMLAbstractDisplayableManager
virtual std::string GetDataProbeInfoStringForPosition (double vtkNotUsed(xyz)[3])
 
vtkMRMLInteractionNodeGetInteractionNode ()
 Convenient method to get the current InteractionNode. More...
 
vtkRenderWindowInteractor * GetInteractor ()
 Convenient method to get the WindowInteractor associated with the Renderer. More...
 
virtual vtkMRMLLightBoxRendererManagerProxyGetLightBoxRendererManagerProxy ()
 
vtkRenderer * GetRenderer ()
 Get the default renderer for this displayable manager. More...
 
vtkRenderer * GetRenderer (int idx)
 
vtkMRMLSelectionNodeGetSelectionNode ()
 Convenient method to get the current SelectionNode. More...
 
bool IsCreated ()
 
void PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE
 
virtual void SetLightBoxRendererManagerProxy (vtkMRMLLightBoxRendererManagerProxy *)
 
- Public Member Functions inherited from vtkMRMLAbstractLogic
virtual vtkMRMLApplicationLogicGetMRMLApplicationLogic () const
 Get access to overall application state. More...
 
vtkMRMLSceneGetMRMLScene () 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 int IsTypeOf (const char *type)
 
static vtkMRMLRulerDisplayableManagerNew ()
 
static vtkMRMLRulerDisplayableManagerSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkMRMLAbstractDisplayableManager
static int IsTypeOf (const char *type)
 
static vtkMRMLAbstractDisplayableManagerNew ()
 
static vtkMRMLAbstractDisplayableManagerSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkMRMLAbstractLogic
static int IsTypeOf (const char *type)
 
static vtkMRMLAbstractLogicNew ()
 
static vtkMRMLAbstractLogicSafeDownCast (vtkObject *o)
 

Protected Member Functions

virtual void Create () VTK_OVERRIDE
 Observe the View node and initialize the renderer accordingly. More...
 
virtual void OnMRMLDisplayableNodeModifiedEvent (vtkObject *caller) VTK_OVERRIDE
 
void UpdateFromRenderer ()
 Update the renderer based on the master renderer (the one that the orientation marker follows) More...
 
void UpdateFromViewNode ()
 Update the renderer from the view node properties. More...
 
 vtkMRMLRulerDisplayableManager ()
 
virtual ~vtkMRMLRulerDisplayableManager ()
 
- Protected Member Functions inherited from vtkMRMLAbstractDisplayableManager
virtual int ActiveInteractionModes ()
 
void AddInteractorObservableEvent (int eventid, float priority=0.0)
 
void AddInteractorStyleObservableEvent (int eventid, float priority=0.0)
 
virtual void AdditionalInitializeStep ()
 
void AddMRMLDisplayableManagerEvent (int eventId)
 Allow to specify additional events that the DisplayableNode will observe. More...
 
void CreateIfPossible ()
 
int GetInteractorAbortFlag ()
 
int GetInteractorStyleAbortFlag ()
 
vtkMRMLDisplayableManagerGroupGetMRMLDisplayableManagerGroup ()
 Get associated DisplayableManager group. More...
 
vtkMRMLNodeGetMRMLDisplayableNode ()
 Get MRML Displayable Node. More...
 
vtkCallbackCommand * GetWidgetsCallbackCommand ()
 Get vtkWidget callbackCommand. More...
 
vtkObserverManagerGetWidgetsObserverManager () const
 Get widget observerManager. More...
 
void InteractorAbortFlagOff ()
 
void InteractorAbortFlagOn ()
 
void InteractorStyleAbortFlagOff ()
 
void InteractorStyleAbortFlagOn ()
 
virtual void OnInteractorEvent (int eventid)
 
virtual void OnInteractorStyleEvent (int eventid)
 
virtual void ProcessMRMLNodesEvents (vtkObject *caller, unsigned long event, void *callData) VTK_OVERRIDE
 
virtual void ProcessWidgetsEvents (vtkObject *caller, unsigned long event, void *callData)
 
void RemoveInteractorObservableEvent (int eventid)
 
void RemoveInteractorStyleObservableEvent (int eventid)
 
virtual void RemoveMRMLObservers ()
 Remove MRML observers. More...
 
void RequestRender ()
 
void SetAndObserveMRMLDisplayableNode (vtkMRMLNode *newMRMLDisplayableNode)
 
void SetInteractorAbortFlag (int f)
 Set the Abort flag on the Interactor event callback. More...
 
void SetInteractorStyleAbortFlag (int f)
 Set the Abort flag on the InteractorStyle event callback. More...
 
virtual void SetMRMLDisplayableManagerGroup (vtkMRMLDisplayableManagerGroup *group)
 
virtual void SetMRMLSceneInternal (vtkMRMLScene *newScene) VTK_OVERRIDE
 
virtual void SetRenderer (vtkRenderer *newRenderer)
 
void SetUpdateFromMRMLRequested (bool requested)
 
virtual void UpdateFromMRML ()
 
 vtkMRMLAbstractDisplayableManager ()
 
virtual ~vtkMRMLAbstractDisplayableManager ()
 
- Protected Member Functions inherited from vtkMRMLAbstractLogic
int EndModify (bool wasModifying)
 
virtual bool EnterMRMLLogicsCallback () const
 
virtual bool EnterMRMLNodesCallback () const
 
virtual bool EnterMRMLSceneCallback () const
 
bool GetDisableModifiedEvent () const
 
int GetInMRMLLogicsCallbackFlag () const
 
int GetInMRMLNodesCallbackFlag () const
 
int GetInMRMLSceneCallbackFlag () const
 
vtkCallbackCommand * GetMRMLLogicsCallbackCommand ()
 
vtkObserverManagerGetMRMLLogicsObserverManager () const
 
vtkCallbackCommand * GetMRMLNodesCallbackCommand ()
 
vtkObserverManagerGetMRMLNodesObserverManager () const
 
vtkCallbackCommand * GetMRMLSceneCallbackCommand ()
 
vtkObserverManagerGetMRMLSceneObserverManager () const
 
int GetPendingModifiedEventCount () const
 
int GetProcessingMRMLSceneEvent () const
 Return the event id currently processed or 0 if any. More...
 
int InvokePendingModifiedEvent ()
 
virtual void Modified () VTK_OVERRIDE
 
virtual void ObserveMRMLScene ()
 
virtual void OnMRMLNodeModified (vtkMRMLNode *)
 
virtual void OnMRMLSceneEndBatchProcess ()
 
virtual void OnMRMLSceneEndClose ()
 
virtual void OnMRMLSceneEndImport ()
 
virtual void OnMRMLSceneEndRestore ()
 
virtual void OnMRMLSceneNew ()
 
virtual void OnMRMLSceneNodeAdded (vtkMRMLNode *)
 
virtual void OnMRMLSceneNodeRemoved (vtkMRMLNode *)
 
virtual void OnMRMLSceneStartBatchProcess ()
 
virtual void OnMRMLSceneStartClose ()
 
virtual void OnMRMLSceneStartImport ()
 
virtual void OnMRMLSceneStartRestore ()
 
virtual void ProcessMRMLLogicsEvents (vtkObject *caller, unsigned long event, void *callData)
 
virtual void ProcessMRMLSceneEvents (vtkObject *caller, unsigned long event, void *callData)
 
virtual void RegisterNodes ()
 
void SetAndObserveMRMLSceneEventsInternal (vtkMRMLScene *newScene, vtkIntArray *events, vtkFloatArray *priorities=0)
 
void SetDisableModifiedEvent (bool onOff)
 
void SetInMRMLLogicsCallbackFlag (int flag)
 
void SetInMRMLNodesCallbackFlag (int flag)
 
void SetInMRMLSceneCallbackFlag (int flag)
 
void SetProcessingMRMLSceneEvent (int event)
 
bool StartModify ()
 
virtual void UnobserveMRMLScene ()
 
virtual void UpdateFromMRMLScene ()
 
 vtkMRMLAbstractLogic ()
 
virtual ~vtkMRMLAbstractLogic ()
 

Protected Attributes

std::vector< RulerScalePresetRulerScalePresets
 

Friends

class vtkRulerRendererUpdateObserver
 

Additional Inherited Members

- Static Protected Member Functions inherited from vtkMRMLAbstractDisplayableManager
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 Protected Member Functions inherited from vtkMRMLAbstractLogic
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)
 

Detailed Description

Displayable manager that displays orienatation marker in a slice or 3D view.

Definition at line 31 of file vtkMRMLRulerDisplayableManager.h.

Member Typedef Documentation

◆ Superclass

Definition at line 38 of file vtkMRMLRulerDisplayableManager.h.

Constructor & Destructor Documentation

◆ vtkMRMLRulerDisplayableManager()

vtkMRMLRulerDisplayableManager::vtkMRMLRulerDisplayableManager ( )
protected

◆ ~vtkMRMLRulerDisplayableManager()

virtual vtkMRMLRulerDisplayableManager::~vtkMRMLRulerDisplayableManager ( )
protectedvirtual

Member Function Documentation

◆ AddRulerScalePreset()

void vtkMRMLRulerDisplayableManager::AddRulerScalePreset ( double  length,
int  numberOfMajorDivisons,
int  numberOfMinorDivisions,
const std::string &  displayedUnitName,
double  displayedScale 
)

Adds a scale preset to the list of possible scales. Length: The preset with Length closest to the actual length of the ruler will be used. If a preset exists with the same length then it will be updated with the new parameters. Number of major divisions: how many parts the ruler will be divided to by major ticks. Number of minor divisions: how many parts one division will be divided to by minor ticks. Displayed unit name: unit name displayed in the label. Displayed scale: 1 [actual unit] = displayedScale displayed unit Example: (world coordinate is mm) 1.0 length, 5 major, 2 minor, mm, 1.0 scale 5.0 5 1 mm 1.0 10.0 5 2 cm 0.1

◆ Create()

virtual void vtkMRMLRulerDisplayableManager::Create ( )
protectedvirtual

Observe the View node and initialize the renderer accordingly.

Reimplemented from vtkMRMLAbstractDisplayableManager.

◆ GetClassName()

virtual const char* vtkMRMLRulerDisplayableManager::GetClassName ( )
virtual

Reimplemented from vtkMRMLAbstractDisplayableManager.

◆ IsA()

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

Reimplemented from vtkMRMLAbstractDisplayableManager.

◆ IsTypeOf()

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

◆ New()

static vtkMRMLRulerDisplayableManager* vtkMRMLRulerDisplayableManager::New ( )
static

◆ OnMRMLDisplayableNodeModifiedEvent()

virtual void vtkMRMLRulerDisplayableManager::OnMRMLDisplayableNodeModifiedEvent ( vtkObject *  caller)
protectedvirtual

Called each time the view node is modified. Internally update the renderer from the view node.

See also
UpdateFromMRMLViewNode()

Reimplemented from vtkMRMLAbstractDisplayableManager.

◆ PrintSelf()

void vtkMRMLRulerDisplayableManager::PrintSelf ( ostream &  os,
vtkIndent  indent 
)

◆ RemoveAllRulerScalePresets()

void vtkMRMLRulerDisplayableManager::RemoveAllRulerScalePresets ( )

Remove all scale presets.

◆ SafeDownCast()

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

◆ UpdateFromRenderer()

void vtkMRMLRulerDisplayableManager::UpdateFromRenderer ( )
protected

Update the renderer based on the master renderer (the one that the orientation marker follows)

◆ UpdateFromViewNode()

void vtkMRMLRulerDisplayableManager::UpdateFromViewNode ( )
protected

Update the renderer from the view node properties.

Friends And Related Function Documentation

◆ vtkRulerRendererUpdateObserver

friend class vtkRulerRendererUpdateObserver
friend

Definition at line 34 of file vtkMRMLRulerDisplayableManager.h.

Member Data Documentation

◆ RulerScalePresets

std::vector<RulerScalePreset> vtkMRMLRulerDisplayableManager::RulerScalePresets
protected

Definition at line 85 of file vtkMRMLRulerDisplayableManager.h.


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