예제 #1
0
        public void Set(PaperPageSize pp)
        {
            Width  = pp.Width;
            Height = pp.Height;

            Landscape = pp.mLandscape;

            Kind = pp.mPaperKind;
        }
예제 #2
0
        public void ClearAll()
        {
            PageSize = new PaperPageSize();

            mDB.ClearAll();
            HistoryMan.Clear();

            UpdateLayerList();
            UpdateObjectTree(true);
        }
예제 #3
0
        public PaperPageSize GetPaperPageSize()
        {
            PaperPageSize pp = new PaperPageSize();

            pp.Width  = Width;
            pp.Height = Height;

            pp.mLandscape = Landscape;

            pp.mPaperKind = Kind;

            return(pp);
        }
예제 #4
0
        public static CadData CreateCadData_v1002(MpCadData_v1002 mpcd)
        {
            CadData cd = new CadData();

            MpViewInfo_v1002 viewInfo = mpcd.ViewInfo;

            double worldScale = 0;

            PaperPageSize pps = null;

            if (viewInfo != null)
            {
                worldScale = viewInfo.WorldScale;

                if (viewInfo.PaperSettings != null)
                {
                    pps = viewInfo.PaperSettings.GetPaperPageSize();
                }
            }


            if (worldScale == 0)
            {
                worldScale = 1.0;
            }

            cd.WorldScale = worldScale;


            if (pps == null)
            {
                pps = new PaperPageSize();
            }

            cd.PageSize = pps;

            cd.DB = mpcd.GetDB();

            return(cd);
        }
예제 #5
0
 public CadData(CadObjectDB db, double worldScale, PaperPageSize pageSize)
 {
     DB         = db;
     WorldScale = worldScale;
     PageSize   = pageSize;
 }