示例#1
0
        public FilteringData(IData3D <T> child, int xStep, int yStep, int zStep)
        {
            if (child == null)
            {
                throw new ArgumentNullException("child");
            }
            if (xStep <= 1)
            {
                throw new ArgumentOutOfRangeException("xStep", "Should be greater than 1.");
            }
            if (yStep <= 1)
            {
                throw new ArgumentOutOfRangeException("yStep", "Should be greater than 1.");
            }
            if (zStep <= 1)
            {
                throw new ArgumentOutOfRangeException("zStep", "Should be greater than 1.");
            }

            this.child = child;

            this.xStep = xStep;
            this.yStep = yStep;
            this.zStep = zStep;
        }
		public UniformField3DWrapper(IData3D<Vector3D> field, int width, int height, int depth)
		{
			if (field == null)
				throw new ArgumentNullException("field");
			if (width <= 1)
				throw new ArgumentOutOfRangeException("width");
			if (height <= 1)
				throw new ArgumentOutOfRangeException("height");
			if (depth <= 1)
				throw new ArgumentOutOfRangeException("depth");

			this.field = field;
			this.width = width;
			this.height = height;
			this.depth = depth;
		}
示例#3
0
        public UniformField3DWrapper(IData3D <Vector3D> field, int width, int height, int depth)
        {
            if (field == null)
            {
                throw new ArgumentNullException("field");
            }
            if (width <= 1)
            {
                throw new ArgumentOutOfRangeException("width");
            }
            if (height <= 1)
            {
                throw new ArgumentOutOfRangeException("height");
            }
            if (depth <= 1)
            {
                throw new ArgumentOutOfRangeException("depth");
            }

            this.field  = field;
            this.width  = width;
            this.height = height;
            this.depth  = depth;
        }
示例#4
0
 public MagnitudeData3D(IData3D <Vector3D> data)
 {
     this.data = data;
 }