Line data Source code
1 : #include "VolumeDescriptor.h" 2 : 3 : #include <algorithm> 4 : 5 : namespace elsa 6 : { 7 0 : VolumeDescriptor::VolumeDescriptor(IndexVector_t numberOfCoefficientsPerDimension) 8 0 : : DataDescriptor(numberOfCoefficientsPerDimension) 9 : { 10 0 : } 11 : 12 0 : VolumeDescriptor::VolumeDescriptor(IndexVector_t numberOfCoefficientsPerDimension, 13 0 : RealVector_t spacingPerDimension) 14 0 : : DataDescriptor(numberOfCoefficientsPerDimension, spacingPerDimension) 15 : { 16 0 : } 17 : 18 0 : VolumeDescriptor::VolumeDescriptor( 19 0 : std::initializer_list<index_t> numberOfCoefficientsPerDimension) 20 0 : : DataDescriptor(IndexVector_t{numberOfCoefficientsPerDimension}) 21 : { 22 0 : } 23 : 24 0 : VolumeDescriptor::VolumeDescriptor( 25 : std::initializer_list<index_t> numberOfCoefficientsPerDimension, 26 0 : std::initializer_list<real_t> spacingPerDimension) 27 0 : : DataDescriptor(IndexVector_t{numberOfCoefficientsPerDimension}, 28 0 : RealVector_t{spacingPerDimension}) 29 : { 30 0 : } 31 : 32 0 : VolumeDescriptor* VolumeDescriptor::cloneImpl() const 33 : { 34 0 : return new VolumeDescriptor(_numberOfCoefficientsPerDimension, _spacingPerDimension); 35 : } 36 : 37 0 : bool VolumeDescriptor::isEqual(const DataDescriptor& other) const 38 : { 39 0 : return DataDescriptor::isEqual(other); 40 : } 41 : 42 : } // namespace elsa