protected override void DrawSelf(float z) { renderer.SetSceneObject(textBillboard); try { MetricsMode tmp = this.MetricsMode; this.MetricsMode = MetricsMode.Absolute; renderer.SetWidgetSize(this.Size); this.MetricsMode = tmp; Logger.Log(0, "Calling DrawSelf: node = " + node); // base.DrawSelf(z); Logger.Log(0, "Done calling DrawSelf"); } finally { renderer.SetSceneObject(null); } }
/// <summary> /// /// </summary> /// <param name="name"></param> protected internal OverlayElement(string name) { this.name = name; width = 1.0f; height = 1.0f; isVisible = true; isDerivedOutOfDate = true; isCloneable = true; metricsMode = MetricsMode.Relative; horzAlign = HorizontalAlignment.Left; vertAlign = VerticalAlignment.Top; geomPositionsOutOfDate = true; isEnabled = true; RegisterParsers(); }
/// <summary> /// /// </summary> /// <param name="name"></param> protected internal OverlayElement( string name ) : base() { this.name = name; isVisible = true; isCloneable = true; left = 0.0f; top = 0.0f; width = 1.0f; height = 1.0f; metricsMode = MetricsMode.Relative; horzAlign = HorizontalAlignment.Left; vertAlign = VerticalAlignment.Top; pixelTop = 0.0f; pixelLeft = 0.0f; pixelWidth = 1.0f; pixelHeight = 1.0f; pixelScaleX = 1.0f; pixelScaleY = 1.0f; parent = null; overlay = null; isDerivedOutOfDate = true; isGeomPositionsOutOfDate = true; isGeomUVsOutOfDate = true; zOrder = 0; isEnabled = true; isInitialized = false; sourceTemplate = null; }
public string GetMetrics(MetricsMode mode) { return(Tools.Metrics.GetUnifiedMetrics(myImage, mode)); }