Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
PhongIntensityOutput.cs
1using System;
2using System.Text;
5
7{
12 {
18 public Grade Supports(Type Object) => Object == typeof(PhongIntensity) ? Grade.Ok : Grade.NotAtAll;
19
25 public string GetString(object Value)
26 {
27 PhongIntensity Intensity = (PhongIntensity)Value;
28 StringBuilder sb = new StringBuilder();
29
30 sb.Append("PhongIntensity(");
31 sb.Append(Expression.ToString(Intensity.Red));
32 sb.Append(',');
33 sb.Append(Expression.ToString(Intensity.Green));
34 sb.Append(',');
35 sb.Append(Expression.ToString(Intensity.Blue));
36 sb.Append(',');
37 sb.Append(Expression.ToString(Intensity.Alpha));
38 sb.Append(')');
39
40 return sb.ToString();
41 }
42 }
43}
Class managing a script expression.
Definition: Expression.cs:39
static string ToString(double Value)
Converts a value to a string, that can be parsed as part of an expression.
Definition: Expression.cs:4496
Converts values of type PhongIntensity to expression strings.
string GetString(object Value)
Gets a string representing a value.
Grade Supports(Type Object)
If the interface understands objects such as Object .
Contains information about the intensity of a light component, as used in the Phong reflection model....
Interface for custom string output classes. Converts objects of a given type to an expression string.
Grade
Grade enumeration
Definition: Grade.cs:7