|
Slicer 4.2
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
00001 /*=auto========================================================================= 00002 00003 Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved. 00004 00005 See COPYRIGHT.txt 00006 or http://www.slicer.org/copyright/copyright.txt for details. 00007 00008 Program: 3D Slicer 00009 Module: $RCSfile: vtkMRMLVolumeRenderingParametersNode.h,v $ 00010 Date: $Date: 2006/03/19 17:12:29 $ 00011 Version: $Revision: 1.3 $ 00012 00013 =========================================================================auto=*/ 00014 // .NAME vtkMRMLVolumeRenderingParametersNode - MRML node for storing a slice through RAS space 00015 // .SECTION Description 00016 // This node stores the information about the currently selected volume 00017 // 00018 // 00019 00020 #ifndef __vtkMRMLCropVolumeParametersNode_h 00021 #define __vtkMRMLCropVolumeParametersNode_h 00022 00023 #include "vtkMRML.h" 00024 #include "vtkMRMLScene.h" 00025 #include "vtkMRMLNode.h" 00026 #include "vtkSlicerCropVolumeModuleMRMLExport.h" 00027 00028 class vtkMRMLAnnotationROINode; 00029 class vtkMRMLVolumeNode; 00030 00032 class VTK_SLICER_CROPVOLUME_MODULE_MRML_EXPORT vtkMRMLCropVolumeParametersNode : public vtkMRMLNode 00033 { 00034 public: 00035 00036 static vtkMRMLCropVolumeParametersNode *New(); 00037 vtkTypeMacro(vtkMRMLCropVolumeParametersNode,vtkMRMLNode); 00038 void PrintSelf(ostream& os, vtkIndent indent); 00039 00040 virtual vtkMRMLNode* CreateNodeInstance(); 00041 00042 // Description: 00043 // Set node attributes 00044 virtual void ReadXMLAttributes( const char** atts); 00045 00046 // Description: 00047 // Write this node's information to a MRML file in XML format. 00048 virtual void WriteXML(ostream& of, int indent); 00049 00050 // Description: 00051 // Copy the node's attributes to this object 00052 virtual void Copy(vtkMRMLNode *node); 00053 00054 // Description: 00055 // Get node XML tag name (like Volume, Model) 00056 virtual const char* GetNodeTagName() {return "CropVolumeParameters";}; 00057 00058 // Description: 00059 vtkSetStringMacro(InputVolumeNodeID); 00060 vtkGetStringMacro (InputVolumeNodeID); 00061 vtkSetStringMacro(OutputVolumeNodeID); 00062 vtkGetStringMacro (OutputVolumeNodeID); 00063 vtkSetStringMacro(ROINodeID); 00064 vtkGetStringMacro (ROINodeID); 00065 00066 vtkSetMacro(IsotropicResampling,bool); 00067 vtkGetMacro(IsotropicResampling,bool); 00068 vtkBooleanMacro(IsotropicResampling,bool); 00069 00070 vtkSetMacro(ROIVisibility,bool); 00071 vtkGetMacro(ROIVisibility,bool); 00072 vtkBooleanMacro(ROIVisibility,bool); 00073 00074 vtkSetMacro(VoxelBased,bool); 00075 vtkGetMacro(VoxelBased,bool); 00076 vtkBooleanMacro(VoxelBased,bool); 00077 00078 vtkSetMacro(InterpolationMode, int); 00079 vtkGetMacro(InterpolationMode, int); 00080 00081 vtkSetMacro(SpacingScalingConst, double); 00082 vtkGetMacro(SpacingScalingConst, double); 00083 00084 protected: 00085 vtkMRMLCropVolumeParametersNode(); 00086 ~vtkMRMLCropVolumeParametersNode(); 00087 00088 vtkMRMLCropVolumeParametersNode(const vtkMRMLCropVolumeParametersNode&); 00089 void operator=(const vtkMRMLCropVolumeParametersNode&); 00090 00091 char *InputVolumeNodeID; 00092 char *OutputVolumeNodeID; 00093 char *ROINodeID; 00094 00095 bool ROIVisibility; 00096 bool VoxelBased; 00097 int InterpolationMode; 00098 bool IsotropicResampling; 00099 double SpacingScalingConst; 00100 }; 00101 00102 #endif 00103
1.7.4