SIVIC API
0.9.26
|
#include <svkUtils.h>
Public Member Functions | |
vtkTypeMacro (svkUtils, vtkObject) | |
Static Public Member Functions | |
static svkUtils * | New () |
static bool | FilePathExists (const char *path) |
Does the file or path exist: More... | |
static string | GetCurrentWorkingDirectory () |
static string | GetHomeDirectory () |
static string | GetUserName () |
static bool | CanWriteToPath (const char *path) |
static int | CopyFile (const char *input, const char *output) |
static int | MoveFile (const char *input, const char *output) |
static bool | PrintFile (const char *fileName, const char *printerName) |
static vector< string > | GetFileNamesFromPattern (string imageBaseName, int startSlice, int endSlice) |
static string | GetDefaultSecondaryCaptureDirectory (svkMriImageData *image, svk4DImageData *spectra) |
static string | GetDefaultSecondaryCaptureFilePattern (svkMriImageData *image, svk4DImageData *spectra) |
static int | GetNextPower2 (int x) |
static void | StringToColorArray (double color[3], string colorString) |
static string | Double3x3ToString (double doubleMatrix[][3]) |
static string | ColorArrayToString (double color[3]) |
static vector< string > | SplitString (string str, string token) |
static string | GetFilenameFromFullPath (string fullPath) |
static int | NearestInt (double x) |
static bool | UncompressFiles (vtkStringArray *filenames) |
static bool | UncompressFile (vtkstd::string filename) |
static bool | IsFileCompressed (vtkstd::string filename) |
static string | SpacesTo_ (string inputString) |
static bool | AreValuesClose (double x, double y, double maxRatio=0.01) |
static bool | AreValuesClose (double x[3], double y[3], double maxRatio=0.01) |
static int | GetNumberOfDigits (int value, bool isMinusDigit=false) |
static void | GetRealpath (const char *path, int size, char *realpath) |
static void | ReadLine (ifstream *fs, istringstream *iss) |
Protected Member Functions | |
svkUtils () | |
Constructor. More... | |
~svkUtils () | |
Destructor. More... | |
UCSF specific utilities.
|
protected |
Constructor.
|
protected |
Destructor.
|
static |
Used to test for minor differences in values.
Referenced by svkDataValidator::AreDataSpacingsSame(), and svkUtils::AreValuesClose().
|
static |
Used to test for minor differences in values.
References svkUtils::AreValuesClose().
|
static |
Checks to see if a file, or path exists.
Referenced by svkGEConsolePACSInterface::Connect(), and svkUCSFPACSInterface::Connect().
|
static |
|
static |
Copy a file.
Referenced by svkUtils::MoveFile(), and svkQuantifyMetabolites::SaveOldVersion().
|
static |
doubleVal |
|
static |
Does the file or path exist:
Checks to see if a file, or path exists.
Referenced by svkF2C::GetIDFHeader(), svkImageAlgorithmPipeline::InitializeAlgorithmForTag(), and svkAlgorithmPortMapper::SetMRImageInputPortValue().
|
static |
Get the current working directory.
|
static |
Generates a derectory based on the series and series number sof the image and spectra. Used for pushing to PACS.
References svkImageData::GetDcmHeader(), and svkDcmHeader::GetIntValue().
|
static |
Generates a derectory based on the series and series number sof the image and activeData. Used for pushing to PACS.
References svkImageData::GetDcmHeader(), and svkDcmHeader::GetStringValue().
|
static |
Returns the string following final slash. This could be a filename or terminal directory.
References svkUtils::SplitString().
Referenced by svkGEConsolePACSInterface::SendImagesToPACS().
|
static |
Moves all image slices from one location to another. Either * in the imageBaseName will be replaced with the slice number or a number will be inserted before the extention.
|
static |
Returns the users home diretory.
Referenced by svkQuantifyMetabolites::GetDefaultXMLFileName().
|
static |
Returns the next highest power of two greater than the input x.
Referenced by svkMrsZeroFill::RequestInformation().
|
static |
Get the number of digits in an integer. Minus sign counts as a digit in this case.
|
static |
Method expands relative paths.
|
static |
|
static |
Check to see if a file is compressed. Platform dependent, currently not supported on windows.
Referenced by svkUtils::UncompressFile().
|
static |
Move a file.
References svkUtils::CopyFile().
|
static |
Referenced by svkStatistics::GetAutoAdjustedBinSize(), and svkDICOMImageWriter::GetScaledPixels().
|
static |
|
static |
Print a file. Not yet supported in Windows.
|
static |
Utility function to read a single line from a file stream.
|
static |
This method replaces spaces with underscores (_). Spaces are not permitted in strings used through the tcl layer so if we want to use a string as a variable in this way then the spaces must be extracted.
|
static |
Referenced by svkUtils::GetFilenameFromFullPath(), and svkUtils::StringToColorArray().
|
static |
References svkUtils::SplitString(), and svkTypeUtils::StringToDouble().
|
static |
Uncompress a file. Platform dependent, currently not supported on windows.
References svkUtils::IsFileCompressed().
Referenced by svkUtils::UncompressFiles().
|
static |
Uncompress all files given.
References svkUtils::UncompressFile().
vtkTypeMacro | ( | svkUtils | , |
vtkObject | |||
) |