13 #ifndef mitkDICOMTagPath_h
14 #define mitkDICOMTagPath_h
320 bool includeTagNumbers =
false);
Class used to identify (nested) attributes in a DICOM dataset.
std::vector< NodeInfo > NodeInfoVectorType
std::string ToStr() const
Serialize this path to a string representation.
DICOMTagPath(const DICOMTagPath &path)
Copy constructor.
NodeInfoVectorType::size_type PathIndexType
NodeInfo & GetNode(const PathIndexType &index)
DICOMTagPath()
Default constructor, creates an empty path.
PathIndexType AddNode(const NodeInfo &newNode)
DICOMTagPath(const DICOMTag &tag)
Construct a single-element path from a DICOMTag.
bool Equals(const DICOMTagPath &path) const
DICOMTagPath & AddElement(unsigned int group, unsigned int element)
Append a specific element node to this path.
virtual void Reset()
Clear all nodes from this path, making it empty.
bool HasItemSelectionWildcardsOnly() const
NodeInfo & GetFirstNode()
NodeInfoVectorType m_NodeInfos
DICOMTagPath & AddAnySelection(unsigned int group, unsigned int element)
Append a wildcard selection node (AnySelection) to this path.
const NodeInfoVectorType & GetNodes() const
Get the complete vector of node infos in this path.
DICOMTagPath & AddSelection(unsigned int group, unsigned int element, ItemSelectionIndex index)
Append a specific sequence selection node to this path.
const NodeInfo & GetNode(const PathIndexType &index) const
static bool DICOMTagPathesMatch(const DICOMTagPath &left, const DICOMTagPath &right)
PathIndexType Size() const
DICOMTagPath(unsigned int group, unsigned int element)
Construct a single-element path from group and element numbers.
const NodeInfo & GetFirstNode() const
DICOMTagPath & AddAnyElement()
Append a wildcard element node (AnyElement) to this path.
DICOMTagPath & FromStr(const std::string &pathStr)
Parse a string representation and set this path accordingly.
const NodeInfo & GetLastNode() const
Representation of a DICOM tag.
bool operator<(const StaticParameterMap::ValueType &a, const StaticParameterMap::ValueType &b)
Compares two value lists by their first element.
Find image slices visible on a given plane.
MITKDICOM_EXPORT std::string DICOMTagPathToPropertyName(const DICOMTagPath &tagPath)
MITKDICOM_EXPORT std::string DICOMTagPathToPersistenceNameTemplate(const DICOMTagPath &tagPath)
Convert a DICOMTagPath to a persistence name template string.
MITKDICOM_EXPORT std::string DICOMTagPathToDCMTKSearchPath(const DICOMTagPath &tagPath)
MITKDICOM_EXPORT DICOMTagPath PropertyNameToDICOMTagPath(const std::string &propertyName)
MITKCORE_EXPORT std::ostream & operator<<(std::ostream &o, DataNode::Pointer &dtn)
Stream output operator for DataNode smart pointers.
MITKDICOM_EXPORT DICOMTagPath operator+(const std::string &pathStr, const DICOMTagPath &right)
Concatenates a string with a DICOM tag path (reverse order).
MITKDICOM_EXPORT std::string DICOMTagPathToPersistenceKeyRegEx(const DICOMTagPath &tagPath)
Convert a DICOMTagPath to a regular expression for persistence key matching.
MITKDICOM_EXPORT std::string DICOMTagPathToPropertyRegEx(const DICOMTagPath &tagPath)
Convert a DICOMTagPath to a regular expression that matches the corresponding property name.
MITKDICOM_EXPORT std::string DICOMTagPathToPersistenceKeyTemplate(const DICOMTagPath &tagPath)
Convert a DICOMTagPath to a persistence key template string.
std::vector< DICOMTagPath > DICOMTagPathList
A list of DICOMTagPath instances.
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
MITKDICOM_EXPORT std::string DICOMTagPathToReadableName(const DICOMTagPath &tagPath, bool includeTagNumbers=false)
Describes a single node within a DICOMTagPath.
NodeType
Defines the type of a path node.
ItemSelectionIndex selection
The item selection index (for SequenceSelection nodes).
bool Matches(const NodeInfo &right) const
Check whether this node matches another node (respecting wildcards).
NodeInfo()
Default constructor, creates an Invalid node.
NodeType type
The type of this node.
DICOMTag tag
The DICOM tag this node refers to.
NodeInfo(const DICOMTag &tag, NodeType type=NodeType::Element, ItemSelectionIndex index=0)
Construct a node info with specified tag, type, and optional selection index.