/* * METHODS: I_DRAWABLE */ public void Draw(I_Draw i_draw, DrawParam dp) { if (this.IsEmpty) { return; } if (dp != null) { i_draw.DrawSeg(this.vecMin.X, this.vecMin.Y, this.vecMax.X, this.vecMin.Y, dp.StrColor, dp.ScrWidth); i_draw.DrawSeg(this.vecMax.X, this.vecMin.Y, this.vecMax.X, this.vecMax.Y, dp.StrColor, dp.ScrWidth); i_draw.DrawSeg(this.vecMax.X, this.vecMax.Y, this.vecMin.X, this.vecMax.Y, dp.StrColor, dp.ScrWidth); i_draw.DrawSeg(this.vecMin.X, this.vecMax.Y, this.vecMin.X, this.vecMin.Y, dp.StrColor, dp.ScrWidth); } }
/* * METHODS: I_DRAWABLE */ public void Draw(I_Draw i_draw, DrawParam dp) { DrawParamCurve dpCurve = dp as DrawParamCurve; if (dpCurve != null) { if (!this.IsDegen) { VecD endToDraw = this.Start + i_draw.DrawWorldInfinity * (this as LCurve).DirTang; i_draw.DrawSeg(this.cp[0].X, this.cp[0].Y, endToDraw.X, endToDraw.Y, dpCurve.StrColor, dpCurve.ScrWidth); } } if (dpCurve.ToDrawEndPoints) { this.Cp(0).Draw(i_draw, dpCurve.DPEndPoints); this.Cp(1).Draw(i_draw, dpCurve.DPEndPoints); } }
/* * METHODS: I_DRAWABLE */ public void Draw(I_Draw i_draw, DrawParam dp) { DrawParamCurve dpCurve = dp as DrawParamCurve; if (dpCurve == null) { return; } i_draw.DrawSeg(this.cp[0].X, this.cp[0].Y, this.cp[1].X, this.cp[1].Y, dpCurve.StrColor, dpCurve.ScrWidth); if (dpCurve.ToDrawEndPoints) { DrawParamVec dpEndPoints = dpCurve.DPEndPoints; if (dpEndPoints != null) { VecD vec = this.cp[0]; vec.Draw(i_draw, dpEndPoints); vec = this.cp[1]; vec.Draw(i_draw, dpEndPoints); } } }
/* * METHODS: I_DRAWABLE */ public void Draw(I_Draw i_draw, DrawParam dp) { DrawParamCurve dpCurve= dp as DrawParamCurve; if (dpCurve!=null) { if (!this.IsDegen) { VecD endToDraw=this.Start+i_draw.DrawWorldInfinity*(this as LCurve).DirTang; i_draw.DrawSeg(this.cp[0].X, this.cp[0].Y, endToDraw.X, endToDraw.Y, dpCurve.StrColor,dpCurve.ScrWidth); } } if (dpCurve.ToDrawEndPoints) { this.Cp(0).Draw(i_draw,dpCurve.DPEndPoints); this.Cp(1).Draw(i_draw,dpCurve.DPEndPoints); } }
/* * METHODS: I_DRAWABLE */ public void Draw(I_Draw i_draw, DrawParam dp) { if (this.IsEmpty) return; if (dp!=null) { i_draw.DrawSeg(this.vecMin.X,this.vecMin.Y,this.vecMax.X,this.vecMin.Y,dp.StrColor,dp.ScrWidth); i_draw.DrawSeg(this.vecMax.X,this.vecMin.Y,this.vecMax.X,this.vecMax.Y,dp.StrColor,dp.ScrWidth); i_draw.DrawSeg(this.vecMax.X,this.vecMax.Y,this.vecMin.X,this.vecMax.Y,dp.StrColor,dp.ScrWidth); i_draw.DrawSeg(this.vecMin.X,this.vecMax.Y,this.vecMin.X,this.vecMin.Y,dp.StrColor,dp.ScrWidth); } }
/* * METHODS: I_DRAWABLE */ public void Draw(I_Draw i_draw, DrawParam dp) { DrawParamCurve dpCurve=dp as DrawParamCurve; if (dpCurve==null) return; i_draw.DrawSeg(this.cp[0].X,this.cp[0].Y,this.cp[1].X,this.cp[1].Y, dpCurve.StrColor, dpCurve.ScrWidth); if (dpCurve.ToDrawEndPoints) { DrawParamVec dpEndPoints=dpCurve.DPEndPoints; if (dpEndPoints!=null) { VecD vec=this.cp[0]; vec.Draw(i_draw, dpEndPoints); vec=this.cp[1]; vec.Draw(i_draw, dpEndPoints); } } }