Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkMRMLSubjectHierarchyConstants.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Program: 3D Slicer
4 
5  Copyright (c) Laboratory for Percutaneous Surgery (PerkLab)
6  Queen's University, Kingston, ON, Canada. All Rights Reserved.
7 
8  See COPYRIGHT.txt
9  or http://www.slicer.org/copyright/copyright.txt for details.
10 
11  Unless required by applicable law or agreed to in writing, software
12  distributed under the License is distributed on an "AS IS" BASIS,
13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  See the License for the specific language governing permissions and
15  limitations under the License.
16 
17  This file was originally developed by Csaba Pinter, PerkLab, Queen's University
18  and was supported through the Applied Cancer Research Unit program of Cancer Care
19  Ontario with funds provided by the Ontario Ministry of Health and Long-Term Care
20 
21 ==============================================================================*/
22 
23 #ifndef __vtkMRMLSubjectHierarchyConstants_h
24 #define __vtkMRMLSubjectHierarchyConstants_h
25 
26 // MRML includes
27 #include "vtkMRML.h"
28 
29 // STD includes
30 #include <cstdlib>
31 #include <string>
32 #include <vector>
33 
34 class VTK_MRML_EXPORT vtkMRMLSubjectHierarchyConstants
35 {
36 public:
37  //----------------------------------------------------------------------------
38  // Constant strings (std::string types for easy concatenation)
39  //----------------------------------------------------------------------------
40 
41  // Data node subject hierarchy attribute
42  static const std::string GetSubjectHierarchyAttributePrefix()
43  { return "SubjectHierarchy."; };
45  { return vtkMRMLSubjectHierarchyConstants::GetSubjectHierarchyAttributePrefix() + "ExcludeFromPotentialNodesList"; };
46 
47  // Subject hierarchy item attributes
49  { return "VirtualBranch"; };
50  static const std::string GetSubjectHierarchyLevelAttributeName()
51  { return "Level"; };
53  { return "ApplyColorToBranch"; };
54  static const std::string GetSubjectHierarchyNewItemNamePrefix()
55  { return "New"; };
56 
57  // Non-DICOM levels
58  static const char* GetSubjectHierarchyLevelFolder()
59  { return "Folder"; };
60  // DICOM levels
61  static const std::string GetDICOMLevelPatient()
62  { return "Patient"; };
63  static const std::string GetDICOMLevelStudy()
64  { return "Study"; };
65 
66  // DICOM attributes
67  static const char* GetDICOMUIDName()
68  { return "DICOM"; };
69  static const char* GetDICOMInstanceUIDName()
70  { return "DICOMInstanceUID"; };
71  static const std::string GetDICOMAttributePrefix()
72  { return "DICOM."; };
74  { return vtkMRMLSubjectHierarchyConstants::GetDICOMAttributePrefix() + "ReferencedInstanceUIDs"; };
75 
76  // Patient tags
77  static const std::string GetDICOMPatientNameTagName()
78  { return "PatientName"; };
79  static const std::string GetDICOMPatientNameAttributeName()
81  static const std::string GetDICOMPatientIDTagName()
82  { return "PatientID"; };
83  static const std::string GetDICOMPatientIDAttributeName()
85  static const std::string GetDICOMPatientSexTagName()
86  { return "PatientSex"; };
87  static const std::string GetDICOMPatientSexAttributeName()
89  static const std::string GetDICOMPatientBirthDateTagName()
90  { return "PatientBirthDate"; };
91  static const std::string GetDICOMPatientBirthDateAttributeName()
93  static const std::string GetDICOMPatientCommentsTagName()
94  { return "PatientComments"; };
95  static const std::string GetDICOMPatientCommentsAttributeName()
97 
99  static const std::vector<std::string> GetDICOMPatientTagNames()
100  {
101  std::vector<std::string> patientTagNames;
107  return patientTagNames;
108  }
109 
110  // Study tags
111  static const std::string GetDICOMStudyInstanceUIDTagName()
112  { return "StudyInstanceUID"; };
113  static const std::string GetDICOMStudyIDTagName()
114  { return "StudyID"; };
115  static const std::string GetDICOMStudyDescriptionTagName()
116  { return "StudyDescription"; };
117  static const std::string GetDICOMStudyDescriptionAttributeName()
119  static const std::string GetDICOMStudyDateTagName()
120  { return "StudyDate"; };
121  static const std::string GetDICOMStudyDateAttributeName()
123  static const std::string GetDICOMStudyTimeTagName()
124  { return "StudyTime"; };
125  static const std::string GetDICOMStudyTimeAttributeName()
127 
129  static const std::vector<std::string> GetDICOMStudyTagNames()
130  {
131  std::vector<std::string> studyTagNames;
135  return studyTagNames;
136  }
137 
138  // Series tags
139  static const std::string GetDICOMSeriesModalityAttributeName()
141  static const std::string GetDICOMSeriesNumberAttributeName()
142  { return vtkMRMLSubjectHierarchyConstants::GetDICOMAttributePrefix() + "SeriesNumber"; };
143 
144 };
145 
146 #endif
static const std::string GetDICOMPatientBirthDateAttributeName()
static const std::string GetSubjectHierarchyNewItemNamePrefix()
static const std::string GetDICOMPatientIDAttributeName()
static const std::string GetDICOMStudyDateAttributeName()
static const std::string GetDICOMPatientBirthDateTagName()
static const std::string GetDICOMPatientCommentsTagName()
static const std::vector< std::string > GetDICOMStudyTagNames()
Get study tag names (attribute names are these values prefixed!)
static const std::string GetSubjectHierarchyApplyColorToBranchAttributeName()
static const std::string GetDICOMStudyDescriptionAttributeName()
static const std::string GetSubjectHierarchyVirtualBranchAttributeName()
static const std::string GetDICOMPatientSexTagName()
static const std::string GetDICOMPatientNameTagName()
static const std::string GetSubjectHierarchyAttributePrefix()
static const std::string GetDICOMPatientCommentsAttributeName()
static const std::string GetDICOMStudyTimeAttributeName()
static const std::string GetSubjectHierarchyExcludeFromTreeAttributeName()
static const std::vector< std::string > GetDICOMPatientTagNames()
Get patient tag names (attribute names are these values prefixed!)
static const std::string GetDICOMPatientSexAttributeName()
static const std::string GetDICOMPatientNameAttributeName()
static const std::string GetSubjectHierarchyLevelAttributeName()
static std::string GetDICOMReferencedInstanceUIDsAttributeName()
static const std::string GetDICOMStudyDescriptionTagName()
static const std::string GetDICOMSeriesNumberAttributeName()
static const std::string GetDICOMStudyInstanceUIDTagName()
static const std::string GetDICOMSeriesModalityAttributeName()