Open Inventor Release 2024.1.1
 
Loading...
Searching...
No Matches
SoDicomTag.h
1#pragma once
2
3#include <Inventor/SbString.h>
4
5// The DICOM dictionary is initialized with the init method and is freed
6// with the finish method.Without this initialization, most of this class
7// behavior is undefined.
8
28{
29public:
69
73 static void initClass();
74
78 static void exitClass();
79
80 SoDicomTag() : m_id(0) {}
81
85 SoDicomTag( unsigned int id );
86
90 SoDicomTag( unsigned short group, unsigned short element );
91
97 SoDicomTag( const SbString& name );
98
102 unsigned int getId() const;
103
107 unsigned short getGroup() const;
108
112 unsigned short getElement() const;
113
118
123 VR getVR() const;
124
125private:
126 static void push( unsigned int id, const SbString& name, VR vr );
127 static void initSpec();
128
129 unsigned int m_id;
130
131 class DicomSpecManager;
132 static DicomSpecManager* s_manager;
133};
Class for smart character strings.
Definition SbString.h:202
<a href="IconLegend.html"><img src="extVR.gif" alt="VolumeViz" border="0"></a> DICOM data.
Definition SoDicomTag.h:28
unsigned int getId() const
Get the tag's id ( group and element combined ).
static void exitClass()
Free the space allocated to store the DICOM dictionnary.
static void initClass()
Initialize the DICOM dictionnary.
unsigned short getGroup() const
Get the tag's group.
SoDicomTag(unsigned int id)
Create a DICOM tag from its 32 bit id.
SoDicomTag(unsigned short group, unsigned short element)
Create a DICOM from its group and element values.
unsigned short getElement() const
Get the tag's element.
VR
VRs (Visual Representations) defined in the DICOM standard.
Definition SoDicomTag.h:36
@ UT
Unlimited Text.
Definition SoDicomTag.h:67
@ SS
Signed 16 bits integer.
Definition SoDicomTag.h:58
@ OB
Other Byte String (byte vector)
Definition SoDicomTag.h:49
@ FD
Floating point double precision.
Definition SoDicomTag.h:45
@ UI
Unique Identifier.
Definition SoDicomTag.h:62
@ US
Unsigned 16 bits integer.
Definition SoDicomTag.h:66
@ LO
Long String (vector of 32bits signed integers)
Definition SoDicomTag.h:47
@ SL
Signed 32 bits integer.
Definition SoDicomTag.h:56
@ SQ
Sequence.
Definition SoDicomTag.h:57
@ OW
Other Word String (16 bits integers vector)
Definition SoDicomTag.h:53
@ AT
Attribute Tag.
Definition SoDicomTag.h:39
@ FL
Floating point single precision.
Definition SoDicomTag.h:44
@ OF
Other Float String (vector of float)
Definition SoDicomTag.h:51
@ UC
Unlimited Characters.
Definition SoDicomTag.h:61
@ DT
Date Time String.
Definition SoDicomTag.h:43
@ UL
Unsigned 32 bits integer.
Definition SoDicomTag.h:63
@ UN
Unknown.
Definition SoDicomTag.h:64
@ CS
Code String.
Definition SoDicomTag.h:40
@ DA
Date String.
Definition SoDicomTag.h:41
@ LT
Long Text.
Definition SoDicomTag.h:48
@ SH
Short String.
Definition SoDicomTag.h:55
@ OL
Other Long String (vector of int)
Definition SoDicomTag.h:52
@ UR
Universal Resource Identifier.
Definition SoDicomTag.h:65
@ ST
Short Text.
Definition SoDicomTag.h:59
@ AE
Application Entity.
Definition SoDicomTag.h:37
@ DS
Decimal String.
Definition SoDicomTag.h:42
@ AS
Age String (Duration)
Definition SoDicomTag.h:38
@ TM
Time String.
Definition SoDicomTag.h:60
@ IS
Integer String.
Definition SoDicomTag.h:46
@ OD
Other Double String (vector of double)
Definition SoDicomTag.h:50
@ PN
Person Name.
Definition SoDicomTag.h:54
SbString getName() const
Returns the tag's name in the dictionary or "Unknown" if not found.
SoDicomTag(const SbString &name)
Create a DICOM tag from its name in the dictionnary.
VR getVR() const
Get the VR (Visual Representation) associated with this tag in the specification, returning "UN" if t...