43 #ifndef SVK_DATA_ACQUISITION_DESCRIPTION_XML_H
44 #define SVK_DATA_ACQUISITION_DESCRIPTION_XML_H
56 #include <vtkObject.h>
57 #include <vtkXMLDataElement.h>
101 int SetXMLFileName( vtkstd::string xmlFileName );
102 vtkstd::string GetXMLFileName( );
103 void ClearXMLFile( );
104 void InitializeEmptyXMLFile( );
105 void SetVerbose(
bool isVerbose );
107 vtkXMLDataElement* FindNestedElementWithPath(
string xmlPath);
108 const char* GetDataWithPath(
const char* xmlPath );
109 int SetDataWithPath(
const char* xmlPath,
const char* value );
110 vtkXMLDataElement* AddElementWithParentPath(
const char* xmlPath,
const char* name );
111 int RemoveElementWithParentPath(
const char* xmlPath,
const char* name );
113 vtkXMLDataElement* GetRootXMLDataElement();
115 void GetEncodedSpace(
int matrixSize[3],
float fov[3] );
118 void SetTrajectoryType( vtkstd::string type );
119 vtkstd::string GetTrajectoryType( );
121 void SetTrajectoryID( vtkstd::string ID );
122 vtkstd::string GetTrajectoryID( );
124 void SetTrajectoryComment( vtkstd::string comment );
125 vtkstd::string GetTrajectoryComment( );
127 void SetTrajectoryParameter( vtkstd::string name,
long value );
128 long GetTrajectoryLongParameter( vtkstd::string name );
130 void SetTrajectoryParameter( vtkstd::string name,
double value );
131 double GetTrajectoryDoubleParameter( vtkstd::string name );
134 int WriteXMLFile(
string xmlFileName );
145 void SetTrajectoryParameter( vtkstd::string type, vtkstd::string name, vtkstd::string value );
146 vtkstd::string GetTrajectoryParameter( vtkstd::string type, vtkstd::string name );
147 vtkXMLDataElement* GetTrajectoryParameterElement( vtkstd::string type, vtkstd::string name );
152 vtkstd::string xmlFileName;
153 vtkXMLDataElement* dataAcquisitionDescriptionXML;
154 vtkXMLDataElement* versionElement;
155 vtkXMLDataElement* satBandsElement;
165 #endif //SVK_DATA_ACQUISITION_DESCRIPTION_XML_H
void svkDataAcquisitionDescriptionXML_SetTrajectory(const char *type, const char *id, const char *comment, void *xml)
Definition: svkDataAcquisitionDescriptionXML.cc:828
int svkDataAcquisitionDescriptionXML_RemoveElementWithParentPath(void *xml, const char *path, const char *name)
Definition: svkDataAcquisitionDescriptionXML.cc:787
int svkDataAcquisitionDescriptionXML_WriteXMLFile(const char *filepath, void *xml)
Definition: svkDataAcquisitionDescriptionXML.cc:702
const char * svkDataAcquisitionDescriptionXML_GetTrajectoryComment(void *xml)
Definition: svkDataAcquisitionDescriptionXML.cc:878
const char * svkDataAcquisitionDescriptionXML_GetTrajectoryID(void *xml)
Definition: svkDataAcquisitionDescriptionXML.cc:862
Definition: svkSatBandsXML.h:78
int svkDataAcquisitionDescriptionXML_SetDataWithPath(void *xml, const char *path, const char *data)
Definition: svkDataAcquisitionDescriptionXML.cc:739
int svkDataAcquisitionDescriptionXML_AddElementWithParentPath(void *xml, const char *path, const char *name)
Definition: svkDataAcquisitionDescriptionXML.cc:760
const char * svkDataAcquisitionDescriptionXML_GetTrajectoryType(void *xml)
Definition: svkDataAcquisitionDescriptionXML.cc:846
void svkDataAcquisitionDescriptionXML_SetTrajectoryLongParameter(const char *name, long value, void *xml)
Definition: svkDataAcquisitionDescriptionXML.cc:896
long svkDataAcquisitionDescriptionXML_GetTrajectoryLongParameter(const char *name, void *xml)
Definition: svkDataAcquisitionDescriptionXML.cc:913
void * svkDataAcquisitionDescriptionXML_Read(const char *xmlFileName, int *status)
Definition: svkDataAcquisitionDescriptionXML.cc:682
Definition: svkDataAcquisitionDescriptionXML.h:93
void * svkDataAcquisitionDescriptionXML_New()
Definition: svkDataAcquisitionDescriptionXML.cc:649
void * svkDataAcquisitionDescriptionXML_GetSatBandsXML(void *xml)
Definition: svkDataAcquisitionDescriptionXML.cc:806
void svkDataAcquisitionDescriptionXML_SetTrajectoryDoubleParameter(const char *name, double value, void *xml)
Definition: svkDataAcquisitionDescriptionXML.cc:931
double svkDataAcquisitionDescriptionXML_GetTrajectoryDoubleParameter(const char *name, void *xml)
Definition: svkDataAcquisitionDescriptionXML.cc:949
const char * svkDataAcquisitionDescriptionXML_GetDataWithPath(void *xml, const char *path)
Definition: svkDataAcquisitionDescriptionXML.cc:720
void * svkDataAcquisitionDescriptionXML_Delete(void *xml)
Definition: svkDataAcquisitionDescriptionXML.cc:663