Slicer 5.4
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
vtkMRMLInteractionNode.h
Go to the documentation of this file.
1#ifndef __vtkMRMLInteractionNode_h
2#define __vtkMRMLInteractionNode_h
3
4#include "vtkMRMLNode.h"
5
7
8class VTK_MRML_EXPORT vtkMRMLInteractionNode : public vtkMRMLNode
9{
10public:
13 void PrintSelf(ostream& os, vtkIndent indent) override;
14
16
18 void ReadXMLAttributes( const char** atts) override;
19
21 void WriteXML(ostream& of, int indent) override;
22
24 void Copy(vtkMRMLNode *node) override;
25
27 const char* GetNodeTagName() override {return "Interaction";}
28
30 vtkGetMacro(CurrentInteractionMode, int);
32 vtkGetMacro(LastInteractionMode, int);
33 void SetLastInteractionMode(int mode);
34
35 vtkGetMacro(PlaceModePersistence, int);
36 vtkGetMacro(TransformModePersistence, int);
37
43 virtual void SetPlaceModePersistence(int val);
44 virtual void SetTransformModePersistence(int val);
45 virtual void NormalizeAllMouseModes();
46
50 enum
51 {
52 Place = 1,
53 ViewTransform = 2,
54 Select = 4,
56 User = 1000
57 };
58
60 enum
61 {
62 InteractionModeChangedEvent = 19001,
67 };
68
70 const char *GetInteractionModeAsString(int mode);
71 const char *GetInteractionModeAsString() { return this->GetInteractionModeAsString(this->CurrentInteractionMode); } ;
72
74 int GetInteractionModeByString ( const char * modeString );
75
80
82 vtkGetMacro(EnableFiberEdit, int);
83 vtkSetMacro(EnableFiberEdit, int);
84
87 void EditNode(vtkMRMLNode* node);
88
91
92protected:
95
98
101
104
106};
107
108#endif
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
void SetCurrentInteractionMode(int mode)
const char * GetInteractionModeAsString(int mode)
Return a text string describing the mode.
virtual void NormalizeAllMouseModes()
virtual void SetPlaceModePersistence(int val)
void SetLastInteractionMode(int mode)
void Copy(vtkMRMLNode *node) override
Copy the node's attributes to this object.
vtkMRMLNode * CreateNodeInstance() override
Create instance of the default node. Like New only virtual.
void operator=(const vtkMRMLInteractionNode &)
vtkMRMLInteractionNode(const vtkMRMLInteractionNode &)
~vtkMRMLInteractionNode() override
static vtkMRMLInteractionNode * New()
void PrintSelf(ostream &os, vtkIndent indent) override
void ShowViewContextMenu(vtkMRMLInteractionEventData *eventData)
Request the application to display view menu.
int GetInteractionModeByString(const char *modeString)
Return the mode given a text string.
const char * GetInteractionModeAsString()
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file.
void EditNode(vtkMRMLNode *node)
virtual void SetTransformModePersistence(int val)
void SwitchToPersistentPlaceMode()
Convenience methods for the mouse mode tool bar to call.
Abstract Superclass for all specific types of MRML nodes.