/// <summary> /// For hard-coded (old-style) tests of the system. /// </summary> public HardCodedParserMain(List <Point> points, List <GeometryTutorLib.ConcreteAST.Collinear> collinear, List <GeometryTutorLib.ConcreteAST.Segment> segments, List <GeometryTutorLib.ConcreteAST.Circle> circles, bool problemIsOn) : base() { // // Calculate all of the implied components of the figure. // implied = new ImpliedComponentCalculator(points, collinear, segments, circles); implied.ConstructAllImplied(); }
/// <summary> /// For hard-coded (old-style) tests of the system. /// </summary> public HardCodedParserMain(List<Point> points, List<GeometryTutorLib.ConcreteAST.Collinear> collinear, List<GeometryTutorLib.ConcreteAST.Segment> segments, List<GeometryTutorLib.ConcreteAST.Circle> circles, bool problemIsOn) : base() { // // Calculate all of the implied components of the figure. // implied = new ImpliedComponentCalculator(points, collinear, segments, circles); implied.ConstructAllImplied(); }
public AreaBasedCalculator(ImpliedComponentCalculator impliedCalc, List <Strengthened> strengNodes) { allFigures = new List <Figure>(); figurePoints = impliedCalc.allFigurePoints; semicircleSectors = impliedCalc.semicircleSectors; majorSectors = impliedCalc.majorSectors; minorSectors = impliedCalc.minorSectors; circles = impliedCalc.circles; polygons = impliedCalc.polygons; atomicRegions = impliedCalc.atomicRegions; // Acquire ONLY the strengthened polygons. strengthenedPolys = FilterStrengthenedPolygons(strengNodes); }
public AreaBasedCalculator(ImpliedComponentCalculator impliedCalc, List<Strengthened> strengNodes) { allFigures = new List<Figure>(); figurePoints = impliedCalc.allFigurePoints; semicircleSectors = impliedCalc.semicircleSectors; majorSectors = impliedCalc.majorSectors; minorSectors = impliedCalc.minorSectors; circles = impliedCalc.circles; polygons = impliedCalc.polygons; atomicRegions = impliedCalc.atomicRegions; // Acquire ONLY the strengthened polygons. strengthenedPolys = FilterStrengthenedPolygons(strengNodes); }
public ShapeContainmentCalculator(ImpliedComponentCalculator imp) { implied = imp; }
public ShapeIntersectionCalculator(ImpliedComponentCalculator imp) { implied = imp; }