コード例 #1
0
        /// <summary>
        /// Scrolls through patient slices in the direciton of the camera normal vector
        /// </summary>
        /// <param name="direction">Positive or negative value indicating direction with respect to the normal vector</param>
        public void Scroll(double direction, double amount)
        {
            if (direction == 0)
            {
                return;
            }

            Point3d movDir = new Point3d();

            Normal.CopyTo(movDir);
            movDir   *= (direction / Math.Abs(direction));
            Position += movDir * amount;

            this.onUpdateView();
        }