示例#1
0
 /// <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();
 }
示例#2
0
 /// <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();
 }
示例#3
0
        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);
        }
示例#4
0
        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 ShapeContainmentCalculator(ImpliedComponentCalculator imp)
 {
     implied = imp;
 }
示例#7
0
 public ShapeIntersectionCalculator(ImpliedComponentCalculator imp)
 {
     implied = imp;
 }
 public ShapeIntersectionCalculator(ImpliedComponentCalculator imp)
 {
     implied = imp;
 }