Slicer  5.1
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) override;
39 
40  //--------------------------------------------------------------------------
42  //--------------------------------------------------------------------------
43 
44  vtkMRMLNode* CreateNodeInstance() override;
45 
48  void ReadXMLAttributes( const char** atts) override;
49 
52  void WriteXML(ostream& of, int indent) override;
53 
56  void Copy(vtkMRMLNode *node) override;
57 
60  const char* GetNodeTagName() 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() override;
88  void operator=(const vtkMRMLTableViewNode&);
89 
90  virtual const char* GetTableNodeReferenceMRMLAttributeName();
91 
92  static const char* TableNodeReferenceRole;
94 
95  bool DoPropagateTableSelection{true};
96 };
97 
98 #endif
static const char * TableNodeReferenceRole
static const char * TableNodeReferenceMRMLAttributeName
void operator=(const vtkMRMLAbstractViewNode &)
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.
Abstract MRML node to represent a view. The class holds the properties common to any view type (3D...
void ReadXMLAttributes(const char **atts) override
MRMLNode methods.
MRML node to represent table view parameters.
void PrintSelf(ostream &os, vtkIndent indent) override
MRML node to represent a table object.
virtual const char * GetNodeTagName()=0
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.