Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkMRMLFreeSurferModelOverlayStorageNode.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: vtkMRMLFreeSurferModelOverlayStorageNode.h,v $
10  Date: $Date: 2006/03/19 17:12:29 $
11  Version: $Revision: 1.3 $
12 
13 =========================================================================auto=*/
14 
15 #ifndef __vtkMRMLFreeSurferModelOverlayStorageNode_h
16 #define __vtkMRMLFreeSurferModelOverlayStorageNode_h
17 
19 
25 {
26 public:
29  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
30 
31  virtual vtkMRMLNode* CreateNodeInstance() VTK_OVERRIDE;
32 
37  virtual int CopyData(vtkMRMLNode *refNode, const char *newFileName);
38 
41  virtual const char* GetNodeTagName() VTK_OVERRIDE {return "FreeSurferModelOverlayStorage";}
42 
44  virtual bool CanWriteFromReferenceNode(vtkMRMLNode *refNode) VTK_OVERRIDE;
45 
46 protected:
51 
53  virtual void InitializeSupportedReadFileTypes() VTK_OVERRIDE;
54 
56  virtual void InitializeSupportedWriteFileTypes() VTK_OVERRIDE;
57 
61  virtual int ReadDataInternal(vtkMRMLNode *refNode) VTK_OVERRIDE;
62 
66  virtual int WriteDataInternal(vtkMRMLNode *refNode) VTK_OVERRIDE;
67 
68  bool ReadScalarOverlay(const std::string& fullName, vtkMRMLModelNode* modelNode);
69  bool ReadScalarOverlayAnnot(const std::string& fullName, vtkMRMLModelNode* modelNode);
70  bool ReadScalarOverlayVolume(const std::string& fullName, vtkMRMLModelNode* modelNode);
71 
72  std::string GetColorNodeIDFromExtension(const std::string& extension);
73  std::string GetColorNodeIDFromType(int type);
74 };
75 
76 #endif
77 
78 
79 
virtual void InitializeSupportedWriteFileTypes() VTK_OVERRIDE
Initialize all the supported write file types.
MRML node to represent a 3D surface model.
virtual int WriteDataInternal(vtkMRMLNode *refNode) VTK_OVERRIDE
Write data from a referenced node.
MRML node for model storage on disk.
static vtkMRMLModelStorageNode * New()
virtual int ReadDataInternal(vtkMRMLNode *refNode) VTK_OVERRIDE
Read data and set it in the referenced node.
virtual void InitializeSupportedReadFileTypes() VTK_OVERRIDE
Initialize all the supported read file types.
virtual bool CanWriteFromReferenceNode(vtkMRMLNode *refNode)
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
void operator=(const vtkMRMLModelStorageNode &)
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:135
virtual vtkMRMLNode * CreateNodeInstance() VTK_OVERRIDE
Create instance of the default node. Like New only virtual.