Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkMRMLTransformStorageNode.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: vtkMRMLTransformStorageNode.h,v $
10  Date: $Date: 2006/03/19 17:12:29 $
11  Version: $Revision: 1.3 $
12 
13 =========================================================================auto=*/
14 
15 #ifndef __vtkMRMLTransformStorageNode_h
16 #define __vtkMRMLTransformStorageNode_h
17 
18 #include "vtkMRMLStorageNode.h"
19 
20 class vtkAbstractTransform;
22 
26 class VTK_MRML_EXPORT vtkMRMLTransformStorageNode : public vtkMRMLStorageNode
27 {
28  public:
29  static vtkMRMLTransformStorageNode *New();
31  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
32 
33  virtual vtkMRMLNode* CreateNodeInstance() VTK_OVERRIDE;
34 
37  virtual void ReadXMLAttributes( const char** atts) VTK_OVERRIDE;
38 
41  virtual void WriteXML(ostream& of, int indent) VTK_OVERRIDE;
42 
45  virtual const char* GetNodeTagName() VTK_OVERRIDE {return "TransformStorage";};
46 
49  virtual void Copy(vtkMRMLNode *node) VTK_OVERRIDE;
50 
53  virtual void InitializeSupportedWriteFileTypes() VTK_OVERRIDE;
54 
56  virtual bool CanReadInReferenceNode(vtkMRMLNode* refNode) VTK_OVERRIDE;
57 
63  vtkGetMacro ( PreferITKv3CompatibleTransforms, int );
64  vtkSetMacro ( PreferITKv3CompatibleTransforms, int );
65  vtkBooleanMacro ( PreferITKv3CompatibleTransforms, int );
66 
67 protected:
72 
76  virtual bool IsImageFile(const std::string &filename);
77 
84  virtual void SetAndObserveTransformFromParentAutoInvert(vtkMRMLTransformNode* transformNode, vtkAbstractTransform *transform);
85 
87  virtual int ReadDataInternal(vtkMRMLNode *refNode) VTK_OVERRIDE;
88 
93  virtual int ReadFromITKv3BSplineTransformFile(vtkMRMLNode *refNode);
94 
103  virtual int ReadFromTransformFile(vtkMRMLNode *refNode);
104 
109  virtual int ReadFromImageFile(vtkMRMLNode *refNode);
110 
112  virtual int WriteDataInternal(vtkMRMLNode *refNode) VTK_OVERRIDE;
113 
116  virtual int WriteToTransformFile(vtkMRMLNode* refNode);
117 
122  virtual int WriteToImageFile(vtkMRMLNode* refNode);
123 
124 protected:
125 
127 };
128 
129 #endif
virtual int ReadDataInternal(vtkMRMLNode *refNode)
MRML node for representing a transformation between this node space and a parent node space...
void operator=(const vtkMRMLStorageNode &)
virtual vtkMRMLNode * CreateNodeInstance() VTK_OVERRIDE=0
Create instance of the default node. Like New only virtual.
virtual void Copy(vtkMRMLNode *node) VTK_OVERRIDE
Copy the node's attributes to this object.
A supercalss for other storage nodes.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
virtual void InitializeSupportedWriteFileTypes()
MRML node for transform storage on disk.
virtual int WriteDataInternal(vtkMRMLNode *refNode)
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:135
virtual bool CanReadInReferenceNode(vtkMRMLNode *refNode)=0