00001 // DICOM annotation utility class 00002 00004 // 00005 // This class is part of the Open Inventor Medical Edition utility library. 00006 // 00007 // The medical utility classes are provided as a prebuilt library named 00008 // "fei.inventor.Medical", that can be used directly in an Open Inventor 00009 // application. The classes in the prebuilt library are documented and 00010 // supported by FEI. These classes are also provided as source code. 00011 // 00012 // Please see $OIVHOME/include/Medical/InventorMedical.h for the full text. 00013 // 00015 00016 #ifndef _DICOM_INFO_H_ 00017 #define _DICOM_INFO_H_ 00018 00019 #include <Medical/InventorMedical.h> 00020 #include <Medical/nodes/TextBox.h> 00021 00022 #include <Inventor/SbString.h> 00023 #include <Inventor/fields/SoSFFilePathString.h> 00024 00025 class SoVRDicomData; 00026 00080 class INVENTORMEDICAL_API DicomInfo : public TextBox { 00081 00082 SO_NODE_HEADER(DicomInfo); 00083 00084 public: 00089 SoSFFilePathString fileName; 00090 00098 int displayDicomInfo( SbString title, unsigned short group, unsigned short element ); 00099 00107 int displayDicomInfo( SbString title, SbString infoString ); 00108 00112 SbString getDicomInfo(unsigned short group, unsigned short element); 00113 00115 static void initClass(); 00116 00118 static void exitClass(); 00119 00121 DicomInfo(); 00122 00123 private: 00125 virtual ~DicomInfo(); 00126 00127 SbString m_filename; 00128 SoVRDicomData* m_dicomReader; 00129 00130 bool checkFilename(); 00131 }; 00132 00133 #endif