scanning code now returns a Homograph, deleted unused class

This commit is contained in:
Paul Schaller 2023-11-27 14:10:11 +01:00
parent 1befac154e
commit 5852418b0b
3 changed files with 7 additions and 29 deletions

View File

@ -23,7 +23,7 @@ public class FourSidedScanner extends SingleColorScanner {
}
@Override
public Point3D[] scan() {
public Homograph scan() {
// TODO Auto-generated method stub
frontSideScanner.scan();
frontSideScanner.normalizePoints();
@ -35,11 +35,12 @@ public class FourSidedScanner extends SingleColorScanner {
behindSideScanner.scan();
behindSideScanner.normalizePoints();
Point2D[] frontPoints = behindSideScanner.getPoints();
Point2D[] behindSidePoints = behindSideScanner.getPoints();
leftSideScanner.scan();
leftSideScanner.normalizePoints();
Point2D[] rightSidePoints = leftSideScanner.getPoints();
return null; //TODO
Point2D[] leftSidePoints = leftSideScanner.getPoints();
return new Homograph4(rightSidePoints, rightSidePoints, behindSidePoints, leftSidePoints);
}
}

View File

@ -1,24 +0,0 @@
package com.cringe_studios.christmastreescanning;
public enum ScannerData{
IMAGE_FRONT_RED,
IMAGE_FRONT_GREEN,
IMAGE_FRONT_BLUE,
IMAGE_RIGHT_RED,
IMAGE_RIGHT_GREEN,
IMAGE_RIGHT_BLUE,
IMAGE_BEHIND_RED,
IMAGE_BEHIND_GREEN,
IMAGE_BEHIND_BLUE,
IMAGE_LEFT_RED,
IMAGE_LEFT_GREEN,
IMAGE_LEFT_BLUE,
IMAGE_FRONT,
IMAGE_RIGHT,
IMAGE_BEHIND,
IMAGE_LEFT
}

View File

@ -28,6 +28,7 @@ public class TwoSidedScanner extends SingleColorScanner {
rightSideScanner.scan();
rightSideScanner.normalizePoints();
Point2D[] rightSidePoints = rightSideScanner.getPoints();
return null;//TODO
return new Homograph2(frontPoints, rightSidePoints);
}
}