MeVisLab Toolbox Reference
|
A struct containing a information about a specific frame (position, tagId, tagPtr, and whether it's from tree root). More...
#include <mlDicomSingleFrameSelectionTools.h>
Public Member Functions | |
FrameSpecificTag () | |
Default constructor. More... | |
FrameSpecificTag (const DCMTree::StructuredMF::IndexVector &posIn, DCMTree::RawTagId rawTagIdIn=0, DCMTree::Const_TagPtr tagPtrIn=DCMTree::Const_TagPtr(), bool isFromRootIn=false) | |
Convenience constructor, posIn must have three entries. More... | |
FrameSpecificTag (const FrameSpecificTag &inputInfos)=default | |
Default copy constructor. More... | |
FrameSpecificTag & | operator= (const FrameSpecificTag &inputInfos)=default |
Default assignment operator. More... | |
void | setPos (unsigned int z, unsigned int t, unsigned int u) |
Sets pos to the three components z, t, and u. More... | |
void | setUpFrameSpecificTagInfos (const DCMTree::StructuredMF &smfTree, bool doFrameExistsAtPosCheck=true, bool frameExistsAtPosIn=false) |
Sets up tagPtr and isFromRoot by using corresponding information from smfTree, pos, and rawTagId in this; if doFrameExistsAtPosCheck is true then smfTree.frameExists(pos) is calculated to determine whether framne at pos exists in smfTree, otherwise frameExistsAtPosIn is used trusting in its validity to optimize multiple frame accesses on same frames. More... | |
Public Attributes | |
DCMTree::StructuredMF::IndexVector | pos |
The position of the tag in the frame tree; must always be scaled to 3 components. More... | |
DCMTree::RawTagId | tagId = 0 |
The RawId (unsigned 32 bit) of the tag. More... | |
DCMTree::Const_TagPtr | tagPtr |
The ConstTagPtr to the tag. More... | |
bool | isFromRoot = false |
A flag indicating that the tag was retrieved from root of tree if true. More... | |
A struct containing a information about a specific frame (position, tagId, tagPtr, and whether it's from tree root).
Definition at line 31 of file mlDicomSingleFrameSelectionTools.h.
|
inline |
Default constructor.
Definition at line 33 of file mlDicomSingleFrameSelectionTools.h.
|
inline |
Convenience constructor, posIn must have three entries.
Definition at line 42 of file mlDicomSingleFrameSelectionTools.h.
|
inlinedefault |
Default copy constructor.
|
inlinedefault |
Default assignment operator.
|
inline |
Sets pos to the three components z, t, and u.
Definition at line 61 of file mlDicomSingleFrameSelectionTools.h.
|
inline |
Sets up tagPtr and isFromRoot by using corresponding information from smfTree, pos, and rawTagId in this; if doFrameExistsAtPosCheck is true then smfTree.frameExists(pos) is calculated to determine whether framne at pos exists in smfTree, otherwise frameExistsAtPosIn is used trusting in its validity to optimize multiple frame accesses on same frames.
possible exceptions are caught and ignored; IMPORTANT: only works for SMFTrees with constant tagTree since non-const frame access does not work with frame copies which would be extremely expensive.
Definition at line 75 of file mlDicomSingleFrameSelectionTools.h.
References DCMTree::StructuredMF::getGridDimension(), DCMTree::StructuredMF::getGridExtent(), DCMTree::StructuredMF::tagForGridPosition(), and DCMTree::StructuredMF::tagTree().
bool ml::DicomToMLTools::FrameSpecificTag::isFromRoot = false |
A flag indicating that the tag was retrieved from root of tree if true.
Definition at line 181 of file mlDicomSingleFrameSelectionTools.h.
DCMTree::StructuredMF::IndexVector ml::DicomToMLTools::FrameSpecificTag::pos |
The position of the tag in the frame tree; must always be scaled to 3 components.
Definition at line 172 of file mlDicomSingleFrameSelectionTools.h.
DCMTree::RawTagId ml::DicomToMLTools::FrameSpecificTag::tagId = 0 |
The RawId (unsigned 32 bit) of the tag.
Definition at line 175 of file mlDicomSingleFrameSelectionTools.h.
DCMTree::Const_TagPtr ml::DicomToMLTools::FrameSpecificTag::tagPtr |
The ConstTagPtr to the tag.
Definition at line 178 of file mlDicomSingleFrameSelectionTools.h.