public CPipeBoundaryIndicator(CPipeBoundaryModel pipeBoundaryModel, CTwoPointsIndicatorsImpl impl) : base(impl) { m_PipeBoundaryModel = pipeBoundaryModel; this.Impl.Actor.GetProperty().SetLineWidth(ApplicationOptions.Instance().PipeBoundaryOption.LineWidth); this.Impl.Actor.GetProperty().SetColor(ApplicationOptions.Instance().PipeBoundaryOption.LineColor); }
private void DrawPipeBoundary(CPipeBoundaryModel boundaryModel) { if (boundaryModel == null) return; boundaryModel.DrawPipeBoundary(); CPipeBoundaryIndicator pipeBoundaryIndicator = boundaryModel.PipeBoundaryIndicator; if (null != pipeBoundaryIndicator) { IApp.theApp.RendererManager.MainRenderer.AddActor(pipeBoundaryIndicator.Impl.Actor); if (boundaryModel.ShowInMultipleView) { IApp.theApp.RendererManager.TopViewRenderer.AddActor(pipeBoundaryIndicator.Impl.Actor); IApp.theApp.RendererManager.RightViewRenderer.AddActor(pipeBoundaryIndicator.Impl.Actor); IApp.theApp.RendererManager.FrontViewRenderer.AddActor(pipeBoundaryIndicator.Impl.Actor); } } }