summaryrefslogtreecommitdiffstats
path: root/src/VolumeGeometry3D.cpp
diff options
context:
space:
mode:
authorWim van Aarle <wimvanaarle@gmail.com>2015-02-25 16:46:09 +0100
committerWim van Aarle <wimvanaarle@gmail.com>2015-02-25 16:46:09 +0100
commit065d9c6a18f2b8eececc608ce850a9a308ca6356 (patch)
tree38ced94765ba77e2b710cd66fb4826f55f52250c /src/VolumeGeometry3D.cpp
parent9adc99793653c92d369bb2710b51c3c1a554b362 (diff)
downloadastra-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 'src/VolumeGeometry3D.cpp')
-rw-r--r--src/VolumeGeometry3D.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/VolumeGeometry3D.cpp b/src/VolumeGeometry3D.cpp
index d7a93a9..66e6f0c 100644
--- a/src/VolumeGeometry3D.cpp
+++ b/src/VolumeGeometry3D.cpp
@@ -380,5 +380,28 @@ CVolumeGeometry2D * CVolumeGeometry3D::createVolumeGeometry2D() const
}
//----------------------------------------------------------------------------------------
+// Get the configuration object
+Config* CVolumeGeometry3D::getConfiguration() const
+{
+ Config* cfg = new Config();
+ cfg->initialize("VolumeGeometry3D");
+
+ cfg->self->addChildNode("GridColCount", m_iGridColCount);
+ cfg->self->addChildNode("GridRowCount", m_iGridRowCount);
+ cfg->self->addChildNode("GridSliceCount", m_iGridSliceCount);
+
+ cfg->self->addOption("WindowMinX", m_fWindowMinX);
+ cfg->self->addOption("WindowMaxX", m_fWindowMaxX);
+ cfg->self->addOption("WindowMinY", m_fWindowMinY);
+ cfg->self->addOption("WindowMaxY", m_fWindowMaxY);
+ cfg->self->addOption("WindowMinZ", m_fWindowMinZ);
+ cfg->self->addOption("WindowMaxZ", m_fWindowMaxZ);
+
+ return cfg;
+}
+//----------------------------------------------------------------------------------------
+
+
+//----------------------------------------------------------------------------------------
} // namespace astra