Slicer  4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkMRMLInteractionNode.h
Go to the documentation of this file.
1 #ifndef __vtkMRMLInteractionNode_h
2 #define __vtkMRMLInteractionNode_h
3 
4 #include "vtkMRMLNode.h"
5 
6 class VTK_MRML_EXPORT vtkMRMLInteractionNode : public vtkMRMLNode
7 {
8 public:
9  static vtkMRMLInteractionNode *New();
11  void PrintSelf(ostream& os, vtkIndent indent) override;
12 
13  vtkMRMLNode* CreateNodeInstance() override;
14 
16  void ReadXMLAttributes( const char** atts) override;
17 
19  void WriteXML(ostream& of, int indent) override;
20 
22  void Copy(vtkMRMLNode *node) override;
23 
25  const char* GetNodeTagName() override {return "Interaction";}
26 
28  vtkGetMacro(CurrentInteractionMode, int);
29  void SetCurrentInteractionMode(int mode);
30  vtkGetMacro(LastInteractionMode, int);
31  void SetLastInteractionMode(int mode);
32 
33  vtkGetMacro(PlaceModePersistence, int);
34  vtkGetMacro(TransformModePersistence, int);
35 
41  virtual void SetPlaceModePersistence(int val);
42  virtual void SetTransformModePersistence(int val);
43  virtual void NormalizeAllMouseModes();
44 
48  enum
49  {
50  Place = 1,
51  ViewTransform = 2,
52  Select = 4,
54  User = 1000
55  };
56 
58  enum
59  {
60  InteractionModeChangedEvent = 19001,
64  };
65 
67  const char *GetInteractionModeAsString(int mode);
68  const char *GetInteractionModeAsString() { return this->GetInteractionModeAsString(this->CurrentInteractionMode); } ;
69 
71  int GetInteractionModeByString ( const char * modeString );
72 
74  void SwitchToPersistentPlaceMode();
75  void SwitchToSinglePlaceMode();
76  void SwitchToViewTransformMode();
77 
79  vtkGetMacro(EnableFiberEdit, int);
80  vtkSetMacro(EnableFiberEdit, int);
81 
84  void EditNode(vtkMRMLNode* node);
85 
86 protected:
88  ~vtkMRMLInteractionNode() override;
89 
91  void operator=(const vtkMRMLInteractionNode&);
92 
95 
98 
100 };
101 
102 #endif
const char * GetInteractionModeAsString()
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
virtual void ReadXMLAttributes(const char **atts)
void operator=(const vtkMRMLNode &)
virtual vtkMRMLNode * CreateNodeInstance()=0
Create instance of the default node. Like New only virtual.
virtual void Copy(vtkMRMLNode *node)
Copy node contents from another node of the same type. Does not copy node ID and Scene. Performs deep copy - an independent copy is created from all data, including bulk data.
virtual void WriteXML(ostream &of, int indent)
void PrintSelf(ostream &os, vtkIndent indent) override
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167