Slicer  4.10
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) VTK_OVERRIDE;
12 
13  virtual vtkMRMLNode* CreateNodeInstance() VTK_OVERRIDE;
14 
16  virtual void ReadXMLAttributes( const char** atts) VTK_OVERRIDE;
17 
19  virtual void WriteXML(ostream& of, int indent) VTK_OVERRIDE;
20 
22  virtual void Copy(vtkMRMLNode *node) VTK_OVERRIDE;
23 
25  virtual const char* GetNodeTagName() VTK_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  //SelectRegion,
51  //LassoRegion,
52  Place = 0x1,
53  ViewTransform = 0x2,
54  Select = 0x4,
55  };
56 
58  enum
59  {
60  InteractionModeChangedEvent = 19001,
63  };
64 
66  const char *GetInteractionModeAsString(int mode);
67  const char *GetInteractionModeAsString() { return this->GetInteractionModeAsString(this->CurrentInteractionMode); } ;
68 
70  int GetInteractionModeByString ( const char * modeString );
71 
73  void SwitchToPersistentPlaceMode();
74  void SwitchToSinglePlaceMode();
75  void SwitchToViewTransformMode();
76 
78  vtkGetMacro(EnableFiberEdit, int);
79  vtkSetMacro(EnableFiberEdit, int);
80 
81 protected:
84 
86  void operator=(const vtkMRMLInteractionNode&);
87 
90 
93 
95 };
96 
97 #endif
const char * GetInteractionModeAsString()
void operator=(const vtkMRMLNode &)
virtual vtkMRMLNode * CreateNodeInstance()=0
Create instance of the default node. Like New only virtual.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:138