[ismrmrd] 275/281: add more constructors to MatrixSize and Limit
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Wed Jan 14 20:01:23 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to annotated tag ismrmrd0.5
in repository ismrmrd.
commit b102f845c42e92a10cb07469591d1239953ffd1b
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Mon Sep 1 16:06:46 2014 +0100
add more constructors to MatrixSize and Limit
now possible:
- MatrixSize {x, y}, 2D ctor, z set to 1 implicitly
- MatrixSize {x, y, z}, 3D ctor, x, y, z set explicitly
- Limit {min, max, cen}
---
xml/ismrmrd_xml.h | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/xml/ismrmrd_xml.h b/xml/ismrmrd_xml.h
index 1650c7b..a53277c 100644
--- a/xml/ismrmrd_xml.h
+++ b/xml/ismrmrd_xml.h
@@ -156,6 +156,23 @@ namespace ISMRMRD
{
}
+
+ MatrixSize(unsigned short x, unsigned short y)
+ : x(x)
+ , y(y)
+ , z(1)
+ {
+
+ }
+
+ MatrixSize(unsigned short x, unsigned short y, unsigned short z)
+ : x(x)
+ , y(y)
+ , z(z)
+ {
+
+ }
+
unsigned short x;
unsigned short y;
unsigned short z;
@@ -185,6 +202,14 @@ namespace ISMRMRD
}
+ Limit(unsigned short minimum, unsigned short maximum, unsigned short center)
+ : minimum(minimum)
+ , maximum(maximum)
+ , center(center)
+ {
+
+ }
+
unsigned short minimum;
unsigned short maximum;
unsigned short center;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ismrmrd.git
More information about the debian-science-commits
mailing list