public void LoadFrontViewLoadParameters() { StartPoint = new Point("Origin", 0, 0); BottomRightPoint = new Point("Bottom Right", Length, 0); BottomCenterPoint = new Point("Bottom Center", Length / 2, 0); TopRightPoint = new Point("Top Right", Length, Height); TopLeftPoint = new Point("Top Left", 0, Height); //Layout Columns //Front right columns FrontRightStubColumn = new StubColumn("Front Right", StartPoint, StubColumnHeight, 6, BraceCDim, KneeBraceClipEnum.Right, ViewOrientationEnum.Front); FrontRightTopColumn = new TopColumn("Front Right", FrontRightStubColumn.TopLeftPoint, TopColumnHeight, 6); //Center Columns if (NumberOfFans > 1) { for (int i = 1; i <= NumberOfCenterColumns; i++) { Point columnCenterPoint = new Point($"Column Center {i}", (StartPoint.X + FrontRightStubColumn.Width / 2) + CTC * i, 0); ColumnCenterPoints.Add(columnCenterPoint); Point columStartPoint = new Point("Column Start Point", columnCenterPoint.X - FrontRightStubColumn.Width / 2, 0); StubColumn centerStubColumn = new StubColumn($"Center Column {i}", columStartPoint, StubColumnHeight, 6, BraceCDim, KneeBraceClipEnum.Both, ViewOrientationEnum.Front); CenterStubColumns.Add(centerStubColumn); TopColumn centerTopColumn = new TopColumn($"Center Column {i}", centerStubColumn.TopLeftPoint, TopColumnHeight, 6); CenterTopColumn.Add(centerTopColumn); } } //Back right Colums BackRightStubColumn = new StubColumn("Back Right", new Point("Bottom Right", BottomRightPoint.X - FrontRightStubColumn.Width, 0), StubColumnHeight, 6, BraceCDim, KneeBraceClipEnum.Left, ViewOrientationEnum.Front); BackRightTopColumn = new TopColumn("Back Right", BackRightStubColumn.TopLeftPoint, TopColumnHeight, 6); //Layout plenum double plenumLength = CTC - ColumnWidth; double plenumStartY = Height - PlenumDepth; Point point = new Point("Side panel point", FrontRightTopColumn.TopRightPoint.X, plenumStartY); SidePanels.Add(new SidePanel("Side Panel", point, plenumLength, PlenumDepth)); foreach (var col in CenterTopColumn) { Point centerColPoint = new Point("Side panel point", col.TopRightPoint.X, plenumStartY); SidePanels.Add(new SidePanel("Side Panel", centerColPoint, plenumLength, PlenumDepth)); } foreach (var panel in SidePanels) { FanRings.Add(new FanRingClass("Fan Ring", panel.BottomCenterPoint, FanDiameter)); } }
private void DrawFrontView() { //Load Front View Parameters LoadFrontViewLoadParameters(); FrontRightStubColumn.DrawFrontView(); FrontRightTopColumn.DrawFrontView(); CenterStubColumns.ForEach(x => x.DrawFrontView()); CenterTopColumn.ForEach(x => x.DrawFrontView()); BackRightStubColumn.DrawFrontView(); BackRightTopColumn.DrawFrontView(); //Draw Plenum SidePanels.ForEach(x => x.DrawFrontView()); //Draw Fan Ring FanRings.ForEach(x => x.DrawFrontView()); }