SIVIC API
0.9.26
|
#include <svkVoxelTaggingUtils.h>
Public Member Functions | |
vtkTypeMacro (svkVoxelTaggingUtils, vtkObject) | |
Static Public Member Functions | |
static bool | IsImageVoxelTagData (svkImageData *data) |
static void | ToggleVoxelTag (svkImageData *voxelTagData, int voxelID, int tagVolume=-1) |
static int | GetTagValue (svkImageData *voxelTagData, int tagVolume) |
static void | SetTagValue (svkImageData *voxelTagData, int tagValue, int tagVolume) |
static string | GetTagName (svkImageData *voxelTagData, int tagVolume) |
static void | SetTagName (svkImageData *voxelTagData, string tagName, int tagVolume) |
static int | GetNumberOfTags (svkImageData *voxelTagData) |
static svkMriImageData * | CreateVoxelTagData (svk4DImageData *volumeToTag, vector< string > tagNames, vector< int > tagValues) |
static void | AddTagToVoxelData (svkImageData *voxelTagData, string tagName, int tagValue) |
static void | RemoveTagFromVoxelData (svkImageData *voxelTagData, int tagVolume) |
static map< int, string > | GetTagValueToNameMap (svkImageData *voxelTagData) |
static int | GetMaximumTagValue (svkImageData *voxelTagData) |
static int | GetMinimumTagValue (svkImageData *voxelTagData) |
static int | GetPointDataScalarVolumeIndex (svkImageData *voxelTagData) |
static svkVoxelTaggingUtils * | New () |
Protected Member Functions | |
svkVoxelTaggingUtils () | |
Constructor. More... | |
~svkVoxelTaggingUtils () | |
Destructor. More... | |
Static Protected Member Functions | |
static void | InsertTagIntoHeader (svkDcmHeader *header, string tagName, int tagValue) |
static void | FixPerFrameFunctionalGroupSequence (svkImageData *voxelTagData) |
Voxel tagging utility methods specific utilities.
|
protected |
Constructor.
|
protected |
Destructor.
|
static |
Adds a new tagging volume to the dataset
References svkVoxelTaggingUtils::FixPerFrameFunctionalGroupSequence(), svkImageData::GetDcmHeader(), svkDcmHeader::GetNumberOfItemsInSequence(), svkVoxelTaggingUtils::InsertTagIntoHeader(), and svkTypeUtils::IntToString().
Referenced by svkVoxelTaggingUtils::CreateVoxelTagData().
|
static |
Creates a voxel tagging volume from the input 4D dataset.
References svkVoxelTaggingUtils::AddTagToVoxelData(), svkImageData::GetDcmHeader(), svkDcmHeader::GetStringValue(), svk4DImageData::GetZeroImage(), svkDcmHeader::InsertEmptyElement(), svkMriImageData::New(), svkDcmHeader::SetPixelDataType(), svkDcmHeader::SetValue(), and svkDcmHeader::UNSIGNED_INT_2.
|
staticprotected |
Fixes the per frames functional groups sequence when a volume/tag is added or removed.
References svkDcmHeader::GetDataDcos(), svkImageData::GetDcmHeader(), svkDcmHeader::GetDimensionIndexVector(), svkDcmHeader::GetNumberOfSlices(), svkDcmHeader::GetOrigin(), svkDcmHeader::GetPixelSpacing(), svkDcmHeader::InitPerFrameFunctionalGroupSequence(), svkDcmHeader::SetDimensionVectorValue(), svkDcmHeader::SLICE_INDEX, and svkDcmHeader::TIME_INDEX.
Referenced by svkVoxelTaggingUtils::AddTagToVoxelData(), and svkVoxelTaggingUtils::RemoveTagFromVoxelData().
|
static |
Gets the maximum tag value.
References svkVoxelTaggingUtils::GetNumberOfTags(), svkVoxelTaggingUtils::GetTagValue(), and svkVoxelTaggingUtils::IsImageVoxelTagData().
|
static |
Gets the minimum tag value.
References svkVoxelTaggingUtils::GetNumberOfTags(), svkVoxelTaggingUtils::GetTagValue(), and svkVoxelTaggingUtils::IsImageVoxelTagData().
|
static |
Returns the number of tags;
References svkImageData::GetDcmHeader(), svkDcmHeader::GetNumberOfItemsInSequence(), and svkVoxelTaggingUtils::IsImageVoxelTagData().
Referenced by svkVoxelTaggingUtils::GetMaximumTagValue(), svkVoxelTaggingUtils::GetMinimumTagValue(), svkVoxelTaggingUtils::GetTagValueToNameMap(), svkVoxelTaggingUtils::RemoveTagFromVoxelData(), svkVoxelTaggingUtils::SetTagName(), and svkVoxelTaggingUtils::SetTagValue().
|
static |
Gets the index of the scalar data array in the point data.
References svkVoxelTaggingUtils::IsImageVoxelTagData().
Referenced by svkVoxelTaggingUtils::RemoveTagFromVoxelData(), and svkVoxelTaggingUtils::ToggleVoxelTag().
|
static |
Gets the tag name for the given volume.
References svkImageData::GetDcmHeader(), svkDcmHeader::GetStringSequenceItemElement(), and svkVoxelTaggingUtils::IsImageVoxelTagData().
Referenced by svkVoxelTaggingUtils::GetTagValueToNameMap(), and svkVoxelTaggingUtils::RemoveTagFromVoxelData().
|
static |
Gets the tag value for the given volume.
References svkImageData::GetDcmHeader(), svkDcmHeader::GetIntSequenceItemElement(), and svkVoxelTaggingUtils::IsImageVoxelTagData().
Referenced by svkVoxelTaggingUtils::GetMaximumTagValue(), svkVoxelTaggingUtils::GetMinimumTagValue(), svkVoxelTaggingUtils::GetTagValueToNameMap(), svkVoxelTaggingUtils::RemoveTagFromVoxelData(), and svkVoxelTaggingUtils::ToggleVoxelTag().
|
static |
Creates a map of values to tag names.
References svkVoxelTaggingUtils::GetNumberOfTags(), svkVoxelTaggingUtils::GetTagName(), svkVoxelTaggingUtils::GetTagValue(), and svkVoxelTaggingUtils::IsImageVoxelTagData().
Referenced by svkLabeledDataMapper::BuildLabelsInternal().
|
staticprotected |
Inserts tag information into the header.
References svkDcmHeader::AddSequenceItemElement(), and svkDcmHeader::GetNumberOfItemsInSequence().
Referenced by svkVoxelTaggingUtils::AddTagToVoxelData(), and svkVoxelTaggingUtils::RemoveTagFromVoxelData().
|
static |
Determines if image data object contains tag information. This is determined simply by checking for the existence of the SVK_VOXEL_TAGGING_SEQUENCE in the header.
References svkDcmHeader::ElementExists(), and svkImageData::GetDcmHeader().
Referenced by svkPlotGridView::CreateMetaboliteOverlay(), svkVoxelTaggingUtils::GetMaximumTagValue(), svkVoxelTaggingUtils::GetMinimumTagValue(), svkVoxelTaggingUtils::GetNumberOfTags(), svkVoxelTaggingUtils::GetPointDataScalarVolumeIndex(), svkVoxelTaggingUtils::GetTagName(), svkVoxelTaggingUtils::GetTagValue(), svkVoxelTaggingUtils::GetTagValueToNameMap(), svkVoxelTaggingUtils::RemoveTagFromVoxelData(), svkPlotGridView::SetSelection(), svkOverlayView::SetSelection(), svkVoxelTaggingUtils::SetTagName(), svkVoxelTaggingUtils::SetTagValue(), svkVoxelTaggingUtils::ToggleVoxelTag(), and svkPlotGridView::UpdateMetaboliteTextDisplacement().
|
static |
|
static |
Remove a tag volume from the dataset.
References svkDcmHeader::ClearSequence(), svkVoxelTaggingUtils::FixPerFrameFunctionalGroupSequence(), svkImageData::GetDcmHeader(), svkVoxelTaggingUtils::GetNumberOfTags(), svkVoxelTaggingUtils::GetPointDataScalarVolumeIndex(), svkVoxelTaggingUtils::GetTagName(), svkVoxelTaggingUtils::GetTagValue(), svkVoxelTaggingUtils::InsertTagIntoHeader(), svkTypeUtils::IntToString(), and svkVoxelTaggingUtils::IsImageVoxelTagData().
|
static |
Sets the tag name for the given volume.
References svkDcmHeader::AddSequenceItemElement(), svkImageData::GetDcmHeader(), svkVoxelTaggingUtils::GetNumberOfTags(), and svkVoxelTaggingUtils::IsImageVoxelTagData().
|
static |
Sets the tag value for the given volume.
References svkDcmHeader::AddSequenceItemElement(), svkImageData::GetDcmHeader(), svkVoxelTaggingUtils::GetNumberOfTags(), and svkVoxelTaggingUtils::IsImageVoxelTagData().
|
static |
Tag the given voxel for the input dataset. The tag applied is based on the active scalar volume. If the voxel is tagged already it will be untagged.
References svkMriImageData::GetImagePixel(), svkVoxelTaggingUtils::GetPointDataScalarVolumeIndex(), svkVoxelTaggingUtils::GetTagValue(), svkVoxelTaggingUtils::IsImageVoxelTagData(), and svkMriImageData::SetImagePixel().
Referenced by svkPlotGridView::SetSelection(), and svkOverlayView::SetSelection().
vtkTypeMacro | ( | svkVoxelTaggingUtils | , |
vtkObject | |||
) |