protected override void AddToSceneCore(View3d.Window window) { var pd = Instrument.PriceData; if (GfxAsk != null) { GfxAsk.O2P = m4x4.Translation((float)Chart.XAxis.Max, (float)pd.AskPrice, 0); window.AddObject(GfxAsk); } if (GfxBid != null) { GfxBid.O2P = m4x4.Translation((float)Chart.XAxis.Max, (float)pd.BidPrice, 0); window.AddObject(GfxBid); } }
protected override void AddToSceneCore(View3d.Window window) { if (Gfx != null) { window.AddObject(Gfx); } }
protected override void AddToSceneCore(View3d.Window window) { if (Gfx != null) { // Graphics are created at the origin, position at XAxis.Max Gfx.O2P = m4x4.Translation((float)Chart.XAxis.Max, 0, ChartUI.Z.SnR); window.AddObject(Gfx); } }
protected override void AddToSceneCore(View3d.Window window) { if (Gfx == null) { return; } Gfx.O2P = m4x4.Translation(0f, (float)Chart.YAxis.Min, ChartUI.Z.Indicators); window.AddObject(Gfx); }
/// <summary>Add the graphics associated with this element to the drawset</summary> protected override void AddToSceneCore(View3d.Window window) { window.AddObject(m_gfx); }