/// <since_tizen> 10 </since_tizen>
public partial class Model : View
{
+ private Position modelPivotPoint = new Position();
internal Model(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
{
}
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
this.PositionUsesPivotPoint = true;
+ ResourcesLoaded += OnResourcesLoaded;
}
/// <summary>
return ret;
}
+ /// <summary>
+ /// Get The original pivot point of the model
+ /// </summary>
+ /// <remarks>
+ /// This returns (0, 0, 0) before resources are loaded.
+ /// </remarks>
+ // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Position ModelPivotPoint
+ {
+ get
+ {
+ return modelPivotPoint;
+ }
+ }
+
/// <summary>
/// Set/Get the ImageBasedLight ScaleFactor.
/// Scale factor controls light source intensity in [0.0f, 1.0f]
return scaleFactor;
}
+ private void OnResourcesLoaded(object sender, EventArgs e)
+ {
+ this.modelPivotPoint.X = this.PivotPoint.X;
+ this.modelPivotPoint.Y = this.PivotPoint.Y;
+ this.modelPivotPoint.Z = this.PivotPoint.Z;
+ }
+
+ /// <summary>
+ /// To make transitionSet instance be disposed.
+ /// </summary>
+ protected override void Dispose(DisposeTypes type)
+ {
+ if (disposed)
+ {
+ return;
+ }
+ ResourcesLoaded -= OnResourcesLoaded;
+ base.Dispose(type);
+ }
+
/// <summary>
/// Release swigCPtr.
/// </summary>