Slicer 5.9
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,
54 Select = 4,
56 User = 1000
57 };
58 enum
59 {
65 };
66
68 const char* GetInteractionModeAsString(int mode);
70
72 int GetInteractionModeByString(const char* modeString);
73
78
80 vtkGetMacro(EnableFiberEdit, int);
81 vtkSetMacro(EnableFiberEdit, int);
82
85 void EditNode(vtkMRMLNode* node);
86
89
90protected:
93
96
99
102
104};
105
106#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.