summaryrefslogtreecommitdiffstats
path: root/src/Float32VolumeData3D.cpp
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2015-04-10 12:29:22 +0200
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2015-04-10 13:59:30 +0200
commit7b55ee5f60c5f5865726cf48636b642cd9de111d (patch)
treec5c622d2f6c6255db693d878a4144192f09ddfdf /src/Float32VolumeData3D.cpp
parent306b3b5613ccb039122d38e8deb1e0ecc9e43403 (diff)
downloadastra-7b55ee5f60c5f5865726cf48636b642cd9de111d.tar.gz
astra-7b55ee5f60c5f5865726cf48636b642cd9de111d.tar.bz2
astra-7b55ee5f60c5f5865726cf48636b642cd9de111d.tar.xz
astra-7b55ee5f60c5f5865726cf48636b642cd9de111d.zip
Add changeGeometry function to Data3D classes
Diffstat (limited to 'src/Float32VolumeData3D.cpp')
-rw-r--r--src/Float32VolumeData3D.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Float32VolumeData3D.cpp b/src/Float32VolumeData3D.cpp
index ce00a10..bd78001 100644
--- a/src/Float32VolumeData3D.cpp
+++ b/src/Float32VolumeData3D.cpp
@@ -266,4 +266,13 @@ CFloat32VolumeData3D& CFloat32VolumeData3D::operator-=(const float32& _fScalar)
return *this;
}
+void CFloat32VolumeData3D::changeGeometry(CVolumeGeometry3D* _pGeometry)
+{
+ if (!m_bInitialized) return;
+
+ delete m_pGeometry;
+ m_pGeometry = _pGeometry->clone();
+}
+
+
} // end namespace astra