/// <summary> /// Virtual MRhinoDisplayConduit.ExecConduit override /// </summary> public override bool ExecConduit(ref MRhinoDisplayPipeline dp, uint nChannel, ref bool bTerminate) { if (nChannel == MSupportChannels.SC_CALCBOUNDINGBOX) { m_pChannelAttrs.m_BoundingBox.Union(m_line.BoundingBox()); } else if (nChannel == MSupportChannels.SC_DRAWOVERLAY) { dp.DrawLine(m_line.from, m_line.to, m_pDisplayAttrs.m_ObjectColor | 0xFF000000, m_pDisplayAttrs.m_nLineThickness); if (m_bDraw) { dp.DrawPolygon(m_arrowhead, dp.DisplayAttrs().m_ObjectColor | 0xFF000000, true); } } return(true); }
/// <summary> /// Virtual MRhinoDisplayConduit.ExecConduit override /// </summary> public override bool ExecConduit(ref MRhinoDisplayPipeline dp, uint nChannel, ref bool bTerminate) { if (nChannel == MSupportChannels.SC_CALCBOUNDINGBOX) { m_pChannelAttrs.m_BoundingBox.Union(m_line.BoundingBox()); } else if (nChannel == MSupportChannels.SC_DRAWOVERLAY) { dp.DrawLine(m_line.from, m_line.to, m_pDisplayAttrs.m_ObjectColor | 0xFF000000, m_pDisplayAttrs.m_nLineThickness); if (m_bDraw) dp.DrawPolygon(m_arrowhead, dp.DisplayAttrs().m_ObjectColor | 0xFF000000, true); } return true; }