diff options
author | Willem Jan Palenstijn <wjp@usecode.org> | 2015-04-14 14:55:23 +0200 |
---|---|---|
committer | Willem Jan Palenstijn <wjp@usecode.org> | 2015-04-14 14:55:23 +0200 |
commit | 0242b4c361a61f601e6d87ce5a2459c69f913c72 (patch) | |
tree | 5dbb3e59de9a4808ea33b9d960e44f4fbae06a2d /src/Float32VolumeData3D.cpp | |
parent | d24877997bfe77e7177e3208328d99e1f99ac6b9 (diff) | |
parent | e2c87a5e259c847772c733eefb1b291b2a5b1a6e (diff) | |
download | astra-0242b4c361a61f601e6d87ce5a2459c69f913c72.tar.gz astra-0242b4c361a61f601e6d87ce5a2459c69f913c72.tar.bz2 astra-0242b4c361a61f601e6d87ce5a2459c69f913c72.tar.xz astra-0242b4c361a61f601e6d87ce5a2459c69f913c72.zip |
Merge pull request #52 from wjp/change_geometry3d
Add data3d('change_geometry')
Diffstat (limited to 'src/Float32VolumeData3D.cpp')
-rw-r--r-- | src/Float32VolumeData3D.cpp | 9 |
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 |