SIVIC API  0.9.26
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
svkVoxelTaggingUtils Class Reference

#include <svkVoxelTaggingUtils.h>

Inheritance diagram for svkVoxelTaggingUtils:

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)
 

Detailed Description

Voxel tagging utility methods specific utilities.

Constructor & Destructor Documentation

svkVoxelTaggingUtils ( )
protected

Constructor.

~svkVoxelTaggingUtils ( )
protected

Destructor.

Member Function Documentation

void AddTagToVoxelData ( svkImageData *  voxelTagData,
string  tagName,
int  tagValue 
)
static
svkMriImageData * CreateVoxelTagData ( svk4DImageData *  volumeToTag,
vector< string >  tagNames,
vector< int >  tagValues 
)
static
void FixPerFrameFunctionalGroupSequence ( svkImageData *  voxelTagData)
staticprotected
int GetMaximumTagValue ( svkImageData *  voxelTagData)
static
int GetMinimumTagValue ( svkImageData *  voxelTagData)
static
int GetNumberOfTags ( svkImageData *  voxelTagData)
static
int GetPointDataScalarVolumeIndex ( svkImageData *  voxelTagData)
static

Gets the index of the scalar data array in the point data.

References svkVoxelTaggingUtils::IsImageVoxelTagData().

Referenced by svkVoxelTaggingUtils::RemoveTagFromVoxelData(), and svkVoxelTaggingUtils::ToggleVoxelTag().

string GetTagName ( svkImageData *  voxelTagData,
int  tagVolume 
)
static
int GetTagValue ( svkImageData *  voxelTagData,
int  tagVolume 
)
static
map< int, string > GetTagValueToNameMap ( svkImageData *  voxelTagData)
static
void InsertTagIntoHeader ( svkDcmHeader *  header,
string  tagName,
int  tagValue 
)
staticprotected
bool IsImageVoxelTagData ( svkImageData *  data)
static
static svkVoxelTaggingUtils* New ( )
static
void RemoveTagFromVoxelData ( svkImageData *  voxelTagData,
int  tagVolume 
)
static
void SetTagName ( svkImageData *  voxelTagData,
string  tagName,
int  tagVolume 
)
static
void SetTagValue ( svkImageData *  voxelTagData,
int  tagValue,
int  tagVolume 
)
static
void ToggleVoxelTag ( svkImageData *  voxelTagData,
int  voxelID,
int  tagVolume = -1 
)
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   
)

The documentation for this class was generated from the following files: