diff options
| author | Wim van Aarle <wimvanaarle@gmail.com> | 2015-02-25 16:46:09 +0100 | 
|---|---|---|
| committer | Wim van Aarle <wimvanaarle@gmail.com> | 2015-02-25 16:46:09 +0100 | 
| commit | 065d9c6a18f2b8eececc608ce850a9a308ca6356 (patch) | |
| tree | 38ced94765ba77e2b710cd66fb4826f55f52250c /include | |
| parent | 9adc99793653c92d369bb2710b51c3c1a554b362 (diff) | |
| download | astra-065d9c6a18f2b8eececc608ce850a9a308ca6356.tar.gz astra-065d9c6a18f2b8eececc608ce850a9a308ca6356.tar.bz2 astra-065d9c6a18f2b8eececc608ce850a9a308ca6356.tar.xz astra-065d9c6a18f2b8eececc608ce850a9a308ca6356.zip | |
get_geometry now uses XML config object (for volumes)
Diffstat (limited to 'include')
| -rw-r--r-- | include/astra/Config.h | 3 | ||||
| -rw-r--r-- | include/astra/VolumeGeometry2D.h | 6 | ||||
| -rw-r--r-- | include/astra/VolumeGeometry3D.h | 6 | ||||
| -rw-r--r-- | include/astra/XMLDocument.h | 3 | 
4 files changed, 18 insertions, 0 deletions
| diff --git a/include/astra/Config.h b/include/astra/Config.h index 647462b..9893c90 100644 --- a/include/astra/Config.h +++ b/include/astra/Config.h @@ -31,6 +31,7 @@ $Id$  #include "Globals.h"  #include "XMLNode.h" +#include "XMLDocument.h"  #include <set> @@ -46,6 +47,8 @@ struct _AstraExport Config {  	Config(XMLNode* _self);  	~Config(); +	void initialize(std::string rootname); +  	XMLNode* self;  	XMLNode* global;  }; diff --git a/include/astra/VolumeGeometry2D.h b/include/astra/VolumeGeometry2D.h index fa0528d..28703d5 100644 --- a/include/astra/VolumeGeometry2D.h +++ b/include/astra/VolumeGeometry2D.h @@ -205,6 +205,12 @@ public:  	 */  	virtual bool isEqual(CVolumeGeometry2D*) const; +	/** Get all settings in a Config object. +	 * +	 * @return Configuration Object. +	 */ +	virtual Config* getConfiguration() const; +  	/** Get the number of columns in the volume grid.  	 *  	 * @return Number of columns in the volume grid. diff --git a/include/astra/VolumeGeometry3D.h b/include/astra/VolumeGeometry3D.h index d5c8fff..ff94844 100644 --- a/include/astra/VolumeGeometry3D.h +++ b/include/astra/VolumeGeometry3D.h @@ -246,6 +246,12 @@ public:  	 */  	virtual bool isEqual(const CVolumeGeometry3D*) const; +	/** Get all settings in a Config object. +	 * +	 * @return Configuration Object. +	 */ +	virtual Config* getConfiguration() const; +  	/** Get the number of columns in the volume grid.  	 *  	 * @return Number of columns in the volume grid. diff --git a/include/astra/XMLDocument.h b/include/astra/XMLDocument.h index c6f1b9a..869e1a3 100644 --- a/include/astra/XMLDocument.h +++ b/include/astra/XMLDocument.h @@ -86,6 +86,9 @@ public:  	 */  	void saveToFile(string sFilename); +	/** convert and XML DOM tree to a string +	 */ +	std::string toString();  private: | 
