Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkMRMLVolumeRenderingScenarioNode.h
Go to the documentation of this file.
1 /*=auto=========================================================================
2 
3  Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
4 
5  See COPYRIGHT.txt
6  or http://www.slicer.org/copyright/copyright.txt for details.
7 
8  Program: 3D Slicer
9  Module: $RCSfile: vtkMRMLVolumeRenderingScenarioNode.h,v $
10  Date: $Date: 2006/03/19 17:12:29 $
11  Version: $Revision: 1.3 $
12 
13 =========================================================================auto=*/
14 // .NAME vtkMRMLVolumeRenderingScenarioNode - MRML node for storing selected parameter node id
15 // .SECTION Description
16 // This node stores the information about the currently selected parameter node
17 //
18 //
19 
20 #ifndef __vtkMRMLVolumeRenderingScenarioNode_h
21 #define __vtkMRMLVolumeRenderingScenarioNode_h
22 
23 // VolumeRendering includes
24 #include "vtkSlicerVolumeRenderingModuleMRMLExport.h"
25 
26 // MRML includes
27 #include "vtkMRMLNode.h"
28 
30 class VTK_SLICER_VOLUMERENDERING_MODULE_MRML_EXPORT vtkMRMLVolumeRenderingScenarioNode : public vtkMRMLNode
31 {
32  public:
35  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
36 
37  virtual vtkMRMLNode* CreateNodeInstance() VTK_OVERRIDE;
38 
39  // Description:
40  // Set node attributes
41  virtual void ReadXMLAttributes( const char** atts) VTK_OVERRIDE;
42 
43  // Description:
44  // Write this node's information to a MRML file in XML format.
45  virtual void WriteXML(ostream& of, int indent) VTK_OVERRIDE;
46 
47  // Description:
48  // Copy the node's attributes to this object
49  virtual void Copy(vtkMRMLNode *node) VTK_OVERRIDE;
50 
51  // Description:
52  // Get node XML tag name (like Volume, Model)
53  virtual const char* GetNodeTagName() VTK_OVERRIDE {return "VolumeRenderingScenario";}
54 
55  // Description:
56  // Update the stored reference to another node in the scene
57  virtual void UpdateReferenceID(const char *oldID, const char *newID) VTK_OVERRIDE;
58 
59  // Description:
60  // Updates this node if it depends on other nodes
61  // when the node is deleted in the scene
62  virtual void UpdateReferences() VTK_OVERRIDE;
63 
64  // Description:
65  // Observe the reference transform node
66  virtual void UpdateScene(vtkMRMLScene *scene) VTK_OVERRIDE;
67 
68  virtual void ProcessMRMLEvents ( vtkObject *caller, unsigned long event, void *callData) VTK_OVERRIDE;
69 
70  // Description:
71  // the ID of a MRMLVolumeRenderingParametersNode
72  vtkGetStringMacro (ParametersNodeID);
73  vtkSetStringMacro (ParametersNodeID);
74 
75 protected:
80 
82 };
83 
84 #endif
85 
virtual void UpdateReferences()
The method should remove all pointers and observations to all nodes that are not in the scene anymore...
void operator=(const vtkMRMLNode &)
virtual vtkMRMLNode * CreateNodeInstance()=0
Create instance of the default node. Like New only virtual.
virtual void UpdateReferenceID(const char *oldID, const char *newID)
Update the stored reference to another node in the scene.
virtual void ProcessMRMLEvents(vtkObject *caller, unsigned long event, void *callData)
Propagate events generated in mrml.
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:54
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:135
virtual void UpdateScene(vtkMRMLScene *)
Definition: vtkMRMLNode.h:171