SIVIC API
0.9.26
|
#include <svkSatBandsXML.h>
Public Member Functions | |
vtkTypeMacro (svkSatBandsXML, vtkObject) | |
int | SetXMLFileName (vtkstd::string xmlFileName) |
int | ParseXML (vtkXMLDataElement *satBandsElement) |
vtkstd::string | GetXMLFileName () |
void | ClearXMLFile () |
void | SetVerbose (bool isVerbose) |
int | GetNumberOfPressBoxSats () |
int | GetNumberOfAutoSats () |
int | GetXMLVersion () |
void | GetPressBoxSat (int satNumber, string *label, float *normalX, float *normalY, float *normalZ, float *thickness, float *distance) |
int | GetAutoSat (int satNumber, string *label, float normal[3], float *thickness, float *distance) |
int | GetAutoSat (int satNumber, string *label, float *normalX, float *normalY, float *normalZ, float *thickness, float *distance) |
void | GetPRESSBoxParameters (float pressOrigin[3], float pressThickness[3], float pressAngles[3]) |
int | GetAutoSatParameters (int satNumber, float normal[3], float *thickness, float *distance) |
int | ConvertDatToXML (string rootName) |
int | ConvertDatToXML2 (string rootName) |
vtkXMLDataElement * | GetXMLDataElement () |
void | WriteXMLFile (string xmlFileName) |
Static Public Member Functions | |
static svkSatBandsXML * | New () |
Protected Member Functions | |
svkSatBandsXML () | |
~svkSatBandsXML () | |
Class to manage IO to/from XML representation of sat bands.
The sat band file contains 2 elements, 1 for PRESS, one for auto-sats. Each of these is comprised of a sat band definition:
normal_x normal_y normal_z thickness distance_from_origin
|
protected |
|
protected |
void ClearXMLFile | ( | ) |
Sets the current XML data to NULL so the file will be re-read.
Referenced by svkSatBandsXML::ParseXML().
int ConvertDatToXML | ( | string | rootName | ) |
Referenced by svkGEPFileMapperUCSF::InitSatBandsFromXML().
int ConvertDatToXML2 | ( | string | rootName | ) |
int GetAutoSat | ( | int | satNumber, |
string * | label, | ||
float | normal[3], | ||
float * | thickness, | ||
float * | distance | ||
) |
Get the specified sat band definition:
Referenced by svkSatBandsXML::GetAutoSatParameters(), and svkGEPFileMapperUCSF::InitSatBandsFromXML().
int GetAutoSat | ( | int | satNumber, |
string * | label, | ||
float * | normalX, | ||
float * | normalY, | ||
float * | normalZ, | ||
float * | thickness, | ||
float * | distance | ||
) |
Get the specified sat band definition: Normal thickness of band distance along normal from origin to center of plane SatNumber starts at 1 (element ID)
References svkSatBandsXML::GetNumberOfAutoSats(), and svkTypeUtils::IntToString().
int GetAutoSatParameters | ( | int | satNumber, |
float | normal[3], | ||
float * | thickness, | ||
float * | distance | ||
) |
References svkSatBandsXML::GetAutoSat().
int GetNumberOfAutoSats | ( | ) |
Referenced by svkSatBandsXML::GetAutoSat(), and svkGEPFileMapperUCSF::InitSatBandsFromXML().
int GetNumberOfPressBoxSats | ( | ) |
void GetPRESSBoxParameters | ( | float | pressOrigin[3], |
float | pressThickness[3], | ||
float | pressAngles[3] | ||
) |
Given the xml press box definition, extract the location, thickness and orientation of the box for use by the PSD. Since this is the only difference between the versions, no new classes are used.
void GetPressBoxSat | ( | int | satNumber, |
string * | label, | ||
float * | normalX, | ||
float * | normalY, | ||
float * | normalZ, | ||
float * | thickness, | ||
float * | distance | ||
) |
Get the specified sat band definition:
References svkTypeUtils::IntToString().
vtkXMLDataElement * GetXMLDataElement | ( | ) |
string GetXMLFileName | ( | ) |
Get the path to the current XML file
int GetXMLVersion | ( | ) |
|
static |
int ParseXML | ( | vtkXMLDataElement * | satBandsElement | ) |
References svkSatBandsXML::ClearXMLFile().
Referenced by svkSatBandsXML::SetXMLFileName(), and svkDataAcquisitionDescriptionXML::SetXMLFileName().
void SetVerbose | ( | bool | isVerbose | ) |
int SetXMLFileName | ( | vtkstd::string | xmlFileName | ) |
set the path/name to xml file. Parses the thre elements: versionElement, pressBoxElement, autoSatsElement
References svkSatBandsXML::ParseXML().
Referenced by svkGEPFileMapperUCSF::InitSatBandsFromXML(), and svkSatBandsXML_New().
vtkTypeMacro | ( | svkSatBandsXML | , |
vtkObject | |||
) |
void WriteXMLFile | ( | string | xmlFileName | ) |