Ejemplo n.º 1
0
		private void DrawControlNodes() {
			// Draw Control lines
			if (IsControlLinesDrawing) {
				for (int index = 0; index < this.controlPoints.Count - 1; index++) {
					GraphicsDrawer.Line controlLine = new GraphicsDrawer.Line(
						this.controlPoints[index],
						this.controlPoints[index + 1],
						this.isEndLine && index == this.indexPointA ? ControlLineSelectedColor : ControlLineColor);
					this.gd.Draw<GraphicsDrawer.Line>(controlLine);
				}
			}

			// Draw Control points
			if (IsControlPointsDrawing) {
				for (int index = 0; index < this.controlPoints.Count; index++) {
					// Draw Control point selection outline (if exists)
					if (this.isEndPoint && index == this.endPointIndex) {
						EllipseOutline selectionOutline = 
							new EllipseOutline(this.controlPoints[index], 5, 5, ControlPointSelectedColor);
						this.gd.Draw(selectionOutline);
					}
					Ellipse controlPoint = 
						new Ellipse(this.controlPoints[index], 2, 2, ControlPointColor);
					this.gd.Draw<Ellipse>(controlPoint);
				}
			}
		}
Ejemplo n.º 2
0
		private void DrawCurveNodes() {
			if (IsCurveLinesDrawing) {
				for (int index = 0; index < this.curvePoints.Length - 1; index++) {
					GraphicsDrawer.Line curveLine = new GraphicsDrawer.Line(
						this.curvePoints[index], this.curvePoints[index + 1], CurveLineColor);
					this.gd.Draw<GraphicsDrawer.Line>(curveLine);
				}
			}

			if (IsCurvePointsDrawing) {
				foreach (Vector3 point in this.curvePoints) {
					Ellipse curvePoint = 
						new Ellipse(point, 2, 2, CurvePointColor);
					this.gd.Draw<Ellipse>(curvePoint);
				}
			}
		}