Open Inventor Release 2025.2.2
 
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:
72
76 static void initClass();
77
81 static void exitClass();
82
83 SoDicomTag() : m_id(0) {}
84
88 SoDicomTag( unsigned int id );
89
93 SoDicomTag( unsigned short group, unsigned short element );
94
101 SoDicomTag( const SbString& name, bool isKeyword = false );
102
106 unsigned int getId() const;
107
111 unsigned short getGroup() const;
112
116 unsigned short getElement() const;
117
122
127
132 VR getVR() const;
133
134private:
135 static void push( unsigned int id, const SbString& name, const SbString& keyword, VR vr );
136 static void initSpec();
137
138 unsigned int m_id;
139
140 class DicomSpecManager;
141 static DicomSpecManager* s_manager;
142};
Class for smart character strings.
Definition SbString.h:202
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:69
@ SS
Signed 16 bits integer.
Definition SoDicomTag.h:59
@ 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:64
@ US
Unsigned 16 bits integer.
Definition SoDicomTag.h:68
@ LO
Long String (vector of 32bits signed integers)
Definition SoDicomTag.h:47
@ SL
Signed 32 bits integer.
Definition SoDicomTag.h:57
@ SQ
Sequence.
Definition SoDicomTag.h:58
@ OW
Other Word String (16 bits integers vector)
Definition SoDicomTag.h:54
@ 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:63
@ DT
Date Time String.
Definition SoDicomTag.h:43
@ UL
Unsigned 32 bits integer.
Definition SoDicomTag.h:65
@ UN
Unknown.
Definition SoDicomTag.h:66
@ UV
Unsigned 64 bit very long.
Definition SoDicomTag.h:70
@ 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:56
@ OL
Other Long String (vector of int)
Definition SoDicomTag.h:52
@ SV
Signed 64 bit very long.
Definition SoDicomTag.h:61
@ UR
Universal Resource Identifier.
Definition SoDicomTag.h:67
@ OV
Other 64 bit very long.
Definition SoDicomTag.h:53
@ ST
Short Text.
Definition SoDicomTag.h:60
@ 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:62
@ IS
Integer String.
Definition SoDicomTag.h:46
@ OD
Other Double String (vector of double)
Definition SoDicomTag.h:50
@ PN
Person Name.
Definition SoDicomTag.h:55
SbString getKeyword() const
Returns the tag's keyword in the dictionary or "Unknown" if not found.
SbString getName() const
Returns the tag's name in the dictionary or "Unknown" if not found.
SoDicomTag(const SbString &name, bool isKeyword=false)
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...