|
@@ -55,9 +55,12 @@ namespace bbiwarg.Graphics
|
|
|
{
|
|
|
OutputImage = new OutputImage(width, height);
|
|
|
|
|
|
+ //-- Border --
|
|
|
int size = Math.Min(width, height);
|
|
|
OutputImage.drawRectangle(0, 0, size - 1, size - 1, Color.White);
|
|
|
|
|
|
+
|
|
|
+ //-- Grid --
|
|
|
int numRows = Constants.PalmGridRows;
|
|
|
int numColumns = Constants.PalmGridColumns;
|
|
|
|
|
@@ -72,6 +75,7 @@ namespace bbiwarg.Graphics
|
|
|
OutputImage.drawLineSegment(new LineSegment2D(new Vector2D(tmp, 0), new Vector2D(tmp, size - 2)), Constants.PalmGridColor);
|
|
|
}
|
|
|
|
|
|
+ //-- Current Touch Event --
|
|
|
if (currentTouchPositions != null)
|
|
|
{
|
|
|
for (int i = 1; i < currentTouchPositions.Count; ++i)
|
|
@@ -80,6 +84,7 @@ namespace bbiwarg.Graphics
|
|
|
}
|
|
|
OutputImage.fillCircle(currentTouchPositions.Last<Vector2D>().IntX, currentTouchPositions.Last<Vector2D>().IntY, 3, Constants.TouchEventVisualizerPointColor);
|
|
|
}
|
|
|
+ //-- Last Touch Event --
|
|
|
if (lastTouchPositions != null)
|
|
|
{
|
|
|
for (int i = 1; i < lastTouchPositions.Count; ++i)
|
|
@@ -88,16 +93,7 @@ namespace bbiwarg.Graphics
|
|
|
}
|
|
|
OutputImage.fillCircle(lastTouchPositions.Last<Vector2D>().IntX, lastTouchPositions.Last<Vector2D>().IntY, 3, Constants.TouchEventVisualizerPointColor);
|
|
|
}
|
|
|
- /*foreach (List<Vector2D> positions in touchPositions)
|
|
|
- {
|
|
|
- for (int i = 1; i < positions.Count; ++i)
|
|
|
- {
|
|
|
- OutputImage.drawLineSegment(new LineSegment2D(positions[i - 1], positions[i]), Constants.TouchEventVisualizerLineColor);
|
|
|
- }
|
|
|
-
|
|
|
- if (touchPositions.Count != 0)
|
|
|
- OutputImage.fillCircle(positions.Last<Vector2D>().IntX, positions.Last<Vector2D>().IntY, 3, Constants.TouchEventVisualizerPointColor);
|
|
|
- }*/
|
|
|
+
|
|
|
}
|
|
|
|
|
|
public void Reset()
|