Exemplo n.º 1
0
 private void pReadValues(GeoCoreHandler sourceGeoCoreHandler)
 {
     valid      = sourceGeoCoreHandler.valid;
     error_msgs = sourceGeoCoreHandler.error_msgs;
     filename   = sourceGeoCoreHandler.filename;
     geo        = geo switch
     {
         null => new GeoCore(),
         _ => geo
     };
     geo.readValues(sourceGeoCoreHandler.geo);
 }
Exemplo n.º 2
0
        void pInit(ref QuiltContext context)
        {
            quiltContext    = context;
            availableShapes = new List <string>()
            {
                "(None)", "Rectangle/Square", "L-shape", "T-shape", "X-shape", "U-shape", "S-shape", "Text", "Bounding", "Layout"
            };
            availableSubShapePositions = new List <string>()
            {
                "Corner: Top Left", "Corner: Top Right", "Corner: Bottom Left", "Corner: Bottom Right",
                "Middle: Top Side", "Middle: Right Side", "Middle: Bottom Side", "Middle: Left Side",
                "Center"
            };
            colors = new Colors();
            setColors(quiltContext.colors);
            openGLModeList = new List <string>()
            {
                "VBO", "Immediate"
            };

            subshapes = new ObservableCollection <string>()
            {
                "1"
            };
            minHLRefSubShapeList = new ObservableCollection <string>()
            {
                "1"
            };
            minHLRefSubShape2List = new ObservableCollection <string>()
            {
                "1"
            };
            minHLRefSubShape3List = new ObservableCollection <string>()
            {
                "1"
            };
            minVLRefSubShapeList = new ObservableCollection <string>()
            {
                "1"
            };
            minVLRefSubShape2List = new ObservableCollection <string>()
            {
                "1"
            };
            minVLRefSubShape3List = new ObservableCollection <string>()
            {
                "1"
            };
            minHORefSubShapeList = new ObservableCollection <string>()
            {
                "1"
            };
            minHORefSubShape2List = new ObservableCollection <string>()
            {
                "1"
            };
            minHORefSubShape3List = new ObservableCollection <string>()
            {
                "1"
            };
            minVORefSubShapeList = new ObservableCollection <string>()
            {
                "1"
            };
            minVORefSubShape2List = new ObservableCollection <string>()
            {
                "1"
            };
            minVORefSubShape3List = new ObservableCollection <string>()
            {
                "1"
            };
            minHLIncRefSubShapeList = new ObservableCollection <string>()
            {
                "1"
            };
            minHLIncRefSubShape2List = new ObservableCollection <string>()
            {
                "1"
            };
            minHLIncRefSubShape3List = new ObservableCollection <string>()
            {
                "1"
            };
            minVLIncRefSubShapeList = new ObservableCollection <string>()
            {
                "1"
            };
            minVLIncRefSubShape2List = new ObservableCollection <string>()
            {
                "1"
            };
            minVLIncRefSubShape3List = new ObservableCollection <string>()
            {
                "1"
            };
            minHOIncRefSubShapeList = new ObservableCollection <string>()
            {
                "1"
            };
            minHOIncRefSubShape2List = new ObservableCollection <string>()
            {
                "1"
            };
            minHOIncRefSubShape3List = new ObservableCollection <string>()
            {
                "1"
            };
            minVOIncRefSubShapeList = new ObservableCollection <string>()
            {
                "1"
            };
            minVOIncRefSubShape2List = new ObservableCollection <string>()
            {
                "1"
            };
            minVOIncRefSubShape3List = new ObservableCollection <string>()
            {
                "1"
            };
            minHLStepsRefSubShapeList = new ObservableCollection <string>()
            {
                "1"
            };
            minHLStepsRefSubShape2List = new ObservableCollection <string>()
            {
                "1"
            };
            minHLStepsRefSubShape3List = new ObservableCollection <string>()
            {
                "1"
            };
            minVLStepsRefSubShapeList = new ObservableCollection <string>()
            {
                "1"
            };
            minVLStepsRefSubShape2List = new ObservableCollection <string>()
            {
                "1"
            };
            minVLStepsRefSubShape3List = new ObservableCollection <string>()
            {
                "1"
            };
            minHOStepsRefSubShapeList = new ObservableCollection <string>()
            {
                "1"
            };
            minHOStepsRefSubShape2List = new ObservableCollection <string>()
            {
                "1"
            };
            minHOStepsRefSubShape3List = new ObservableCollection <string>()
            {
                "1"
            };
            minVOStepsRefSubShapeList = new ObservableCollection <string>()
            {
                "1"
            };
            minVOStepsRefSubShape2List = new ObservableCollection <string>()
            {
                "1"
            };
            minVOStepsRefSubShape3List = new ObservableCollection <string>()
            {
                "1"
            };
            xPosRefSubShapeList = new ObservableCollection <string>()
            {
                "1"
            };
            yPosRefSubShapeList = new ObservableCollection <string>()
            {
                "1"
            };
            stitcher = new Stitcher(ref quiltContext);

            titleText += " (" + quiltContext.licenceName + ")";
            storage    = new Storage();

            gCH = new GeoCoreHandler();

            structureList_exp = gCH.getGeo().structureList_;

            reset();
        }
Exemplo n.º 3
0
 public void readValues(GeoCoreHandler sourceGeoCoreHandler)
 {
     pReadValues(sourceGeoCoreHandler);
 }