Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkMRMLTableViewNode.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Program: 3D Slicer
4 
5  Portions (c) Copyright 2015 Brigham and Women's Hospital (BWH) All Rights Reserved.
6 
7  See COPYRIGHT.txt
8  or http://www.slicer.org/copyright/copyright.txt for details.
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 
16  This file was originally developed by Andras Lasso (PerkLab, Queen's
17  University) and Kevin Wang (Princess Margaret Hospital, Toronto) and was
18  supported through OCAIRO and the Applied Cancer Research Unit program of
19  Cancer Care Ontario.
20 
21 ==============================================================================*/
22 
23 #ifndef __vtkMRMLTableViewNode_h
24 #define __vtkMRMLTableViewNode_h
25 
27 
28 class vtkMRMLTableNode;
29 
33 class VTK_MRML_EXPORT vtkMRMLTableViewNode : public vtkMRMLAbstractViewNode
34 {
35 public:
36  static vtkMRMLTableViewNode *New();
38  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
39 
40  //--------------------------------------------------------------------------
42  //--------------------------------------------------------------------------
43 
44  virtual vtkMRMLNode* CreateNodeInstance() VTK_OVERRIDE;
45 
48  virtual void ReadXMLAttributes( const char** atts) VTK_OVERRIDE;
49 
52  virtual void WriteXML(ostream& of, int indent) VTK_OVERRIDE;
53 
56  virtual void Copy(vtkMRMLNode *node) VTK_OVERRIDE;
57 
60  virtual const char* GetNodeTagName() VTK_OVERRIDE;
61 
64  void SetTableNodeID(const char *);
65 
68  const char * GetTableNodeID();
69 
72  vtkMRMLTableNode* GetTableNode();
73 
79  vtkSetMacro (DoPropagateTableSelection, bool );
80  vtkGetMacro (DoPropagateTableSelection, bool );
81 
82  virtual const char* GetTableNodeReferenceRole();
83 
84 protected:
86  ~vtkMRMLTableViewNode();
87  vtkMRMLTableViewNode(const vtkMRMLTableViewNode&);
88  void operator=(const vtkMRMLTableViewNode&);
89 
90  virtual const char* GetTableNodeReferenceMRMLAttributeName();
91 
92  static const char* TableNodeReferenceRole;
93  static const char* TableNodeReferenceMRMLAttributeName;
94 
95  bool DoPropagateTableSelection;
96 };
97 
98 #endif
virtual vtkMRMLNode * CreateNodeInstance()=0
Create instance of the default node. Like New only virtual.
Abstract MRML node to represent a view. The class holds the properties common to any view type (3D...
MRML node to represent table view parameters.
MRML node to represent a table object.
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:135
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE