/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/ProjectionCamera.cs

https://github.com/dotnet/wpf · C# · 364 lines · 195 code · 76 blank · 93 comment · 0 complexity · 59d943bf9437951e88465421a24008ae MD5 · raw file

  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. //
  5. //
  6. // This file was generated, please do not edit it directly.
  7. //
  8. // Please see MilCodeGen.html for more information.
  9. //
  10. using MS.Internal;
  11. using MS.Internal.Collections;
  12. using MS.Internal.PresentationCore;
  13. using MS.Utility;
  14. using System;
  15. using System.Collections;
  16. using System.Collections.Generic;
  17. using System.ComponentModel;
  18. using System.ComponentModel.Design.Serialization;
  19. using System.Diagnostics;
  20. using System.Globalization;
  21. using System.Reflection;
  22. using System.Runtime.InteropServices;
  23. using System.Text;
  24. using System.Windows.Markup;
  25. using System.Windows.Media.Media3D.Converters;
  26. using System.Windows.Media;
  27. using System.Windows.Media.Animation;
  28. using System.Windows.Media.Composition;
  29. using System.Security;
  30. using SR=MS.Internal.PresentationCore.SR;
  31. using SRID=MS.Internal.PresentationCore.SRID;
  32. using System.Windows.Media.Imaging;
  33. // These types are aliased to match the unamanaged names used in interop
  34. using BOOL = System.UInt32;
  35. using WORD = System.UInt16;
  36. using Float = System.Single;
  37. namespace System.Windows.Media.Media3D
  38. {
  39. abstract partial class ProjectionCamera : Camera
  40. {
  41. //------------------------------------------------------
  42. //
  43. // Public Methods
  44. //
  45. //------------------------------------------------------
  46. #region Public Methods
  47. /// <summary>
  48. /// Shadows inherited Clone() with a strongly typed
  49. /// version for convenience.
  50. /// </summary>
  51. public new ProjectionCamera Clone()
  52. {
  53. return (ProjectionCamera)base.Clone();
  54. }
  55. /// <summary>
  56. /// Shadows inherited CloneCurrentValue() with a strongly typed
  57. /// version for convenience.
  58. /// </summary>
  59. public new ProjectionCamera CloneCurrentValue()
  60. {
  61. return (ProjectionCamera)base.CloneCurrentValue();
  62. }
  63. #endregion Public Methods
  64. //------------------------------------------------------
  65. //
  66. // Public Properties
  67. //
  68. //------------------------------------------------------
  69. private static void NearPlaneDistancePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
  70. {
  71. ProjectionCamera target = ((ProjectionCamera) d);
  72. target.PropertyChanged(NearPlaneDistanceProperty);
  73. }
  74. private static void FarPlaneDistancePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
  75. {
  76. ProjectionCamera target = ((ProjectionCamera) d);
  77. target.PropertyChanged(FarPlaneDistanceProperty);
  78. }
  79. private static void PositionPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
  80. {
  81. ProjectionCamera target = ((ProjectionCamera) d);
  82. target.PropertyChanged(PositionProperty);
  83. }
  84. private static void LookDirectionPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
  85. {
  86. ProjectionCamera target = ((ProjectionCamera) d);
  87. target.PropertyChanged(LookDirectionProperty);
  88. }
  89. private static void UpDirectionPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
  90. {
  91. ProjectionCamera target = ((ProjectionCamera) d);
  92. target.PropertyChanged(UpDirectionProperty);
  93. }
  94. #region Public Properties
  95. /// <summary>
  96. /// NearPlaneDistance - double. Default value is (double)0.125.
  97. /// </summary>
  98. public double NearPlaneDistance
  99. {
  100. get
  101. {
  102. return (double) GetValue(NearPlaneDistanceProperty);
  103. }
  104. set
  105. {
  106. SetValueInternal(NearPlaneDistanceProperty, value);
  107. }
  108. }
  109. /// <summary>
  110. /// FarPlaneDistance - double. Default value is (double)Double.PositiveInfinity.
  111. /// </summary>
  112. public double FarPlaneDistance
  113. {
  114. get
  115. {
  116. return (double) GetValue(FarPlaneDistanceProperty);
  117. }
  118. set
  119. {
  120. SetValueInternal(FarPlaneDistanceProperty, value);
  121. }
  122. }
  123. /// <summary>
  124. /// Position - Point3D. Default value is new Point3D().
  125. /// </summary>
  126. public Point3D Position
  127. {
  128. get
  129. {
  130. return (Point3D) GetValue(PositionProperty);
  131. }
  132. set
  133. {
  134. SetValueInternal(PositionProperty, value);
  135. }
  136. }
  137. /// <summary>
  138. /// LookDirection - Vector3D. Default value is new Vector3D(0,0,-1).
  139. /// </summary>
  140. public Vector3D LookDirection
  141. {
  142. get
  143. {
  144. return (Vector3D) GetValue(LookDirectionProperty);
  145. }
  146. set
  147. {
  148. SetValueInternal(LookDirectionProperty, value);
  149. }
  150. }
  151. /// <summary>
  152. /// UpDirection - Vector3D. Default value is new Vector3D(0,1,0).
  153. /// </summary>
  154. public Vector3D UpDirection
  155. {
  156. get
  157. {
  158. return (Vector3D) GetValue(UpDirectionProperty);
  159. }
  160. set
  161. {
  162. SetValueInternal(UpDirectionProperty, value);
  163. }
  164. }
  165. #endregion Public Properties
  166. //------------------------------------------------------
  167. //
  168. // Protected Methods
  169. //
  170. //------------------------------------------------------
  171. #region Protected Methods
  172. #endregion ProtectedMethods
  173. //------------------------------------------------------
  174. //
  175. // Internal Methods
  176. //
  177. //------------------------------------------------------
  178. #region Internal Methods
  179. #endregion Internal Methods
  180. //------------------------------------------------------
  181. //
  182. // Internal Properties
  183. //
  184. //------------------------------------------------------
  185. #region Internal Properties
  186. #endregion Internal Properties
  187. //------------------------------------------------------
  188. //
  189. // Dependency Properties
  190. //
  191. //------------------------------------------------------
  192. #region Dependency Properties
  193. /// <summary>
  194. /// The DependencyProperty for the ProjectionCamera.NearPlaneDistance property.
  195. /// </summary>
  196. public static readonly DependencyProperty NearPlaneDistanceProperty;
  197. /// <summary>
  198. /// The DependencyProperty for the ProjectionCamera.FarPlaneDistance property.
  199. /// </summary>
  200. public static readonly DependencyProperty FarPlaneDistanceProperty;
  201. /// <summary>
  202. /// The DependencyProperty for the ProjectionCamera.Position property.
  203. /// </summary>
  204. public static readonly DependencyProperty PositionProperty;
  205. /// <summary>
  206. /// The DependencyProperty for the ProjectionCamera.LookDirection property.
  207. /// </summary>
  208. public static readonly DependencyProperty LookDirectionProperty;
  209. /// <summary>
  210. /// The DependencyProperty for the ProjectionCamera.UpDirection property.
  211. /// </summary>
  212. public static readonly DependencyProperty UpDirectionProperty;
  213. #endregion Dependency Properties
  214. //------------------------------------------------------
  215. //
  216. // Internal Fields
  217. //
  218. //------------------------------------------------------
  219. #region Internal Fields
  220. internal const double c_NearPlaneDistance = (double)0.125;
  221. internal const double c_FarPlaneDistance = (double)Double.PositiveInfinity;
  222. internal static Point3D s_Position = new Point3D();
  223. internal static Vector3D s_LookDirection = new Vector3D(0,0,-1);
  224. internal static Vector3D s_UpDirection = new Vector3D(0,1,0);
  225. #endregion Internal Fields
  226. #region Constructors
  227. //------------------------------------------------------
  228. //
  229. // Constructors
  230. //
  231. //------------------------------------------------------
  232. static ProjectionCamera()
  233. {
  234. // We check our static default fields which are of type Freezable
  235. // to make sure that they are not mutable, otherwise we will throw
  236. // if these get touched by more than one thread in the lifetime
  237. // of your app.
  238. // Initializations
  239. Type typeofThis = typeof(ProjectionCamera);
  240. NearPlaneDistanceProperty =
  241. RegisterProperty("NearPlaneDistance",
  242. typeof(double),
  243. typeofThis,
  244. (double)0.125,
  245. new PropertyChangedCallback(NearPlaneDistancePropertyChanged),
  246. null,
  247. /* isIndependentlyAnimated = */ true,
  248. /* coerceValueCallback */ null);
  249. FarPlaneDistanceProperty =
  250. RegisterProperty("FarPlaneDistance",
  251. typeof(double),
  252. typeofThis,
  253. (double)Double.PositiveInfinity,
  254. new PropertyChangedCallback(FarPlaneDistancePropertyChanged),
  255. null,
  256. /* isIndependentlyAnimated = */ true,
  257. /* coerceValueCallback */ null);
  258. PositionProperty =
  259. RegisterProperty("Position",
  260. typeof(Point3D),
  261. typeofThis,
  262. new Point3D(),
  263. new PropertyChangedCallback(PositionPropertyChanged),
  264. null,
  265. /* isIndependentlyAnimated = */ true,
  266. /* coerceValueCallback */ null);
  267. LookDirectionProperty =
  268. RegisterProperty("LookDirection",
  269. typeof(Vector3D),
  270. typeofThis,
  271. new Vector3D(0,0,-1),
  272. new PropertyChangedCallback(LookDirectionPropertyChanged),
  273. null,
  274. /* isIndependentlyAnimated = */ true,
  275. /* coerceValueCallback */ null);
  276. UpDirectionProperty =
  277. RegisterProperty("UpDirection",
  278. typeof(Vector3D),
  279. typeofThis,
  280. new Vector3D(0,1,0),
  281. new PropertyChangedCallback(UpDirectionPropertyChanged),
  282. null,
  283. /* isIndependentlyAnimated = */ true,
  284. /* coerceValueCallback */ null);
  285. }
  286. #endregion Constructors
  287. }
  288. }