vtkMRMLVolumeArchetypeStorageNode.h

Go to the documentation of this file.
00001 /*=auto=========================================================================
00002 
00003   Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
00004 
00005   See Doc/copyright/copyright.txt
00006   or http://www.slicer.org/copyright/copyright.txt for details.
00007 
00008   Program:   3D Slicer
00009   Module:    $RCSfile: vtkMRMLVolumeArchetypeStorageNode.h,v $
00010   Date:      $Date: 2006/03/19 17:12:29 $
00011   Version:   $Revision: 1.8 $
00012 
00013 =========================================================================auto=*/
00018 
00019 #ifndef __vtkMRMLVolumeArchetypeStorageNode_h
00020 #define __vtkMRMLVolumeArchetypeStorageNode_h
00021 
00022 #include "vtkMRML.h"
00023 #include "vtkMRMLScene.h"
00024 #include "vtkMRMLStorageNode.h"
00025 
00026 
00027 class vtkImageData;
00028 
00029 class VTK_MRML_EXPORT vtkMRMLVolumeArchetypeStorageNode : public vtkMRMLStorageNode
00030 {
00031   public:
00032   static vtkMRMLVolumeArchetypeStorageNode *New();
00033   vtkTypeMacro(vtkMRMLVolumeArchetypeStorageNode,vtkMRMLStorageNode);
00034   void PrintSelf(ostream& os, vtkIndent indent);
00035 
00036   virtual vtkMRMLNode* CreateNodeInstance();
00037 
00040   virtual void ReadXMLAttributes( const char** atts);
00041 
00045   virtual int ReadData(vtkMRMLNode *refNode);
00046 
00053 //BTX
00054   std::string UpdateFileList(vtkMRMLNode *refNode, int move = 0);
00055 //ETX
00056   
00060   virtual int WriteData(vtkMRMLNode *refNode);
00061 
00064   virtual void WriteXML(ostream& of, int indent);
00065 
00069   virtual void ProcessParentNode(vtkMRMLNode *parentNode);
00070 
00073   virtual void Copy(vtkMRMLNode *node);
00074 
00077   virtual const char* GetNodeTagName()  {return "VolumeArchetypeStorage";};
00078 
00081   vtkGetMacro(CenterImage, int);
00082   vtkSetMacro(CenterImage, int);
00083 
00086   vtkGetMacro(SingleFile, int);
00087   vtkSetMacro(SingleFile, int);
00088 
00091   vtkSetMacro(UseOrientationFromFile, int);
00092   vtkGetMacro(UseOrientationFromFile, int);
00093 
00098   virtual int SupportedFileType(const char *fileName);
00099 
00102   virtual void InitializeSupportedWriteFileTypes();
00103 
00106   virtual const char* GetDefaultWriteFileExtension()
00107     {
00108     return "nrrd";
00109     };
00110 
00111 protected:
00112 
00113 
00114   vtkMRMLVolumeArchetypeStorageNode();
00115   ~vtkMRMLVolumeArchetypeStorageNode();
00116   vtkMRMLVolumeArchetypeStorageNode(const vtkMRMLVolumeArchetypeStorageNode&);
00117   void operator=(const vtkMRMLVolumeArchetypeStorageNode&);
00118 
00119   int CenterImage;
00120   int SingleFile;
00121   int UseOrientationFromFile;
00122 
00123 };
00124 
00125 #endif
00126 
00127 
00128 

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1