From: huiyu.eun Date: Wed, 9 Jun 2021 02:51:55 +0000 (+0900) Subject: [NUI] Fix wrong name X-Git-Tag: accepted/tizen/unified/20231205.024657~1758 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=57580b36cd390e94aebaa58d6473c0d001ec8ec4;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Fix wrong name frustrum -> frustum MaterialtURL -> MaterialURL We need to change name 'ConicalFrsutrum' and delete 'MaterialtURL'. but this process is required ACR. I will upload ACR and change it. Signed-off-by: huiyu.eun --- diff --git a/src/Tizen.NUI/src/internal/XamlBinding/NUIConstantExtension.cs b/src/Tizen.NUI/src/internal/XamlBinding/NUIConstantExtension.cs index e91c9fd..c01744d 100755 --- a/src/Tizen.NUI/src/internal/XamlBinding/NUIConstantExtension.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/NUIConstantExtension.cs @@ -80,6 +80,7 @@ namespace Tizen.NUI.Binding { "ImageVisualProperty.AuxiliaryImageAlpha", ImageVisualProperty.AuxiliaryImageAlpha }, // MeshVisualProperty { "MeshVisualProperty.ObjectURL", MeshVisualProperty.ObjectURL }, + { "MeshVisualProperty.MaterialURL", MeshVisualProperty.MaterialURL }, { "MeshVisualProperty.MaterialtURL", MeshVisualProperty.MaterialtURL }, { "MeshVisualProperty.TexturesPath", MeshVisualProperty.TexturesPath }, { "MeshVisualProperty.ShadingMode", MeshVisualProperty.ShadingMode }, diff --git a/src/Tizen.NUI/src/public/Visuals/MeshVisual.cs b/src/Tizen.NUI/src/public/Visuals/MeshVisual.cs index f19ead1..d85f815 100755 --- a/src/Tizen.NUI/src/public/Visuals/MeshVisual.cs +++ b/src/Tizen.NUI/src/public/Visuals/MeshVisual.cs @@ -15,6 +15,8 @@ * */ +using System.ComponentModel; + namespace Tizen.NUI { /// @@ -23,13 +25,13 @@ namespace Tizen.NUI /// 3 public class MeshVisual : VisualMap { - private string _objectURL = null; - private string _materialtURL = null; - private string _texturesPath = null; - private MeshVisualShadingModeValue? _shadingMode = null; - private bool? _useMipmapping = null; - private bool? _useSoftNormals = null; - private Vector3 _lightPosition = null; + private string objectURL = null; + private string materialURL = null; + private string texturesPath = null; + private MeshVisualShadingModeValue? shadingMode = null; + private bool? useMipmapping = null; + private bool? useSoftNormals = null; + private Vector3 lightPosition = null; /// /// Constructor. @@ -48,11 +50,30 @@ namespace Tizen.NUI { get { - return _objectURL; + return objectURL; + } + set + { + objectURL = value; + UpdateVisual(); + } + } + + /// + /// Gets or sets the location of the ".mtl" file.
+ /// If not specified, then a textureless object is assumed.
+ /// Optional. + ///
+ [EditorBrowsable(EditorBrowsableState.Never)] + public string MaterialURL + { + get + { + return materialURL; } set { - _objectURL = value; + materialURL = value; UpdateVisual(); } } @@ -67,11 +88,11 @@ namespace Tizen.NUI { get { - return _materialtURL; + return materialURL; } set { - _materialtURL = value; + materialURL = value; UpdateVisual(); } } @@ -85,11 +106,11 @@ namespace Tizen.NUI { get { - return _texturesPath; + return texturesPath; } set { - _texturesPath = value; + texturesPath = value; UpdateVisual(); } } @@ -105,11 +126,11 @@ namespace Tizen.NUI { get { - return _shadingMode ?? (MeshVisualShadingModeValue.TexturedWithDetailedSpecularLighting); + return shadingMode ?? (MeshVisualShadingModeValue.TexturedWithDetailedSpecularLighting); } set { - _shadingMode = value; + shadingMode = value; UpdateVisual(); } } @@ -124,11 +145,11 @@ namespace Tizen.NUI { get { - return _useMipmapping ?? (true); + return useMipmapping ?? (true); } set { - _useMipmapping = value; + useMipmapping = value; UpdateVisual(); } } @@ -143,11 +164,11 @@ namespace Tizen.NUI { get { - return _useSoftNormals ?? (true); + return useSoftNormals ?? (true); } set { - _useSoftNormals = value; + useSoftNormals = value; UpdateVisual(); } } @@ -164,11 +185,11 @@ namespace Tizen.NUI { get { - return _lightPosition; + return lightPosition; } set { - _lightPosition = value; + lightPosition = value; UpdateVisual(); } } @@ -179,44 +200,44 @@ namespace Tizen.NUI /// 3 protected override void ComposingPropertyMap() { - if (_objectURL != null) + if (objectURL != null) { _outputVisualMap = new PropertyMap(); PropertyValue temp = new PropertyValue((int)Visual.Type.Mesh); _outputVisualMap.Add(Visual.Property.Type, temp); temp.Dispose(); - temp = new PropertyValue(_objectURL); + temp = new PropertyValue(objectURL); _outputVisualMap.Add(MeshVisualProperty.ObjectURL, temp); temp.Dispose(); - if (_materialtURL != null) + if (materialURL != null) { - temp = new PropertyValue(_materialtURL); + temp = new PropertyValue(materialURL); _outputVisualMap.Add(MeshVisualProperty.MaterialtURL, temp); temp.Dispose(); } - if (_texturesPath != null) + if (texturesPath != null) { - temp = new PropertyValue(_texturesPath); + temp = new PropertyValue(texturesPath); _outputVisualMap.Add(MeshVisualProperty.TexturesPath, temp); temp.Dispose(); } - if (_shadingMode != null) + if (shadingMode != null) { - temp = new PropertyValue((int)_shadingMode); + temp = new PropertyValue((int)shadingMode); _outputVisualMap.Add(MeshVisualProperty.ShadingMode, temp); temp.Dispose(); } - if (_useMipmapping != null) + if (useMipmapping != null) { - temp = new PropertyValue((bool)_useMipmapping); + temp = new PropertyValue((bool)useMipmapping); _outputVisualMap.Add(MeshVisualProperty.UseMipmapping, temp); temp.Dispose(); } - if (_useSoftNormals != null) + if (useSoftNormals != null) { - temp = new PropertyValue((bool)_useSoftNormals); + temp = new PropertyValue((bool)useSoftNormals); _outputVisualMap.Add(MeshVisualProperty.UseSoftNormals, temp); temp.Dispose(); } diff --git a/src/Tizen.NUI/src/public/Visuals/PrimitiveVisual.cs b/src/Tizen.NUI/src/public/Visuals/PrimitiveVisual.cs index 2d1a78a..7f881ad 100755 --- a/src/Tizen.NUI/src/public/Visuals/PrimitiveVisual.cs +++ b/src/Tizen.NUI/src/public/Visuals/PrimitiveVisual.cs @@ -85,7 +85,7 @@ namespace Tizen.NUI /// /// Gets or sets the number of slices as you go around the shape.
- /// For spheres and conical frustrums, this determines how many divisions there are as you go around the object.
+ /// For spheres and conical frustums, this determines how many divisions there are as you go around the object.
/// If not specified, the default is 128.
/// The range is from 1 to 255.
/// Optional. @@ -126,7 +126,7 @@ namespace Tizen.NUI } /// - /// Gets or sets the scale of the radius of the top circle of a conical frustrum.
+ /// Gets or sets the scale of the radius of the top circle of a conical frustum.
/// If not specified, the default is 1.0f.
/// Applies to: - PrimitiveVisualShapeType.ConicalFrustrum
/// Only values greater than or equal to 0.0f are accepted.
@@ -147,7 +147,7 @@ namespace Tizen.NUI } /// - /// Gets or sets the scale of the radius of the bottom circle of a conical frustrum.
+ /// Gets or sets the scale of the radius of the bottom circle of a conical frustum.
/// If not specified, the default is 1.5f.
/// Applies to: - PrimitiveVisualShapeType.ConicalFrustrum
/// - PrimitiveVisualShapeType.Cone
diff --git a/src/Tizen.NUI/src/public/Visuals/VisualConstants.cs b/src/Tizen.NUI/src/public/Visuals/VisualConstants.cs index 61487f3..6de5648 100755 --- a/src/Tizen.NUI/src/public/Visuals/VisualConstants.cs +++ b/src/Tizen.NUI/src/public/Visuals/VisualConstants.cs @@ -274,15 +274,15 @@ namespace Tizen.NUI ///
ConicalFrustrum, /// - /// Equivalent to a conical frustrum with the top radius of zero. - /// Equivalent to a conical frustrum with the top radius of zero. + /// Equivalent to a conical frustum with the top radius of zero. + ///
Equivalent to a conical frustum with the top radius of zero. Cone, /// - /// Equivalent to a conical frustrum with the top radius of zero. + /// Equivalent to a conical frustum with the top radius of zero. /// Cylinder, /// - /// Equivalent to a conical frustrum with equal radii for the top and bottom circles. + /// Equivalent to a conical frustum with equal radii for the top and bottom circles. /// Cube, /// @@ -961,6 +961,11 @@ namespace Tizen.NUI /// /// The location of the ".mtl" file. /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int MaterialURL = NDalic.MeshVisualMaterialUrl; + /// + /// The location of the ".mtl" file. + /// /// 3 public static readonly int MaterialtURL = NDalic.MeshVisualMaterialUrl; /// @@ -1017,12 +1022,12 @@ namespace Tizen.NUI /// 3 public static readonly int Stacks = NDalic.PrimitiveVisualStacks; /// - /// The scale of the radius of the top circle of a conical frustrum. + /// The scale of the radius of the top circle of a conical frustum. /// /// 3 public static readonly int ScaleTopRadius = NDalic.PrimitiveVisualScaleTopRadius; /// - /// The scale of the radius of the bottom circle of a conical frustrum. + /// The scale of the radius of the bottom circle of a conical frustum. /// /// 3 public static readonly int ScaleBottomRadius = NDalic.PrimitiveVisualScaleBottomRadius;