コード例 #1
0
        /// <summary>
        /// Performs a deep copy of this <see cref="IGraphicsState"/>.
        /// </summary>
        /// <returns>
        /// It returns the equivalent of this <see cref="IGraphicsState"/>, but all objects referenced
        /// are not referred by both instances.
        /// </returns>
        public override IGraphicsState Copy()
        {
            TransformStateDouble copiedState = (TransformStateDouble)base.Copy();

            if (_LocalProjection != null)
            {
                copiedState._LocalProjection = (ProjectionMatrixDouble)_LocalProjection.Clone();
            }
            copiedState._LocalModel = new ModelMatrixDouble(_LocalModel);

            return(copiedState);
        }
コード例 #2
0
		/// <summary>
		/// Performs a deep copy of this <see cref="IGraphicsState"/>.
		/// </summary>
		/// <returns>
		/// It returns the equivalent of this <see cref="IGraphicsState"/>, but all objects referenced
		/// are not referred by both instances.
		/// </returns>
		public override IGraphicsState Copy()
		{
			TransformStateDouble copiedState = new TransformStateDouble();		// Do not use base.Copy()!

			return (copiedState);
		}
コード例 #3
0
        /// <summary>
        /// Performs a deep copy of this <see cref="IGraphicsState"/>.
        /// </summary>
        /// <returns>
        /// It returns the equivalent of this <see cref="IGraphicsState"/>, but all objects referenced
        /// are not referred by both instances.
        /// </returns>
        public override IGraphicsState Copy()
        {
            TransformStateDouble copiedState = new TransformStateDouble();                      // Do not use base.Copy()!

            return(copiedState);
        }