Пример #1
0
        public FormChainage(IHeadsApplication app)
        {
            InitializeComponent();
            this.hdapp = app;

            PopulateData();
        }
Пример #2
0
        public System.Windows.Forms.Form CreateOpenElementMethodDialog(IHeadsApplication app, CHIPInfo info)
        {
            FormElementMethod formelementmethod = null;

            formelementmethod = new FormElementMethod(app, info);
            return(formelementmethod);
        }
Пример #3
0
        public System.Windows.Forms.Form CreateBoundaryDialog(IHeadsApplication app, bool bMakeString)
        {
            MakeString.FormMakeString formmakestring = null;
            //Only one polyline object is selected
            IHdEntity[]   selections = app.ActiveDocument.GetUserSelection(Resources.ST_PROMPT_SELECT_POLYLINE);
            IHdPolyline3D polyline   = null;

            if (selections.Length == 1)
            {
                IHdEntity entity = selections[0];
                //DictionaryEntry de = selections[0];
                if (entity.EntityName == "POLYLINE3D")
                {
                    polyline = (IHdPolyline3D)entity;
                }
            }
            if (polyline != null)
            {
                MakeString.FormMakeString.OpenMode mode = (bMakeString == true) ? MakeString.FormMakeString.OpenMode.MakeString : HeadsFunctions1.MakeString.FormMakeString.OpenMode.Boundary;
                formmakestring = new MakeString.FormMakeString(app, polyline, mode);
            }
            else
            {
                MessageBox.Show(Resources.ST_PROMPT_SELECT_POLYLINE, HeadsUtils.Constants.ProductName);
            }
            return(formmakestring);
        }
Пример #4
0
        public FormHipMethod(IHeadsApplication app, CHIPInfo hipinfo)
        {
            InitializeComponent();

            this.m_app = app;
            this.InitGrid();
            List <CHHipData> listHhip = new List <CHHipData>();

            GetDetailsFromExistingData(hipinfo, ref listHhip);
            foreach (CHHipData hdata in listHhip)
            {
                this.AddRow(hdata);
            }

            this.txtModelName_.ReadOnly   = true;
            this.txtStringlabel_.ReadOnly = true;

            //draw the polyline
            ApplyHIP();
            checkBoxDefaultRead_.Checked = false;
            this.UpdateRadiousValue();
            this.UpdateDeltaValue();

            this.m_app.ActiveDocument.RefreshDocument();
            this.m_app.ZoomExtents();
        }
Пример #5
0
        public FormModellingOffset(IHeadsApplication hdapp)
        {
            InitializeComponent();
            this.app = hdapp;

            this.PopulateModels(ref hashReferenceModel, ref hashOffsetModel);
        }
Пример #6
0
 public FormModellingValign(IHeadsApplication app)
 {
     this.app = app;
     InitializeComponent();
     this.btnOK_.Enabled = false;
     PopulateTree();
 }
Пример #7
0
        public System.Windows.Forms.Form CreateOffsetModelDialog(IHeadsApplication app)
        {
            Offset.FormOffset formoffset = null;
            //Only one polyline object is selected
            IHdEntity[]   selections = app.ActiveDocument.GetUserSelection(Resources.ST_PROMPT_SELECT_POLYLINE);
            IHdPolyline3D polyline   = null;

            if (selections.Length == 1)
            {
                IHdEntity entity = selections[0];
                //DictionaryEntry de = selections[0];
                if (entity.EntityName == "POLYLINE3D")
                {
                    polyline = (IHdPolyline3D)entity;
                }
            }
            if (polyline != null)
            {
                formoffset = new Offset.FormOffset(app, polyline);
            }
            else
            {
                MessageBox.Show(Resources.ST_PROMPT_SELECT_POLYLINE, HeadsUtils.Constants.ProductName);
            }
            return(formoffset);
        }
Пример #8
0
        public FormValignment(IHeadsApplication hdapp, CValignInfo info)
        {
            InitializeComponent();

            this.app = hdapp;

            this.InitVipParamGridData();

            this.InfoData = info;

            this.tbModelName_.ReadOnly   = true;
            this.tbStringlabel_.ReadOnly = true;

            List <VVIP> listVipData = new List <VVIP>();

            GetDetailsFromExistingData(info, ref listVipData);
            FillDetails(listVipData);

            this.ApplyValign();

            checkBoxDVCL.Checked = false;
            UpadteGradeValue();

            this.app.ActiveDocument.RefreshDocument();
            this.app.ZoomExtents();
        }
Пример #9
0
        public System.Windows.Forms.Form CreateNewHalignHIPMethodDialog(IHeadsApplication app)
        {
            FormHipMethod formhipmethod = null;

            IHdEntity[]   selections = app.ActiveDocument.GetUserSelection(Resources.ST_PROMPT_SELECT_POLYLINE);
            IHdPolyline3D polyline   = null;

            if (selections.Length == 1)
            {
                IHdEntity entity = selections[0];
                //DictionaryEntry de = selections[0];
                if (entity.EntityName == "POLYLINE3D")
                {
                    polyline = (IHdPolyline3D)entity;
                }
            }
            if (polyline != null)
            {
                formhipmethod = new FormHipMethod(app, polyline);
            }
            else
            {
                MessageBox.Show(Resources.ST_PROMPT_SELECT_POLYLINE, HeadsUtils.Constants.ProductName);
            }
            return(formhipmethod);
        }
Пример #10
0
        public FormModellingValignViewer(CValignInfo valInfo, double chainageVal, IHeadsApplication app)
        {
            this.app         = app;
            this.chainageVal = chainageVal;
            this.valInfo     = valInfo;

            InitializeComponent();
        }
Пример #11
0
        public FormElementMethod(IHeadsApplication app)
        {
            InitializeComponent();

            PopulateElementTypes();

            this.m_app = app;
        }
Пример #12
0
        public FormOpenValignment(IHeadsApplication hdapp)
        {
            InitializeComponent();

            this.app = hdapp;

            this.PopulateSelectionTree();
        }
Пример #13
0
        public FormLoadDeflection(IHeadsApplication headsapp)
        {
            InitializeComponent();
            App = headsapp;
            ShowPlayerCtrls(false);

            System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = false;
        }
Пример #14
0
        public IWorkingDirSelector CreateWkDirDialog(IHeadsApplication app)
        {
            IWorkingDirSelector workingdirselector = new HeadsFunctions1.WorkingFolder.FormWorkingFolderSelector();

            workingdirselector.WorkingFolderPath = app.AppDataPath;

            return(workingdirselector);
        }
Пример #15
0
        public FormHalignModelViewer(IHeadsApplication headsapp)
        {
            InitializeComponent();

            this.app              = headsapp;
            util                  = new CHalignModelUtil();
            util.OnShowModelInfo += new CHalignModelUtil.ShowDataEvent(util_OnShowModelInfo);
        }
Пример #16
0
        public FormModellingHalign(IHeadsApplication headsapp)
        {
            InitializeComponent();

            this.app = headsapp;

            this.PopulateSelectionTree();
            this.treeViewDesigns_.SelectedNode = this.treeViewDesigns_.Nodes[0];
        }
Пример #17
0
        public FormOpenHipMethod(IHeadsApplication hdapp, OpenMode mode)
        {
            InitializeComponent();

            this.app      = hdapp;
            this.openmode = mode;

            this.PopulateSelectionTree();
        }
Пример #18
0
        public FormDetails(IHeadsApplication app, bool bIsValign)
        {
            InitializeComponent();

            this.hdapp    = app;
            this.IsValign = bIsValign;

            this.PopulateData();
        }
Пример #19
0
        public FormModellingOffsetViewer(IHeadsApplication hdApp, string strRefMod, string strRefStr, string strOffMod, string strOffStr)
        {
            InitializeComponent();

            this.App    = hdApp;
            this.RefMod = strRefMod;
            this.RefStr = strRefStr;
            this.OffMod = strOffMod;
            this.OffStr = strOffStr;
        }
Пример #20
0
        public System.Windows.Forms.Form CreateCoordinateDialog(IHeadsApplication app)
        {
            System.Windows.Forms.Form frmCoordinate = null;

            if (app.ActiveDocument.Entities.Length > 0)
            {
                frmCoordinate = new HeadsFunctions1.Coordinates.FormCoordinates(app);
            }
            return(frmCoordinate);
        }
Пример #21
0
        public FormElementMethod(IHeadsApplication app, CHIPInfo info)
        {
            InitializeComponent();

            this.m_app = app;
            this.PopulateElementTypes();

            this.FillFromExistingData(info);

            this.txtModelName_.ReadOnly   = true;
            this.txtStringlabel_.ReadOnly = true;
        }
Пример #22
0
        public FormOffset(IHeadsApplication hdapp, IHdPolyline3D pline)
        {
            InitializeComponent();

            this.app = hdapp;

            this.comboOffsetType_.Items.Add(STR_402);
            this.comboOffsetType_.Items.Add(STR_403);
            this.comboOffsetType_.Items.Add(STR_404);

            this.InitDataFromPolyline(pline);
            this.comboOffsetType_.SelectedItem = STR_402;
        }
Пример #23
0
        public FormValignment(IHeadsApplication hdapp, IHdPolyline3D pline)
        {
            InitializeComponent();

            this.app = hdapp;

            this.InitVipParamGridData();

            List <VVIP> listVipData = new List <VVIP>();

            this.GetDataFromPolyLine(pline, ref listVipData);
            this.FillDetails(listVipData);

            this.MainPolyLineID = pline.ObjectID;

            this.checkBoxDVCL.Checked = true;
        }
Пример #24
0
        public System.Windows.Forms.Form CreateOpenValignmentDialog(IHeadsApplication app, CValignInfo info)
        {
            FormValignment formvalignmethod = null;

            if (info != null || info.DataList.Count > 0)
            {
                formvalignmethod = new FormValignment(app, info);
            }
            else
            {
                MessageBox.Show("Error in Valign.fil file"
                                , Resources.ST_ERROR_MSGBOX_CAPTION
                                , System.Windows.Forms.MessageBoxButtons.OK
                                , System.Windows.Forms.MessageBoxIcon.Error);
            }
            return(formvalignmethod);
        }
Пример #25
0
        public FormHipMethod(IHeadsApplication app, IHdPolyline3D polyline)
        {
            InitializeComponent();

            this.m_app = app;
            this.InitGrid();
            List <CHHipData> listHhip = new List <CHHipData>();

            this.m_iMainPolyLine = this.GetPolylineDetails(polyline, ref listHhip);

            foreach (CHHipData hdata in listHhip)
            {
                this.AddRow(hdata);
            }
            this.UpdateDeltaValue();

            checkBoxDefaultRead_.Checked = true;
        }
Пример #26
0
        public IHalignFilSelector CreateElementMethodSelectorDialog(IHeadsApplication app)
        {
            HeadsFunctions1.Halignment.FormOpenHipMethod formopenhipmethod = null;
            string strHalignFilePath = Path.Combine(app.AppDataPath, "HALIGN.FIL");

            if (File.Exists(strHalignFilePath))
            {
                formopenhipmethod = new FormOpenHipMethod(app, FormOpenHipMethod.OpenMode.ElementMethod);
            }
            else
            {
                MessageBox.Show(Resources.ST_FILE_NOTFOUND + "\n" + strHalignFilePath
                                , Resources.ST_ERROR_MSGBOX_CAPTION
                                , System.Windows.Forms.MessageBoxButtons.OK
                                , System.Windows.Forms.MessageBoxIcon.Error);
            }
            return(formopenhipmethod);
        }
Пример #27
0
        public System.Windows.Forms.Form CreateOpenHIPMethodDialog(IHeadsApplication app, CHIPInfo info)
        {
            FormHipMethod    formhipmethod = null;
            List <CHHipData> listHhip      = CHalignHipUtil.GenerateHIPData(info);

            if (listHhip != null || listHhip.Count > 0)
            {
                formhipmethod = new FormHipMethod(app, info);
            }
            else
            {
                MessageBox.Show("Error in Halign.fil file"
                                , Resources.ST_ERROR_MSGBOX_CAPTION
                                , System.Windows.Forms.MessageBoxButtons.OK
                                , System.Windows.Forms.MessageBoxIcon.Error);
            }
            return(formhipmethod);
        }
Пример #28
0
        public FormMakeString(IHeadsApplication hdapp, IHdPolyline3D polyline, OpenMode mode)
        {
            InitializeComponent();

            this.app     = hdapp;
            this.ptCords = polyline.Coordinates;

            if (mode == OpenMode.Boundary)
            {
                this.Text = "Boundary";
                this.checkMasterString_.Checked     = false;
                this.checkMasterString_.Visible     = false;
                this.tbChainageInterval_.Visible    = false;
                this.labelChainageInterval_.Visible = false;
                this.tbChainageInterval_.Value      = 10000000;

                this.Height -= (int)((double)this.tbChainageInterval_.Height * 1.5);
            }
        }
Пример #29
0
        public System.Windows.Forms.Form CreateChainageDialog(IHeadsApplication app)
        {
            System.Windows.Forms.Form frmChainage = null;
            string strHalignTmpPath = Path.Combine(app.AppDataPath, "HALIGN.TMP");
            string strHalignFilPath = Path.Combine(app.AppDataPath, "HALIGN.FIL");

            if (File.Exists(strHalignTmpPath) || File.Exists(strHalignFilPath))
            {
                frmChainage = new Chainage.FormChainage(app);
            }
            else
            {
                MessageBox.Show(Properties.Resources.ST_FILE_NOTFOUND
                                , Properties.Resources.ST_ERROR_MSGBOX_CAPTION
                                , MessageBoxButtons.OK
                                , MessageBoxIcon.Information);
            }
            return(frmChainage);
        }
Пример #30
0
        public System.Windows.Forms.Form CreateModellingOffsetDialog(IHeadsApplication app)
        {
            HeadsFunctions1.Offset.Modelling.FormModellingOffset form = null;
            string strFilePath = Path.Combine(app.AppDataPath, "OFFSET.FIL");

            if (File.Exists(strFilePath))
            {
                form = new HeadsFunctions1.Offset.Modelling.FormModellingOffset(app);
            }
            else
            {
                MessageBox.Show(Resources.ST_FILE_NOTFOUND + "\n" + strFilePath
                                , Resources.ST_ERROR_MSGBOX_CAPTION
                                , System.Windows.Forms.MessageBoxButtons.OK
                                , System.Windows.Forms.MessageBoxIcon.Error);
            }

            return(form);
        }