#include <XMLParser.h>
This class is part of the Tools namespace and its task is the handling of the loading and saving of the application sttings.
To saving several application settings which are choosen by the user on the main GUI window (see class Neu) this class implements a XML parser which actually saves those setting in a predefined XML data structure. The file name and path will be choosen by the user by a standard file save dialog and is assigned to the main saving function XMLParser.save_ConfigFile.
Furthermore, the user has the possiblity to save a complete opacity and color transfer function which is been defined in the class TransferFuncWin. Like before, the file name and path will be assigned to the function XMLParser.save_Transferfunction which implements the saving of the transfer function into a XML data structure.
To load the application setting or the user-defined transferfunctions the member function XMLParser.load_ConfigFile and XMLParser.load_Transferfunction are included in this class.
TransferFuncWin - the transfer function editor class
Public Member Functions | |
XMLParser (String *n_FilePath) | |
Constructor initialization with the valid XML file name and path. | |
void | load_ConfigFile (void) |
Loads the entire application settings from an already specified XML file. | |
Transferfunction * | load_Transferfunction (void) |
Loads the entire opacity and color transfer function from an already specified XML file. | |
void | save_ConfigFile (Array *n_NewValues) |
Saves the assigned values of the parameter into the already specified XML file. | |
void | save_Transferfunction (Transferfunction *n_TransFunc) |
Saves the assigned transfer function into the already specified XML file. | |
Private Types | |
enum | attributes { NAME = 0, VALUE } |
Constant variables for xml attribute identification. More... | |
enum | colorIndices |
Constant n_Index values for the three color components red, green and blue. | |
Private Member Functions | |
void | read_DatafileSettings (XmlNodeReader *n_XMLReader) |
Reads the values of teh setting group Datafile from the XML file. | |
void | read_PhongShadingSettings (XmlNodeReader *n_XMLReader) |
Reads the values of teh setting group PhongShading from the XML file. | |
void | read_OptimationSettings (XmlNodeReader *n_XMLReader) |
Reads the values of teh setting group Optimations from the XML file. | |
void | read_DepthCueingSettings (XmlNodeReader *n_XMLReader) |
Reads the values of teh setting group DepthCueing from the XML file. | |
void | read_MIPSettings (XmlNodeReader *n_XMLReader) |
Reads the values of teh setting group MIP from the XML file. | |
void | read_ContourSettings (XmlNodeReader *n_XMLReader) |
Reads the values of teh setting group Contour from the XML file. | |
void | read_ToneSettings (XmlNodeReader *n_XMLReader) |
Reads the values of teh setting group Tone from the XML file. | |
void | save_DatafileSettings (XmlTextWriter *n_SaveConfigFile, Array *n_NewValues, int *n_Index) |
Saves the assigned values of the setting group Datafile into the specified XML file. | |
void | save_PhongShadingSettings (XmlTextWriter *n_SaveConfigFile, Array *n_NewValues, int *n_Index) |
Saves the assigned values of the setting group PhongShading into the specified XML file. | |
void | save_OptimationSettings (XmlTextWriter *n_SaveConfigFile, Array *n_NewValues, int *n_Index) |
Saves the assigned values of the setting group Optimations into the specified XML file. | |
void | save_DepthCueingSettings (XmlTextWriter *n_SaveConfigFile, Array *n_NewValues, int *n_Index) |
Saves the assigned values of the setting group DeothCueing into the specified XML file. | |
void | save_MIPSettings (XmlTextWriter *n_SaveConfigFile, Array *n_NewValues, int *n_Index) |
Saves the assigned values of the setting group MIP into the specified XML file. | |
void | save_ContourSettings (XmlTextWriter *n_SaveConfigFile, Array *n_NewValues, int *n_Index) |
Saves the assigned values of the setting group Contour into the specified XML file. | |
void | save_ToneSettings (XmlTextWriter *n_SaveConfigFile, Array *n_NewValues, int *n_Index) |
Saves the assigned values of the setting group Tone into the specified XML file. | |
Private Attributes | |
String * | m_FilePath |
Saves the current file path of the XML file. | |
String * | m_FileName |
Saves the current file name of the XML file. |
|
Constant variables for xml attribute identification.
|
|
Constructor initialization with the valid XML file name and path. All member variables will be set to the corresponding parameters.
|
|
Loads the entire application settings from an already specified XML file. Select the XML file by calling the constructor XMLParser(String*). Thus, a new instance of this class must be created if a new file nam and path is choosen. |
|
Loads the entire opacity and color transfer function from an already specified XML file. Select the XML file by calling the constructor XMLParser(String*). Thus, a new instance of this class must be created if a new file nam and path is choosen.
|
|
Reads the values of teh setting group Contour from the XML file.
|
|
Reads the values of teh setting group Datafile from the XML file.
|
|
Reads the values of teh setting group DepthCueing from the XML file.
|
|
Reads the values of teh setting group MIP from the XML file.
|
|
Reads the values of teh setting group Optimations from the XML file.
|
|
Reads the values of teh setting group PhongShading from the XML file.
|
|
Reads the values of teh setting group Tone from the XML file.
|
|
Saves the assigned values of the parameter into the already specified XML file. Select the XML file by calling the constructor XMLParser(String*). Thus, a new instance of this class must be created if a new file nam and path is choosen.
|
|
Saves the assigned values of the setting group Contour into the specified XML file.
|
|
Saves the assigned values of the setting group Datafile into the specified XML file.
|
|
Saves the assigned values of the setting group DeothCueing into the specified XML file.
|
|
Saves the assigned values of the setting group MIP into the specified XML file.
|
|
Saves the assigned values of the setting group Optimations into the specified XML file.
|
|
Saves the assigned values of the setting group PhongShading into the specified XML file.
|
|
Saves the assigned values of the setting group Tone into the specified XML file.
|
|
Saves the assigned transfer function into the already specified XML file. Select the XML file by calling the constructor XMLParser(String*). Thus, a new instance of this class must be created if a new file nam and path is choosen.
|