Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkMRMLModelStorageNode.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: vtkMRMLModelStorageNode.h,v $
10  Date: $Date: 2006/03/19 17:12:29 $
11  Version: $Revision: 1.3 $
12 
13 =========================================================================auto=*/
14 
15 #ifndef __vtkMRMLModelStorageNode_h
16 #define __vtkMRMLModelStorageNode_h
17 
18 #include "vtkMRMLStorageNode.h"
19 
20 class vtkMRMLModelNode;
21 
25 class VTK_MRML_EXPORT vtkMRMLModelStorageNode : public vtkMRMLStorageNode
26 {
27 public:
28  static vtkMRMLModelStorageNode *New();
30  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
31 
32  virtual vtkMRMLNode* CreateNodeInstance() VTK_OVERRIDE;
33 
36  virtual const char* GetNodeTagName() VTK_OVERRIDE {return "ModelStorage";}
37 
39  virtual void WriteXML(ostream& of, int indent) VTK_OVERRIDE;
40 
42  virtual bool CanReadInReferenceNode(vtkMRMLNode *refNode) VTK_OVERRIDE;
43 
44 protected:
49 
51  virtual void InitializeSupportedReadFileTypes() VTK_OVERRIDE;
52 
54  virtual void InitializeSupportedWriteFileTypes() VTK_OVERRIDE;
55 
57  vtkMRMLModelNode* GetAssociatedDataNode();
58 
60  virtual int ReadDataInternal(vtkMRMLNode *refNode) VTK_OVERRIDE;
61 
63  virtual int WriteDataInternal(vtkMRMLNode *refNode) VTK_OVERRIDE;
64 
65 };
66 
67 #endif
virtual int ReadDataInternal(vtkMRMLNode *refNode)
MRML node to represent a 3D surface model.
virtual void InitializeSupportedReadFileTypes()
MRML node for model storage on disk.
void operator=(const vtkMRMLStorageNode &)
virtual vtkMRMLNode * CreateNodeInstance() VTK_OVERRIDE=0
Create instance of the default node. Like New only virtual.
virtual void WriteXML(ostream &of, int indent) VTK_OVERRIDE
Write this node's information to a MRML file in XML format.
A supercalss for other storage nodes.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
virtual void InitializeSupportedWriteFileTypes()
virtual int WriteDataInternal(vtkMRMLNode *refNode)
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:135
virtual bool CanReadInReferenceNode(vtkMRMLNode *refNode)=0