-
Notifications
You must be signed in to change notification settings - Fork 145
Expand file tree
/
Copy pathSpotLightReferenceNode.cs
More file actions
148 lines (131 loc) · 4.13 KB
/
SpotLightReferenceNode.cs
File metadata and controls
148 lines (131 loc) · 4.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#if WINAPPSDK
using Microsoft.UI.Composition;
#else
using Windows.UI.Composition;
#endif
namespace CommunityToolkit.WinUI.Animations.Expressions;
/// <summary>
/// Class SpotLightReferenceNode. This class cannot be inherited.
/// </summary>
/// <seealso cref="CommunityToolkit.WinUI.Animations.Expressions.ReferenceNode" />
public sealed partial class SpotLightReferenceNode : ReferenceNode
{
/// <summary>
/// Initializes a new instance of the <see cref="SpotLightReferenceNode"/> class.
/// </summary>
/// <param name="paramName">Name of the parameter.</param>
/// <param name="light">The light.</param>
internal SpotLightReferenceNode(string paramName, SpotLight? light = null)
: base(paramName, light)
{
}
/// <summary>
/// Creates the target reference.
/// </summary>
/// <returns>SpotLightReferenceNode.</returns>
internal static SpotLightReferenceNode CreateTargetReference()
{
var node = new SpotLightReferenceNode(null!);
node.NodeType = ExpressionNodeType.TargetReference;
return node;
}
/// <summary>
/// Gets the constant attenuation.
/// </summary>
/// <value>The constant attenuation.</value>
public ScalarNode ConstantAttenuation
{
get { return ReferenceProperty<ScalarNode>("ConstantAttenuation"); }
}
/// <summary>
/// Gets the linear attenuation.
/// </summary>
/// <value>The linear attenuation.</value>
public ScalarNode LinearAttenuation
{
get { return ReferenceProperty<ScalarNode>("LinearAttenuation"); }
}
/// <summary>
/// Gets the quadratic attenuation.
/// </summary>
/// <value>The quadratic attenuation.</value>
public ScalarNode QuadraticAttentuation
{
get { return ReferenceProperty<ScalarNode>("QuadraticAttentuation"); }
}
/// <summary>
/// Gets the inner cone angle.
/// </summary>
/// <value>The inner cone angle.</value>
public ScalarNode InnerConeAngle
{
get { return ReferenceProperty<ScalarNode>("InnerConeAngle"); }
}
/// <summary>
/// Gets the inner cone angle in degrees.
/// </summary>
/// <value>The inner cone angle in degrees.</value>
public ScalarNode InnerConeAngleInDegrees
{
get { return ReferenceProperty<ScalarNode>("InnerConeAngleInDegrees"); }
}
/// <summary>
/// Gets the outer cone angle.
/// </summary>
/// <value>The outer cone angle.</value>
public ScalarNode OuterConeAngle
{
get { return ReferenceProperty<ScalarNode>("OuterConeAngle"); }
}
/// <summary>
/// Gets the outer cone angle in degrees.
/// </summary>
/// <value>The outer cone angle in degrees.</value>
public ScalarNode OuterConeAngleInDegrees
{
get { return ReferenceProperty<ScalarNode>("OuterConeAngleInDegrees"); }
}
/// <summary>
/// Gets the color.
/// </summary>
/// <value>The color.</value>
public ColorNode Color
{
get { return ReferenceProperty<ColorNode>("Color"); }
}
/// <summary>
/// Gets the color of the inner cone.
/// </summary>
/// <value>The color of the inner cone.</value>
public ColorNode InnerConeColor
{
get { return ReferenceProperty<ColorNode>("InnerConeColor"); }
}
/// <summary>
/// Gets the color of the outer cone.
/// </summary>
/// <value>The color of the outer cone.</value>
public ColorNode OuterConeColor
{
get { return ReferenceProperty<ColorNode>("OuterConeColor"); }
}
/// <summary>
/// Gets the direction.
/// </summary>
/// <value>The direction.</value>
public Vector3Node Direction
{
get { return ReferenceProperty<Vector3Node>("Direction"); }
}
/// <summary>
/// Gets the offset.
/// </summary>
/// <value>The offset.</value>
public Vector3Node Offset
{
get { return ReferenceProperty<Vector3Node>("Offset"); }
}
}