예제 #1
0
        public void Editing(object sender, ContextMenuClickedEventArgs <CustomVectorField> e)
        {
            CustomVectorField vf = e.ContextObject as CustomVectorField;

            CreateVF.Arguments a = new CreateVF.Arguments();

            using (ITransaction txn = DataManager.NewTransaction())
            {
                txn.Lock(vf);
                a.AzField     = vf.Azimutfieldic;
                a.HeiField    = vf.Heigtfieldic;
                a.Step        = (int)vf.gridStep;
                a.VectorField = vf;
                CreateVFUI wnd = new CreateVFUI(wrapper.Workstep as CreateVF, a, null as WorkflowContext);
                Form       das = new Form();
                das.Icon   = Icon.FromHandle(PetrelImages.Modules.GetHicon());
                das.Text   = "CreateVF";
                das.Width  = 550;
                das.Height = 256;
                wnd.Parent = das;
                wnd.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
                das.Show();
                txn.Commit();
            }
        }
예제 #2
0
        public void Editing(object sender, ContextMenuClickedEventArgs<CustomVectorField> e)
        {
            CustomVectorField vf = e.ContextObject as CustomVectorField;
            CreateVF.Arguments a = new CreateVF.Arguments();

            using (ITransaction txn = DataManager.NewTransaction())
            {
                txn.Lock(vf);
                a.AzField = vf.Azimutfieldic;
                a.HeiField = vf.Heigtfieldic;
                a.Step = (int)vf.gridStep;
                a.VectorField = vf;
                CreateVFUI wnd = new CreateVFUI(wrapper.Workstep as CreateVF, a, null as WorkflowContext);
                Form das = new Form();
                das.Icon = Icon.FromHandle(PetrelImages.Modules.GetHicon());
                das.Text = "CreateVF";
                das.Width = 550;
                das.Height = 256;
                wnd.Parent = das;
                wnd.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                | System.Windows.Forms.AnchorStyles.Right)));
                das.Show();
                txn.Commit();
            }
        }
예제 #3
0
        private void callback(object sender, ContextMenuClickedEventArgs <SeismicCube> clickedCube)
        {
            try
            {
                SeismicCube getcube = ((SeismicCube)clickedCube.ContextObject);
                Index3      start   = new Index3(0, 0, 0);
                Index3      end     = new Index3(getcube.NumSamplesIJK.I - 1, getcube.NumSamplesIJK.J - 1, getcube.NumSamplesIJK.K - 1);
                ISubCube    from    = getcube.GetSubCube(start, end);
                float[, ,] vals = from.ToArray();

                new Plot3D.Plot3DMainForm(vals).Show();
            }
            catch { }
        }
예제 #4
0
        private void callback(object sender, ContextMenuClickedEventArgs<SeismicCube> clickedCube)
        {
            try
            {
                SeismicCube getcube = ((SeismicCube)clickedCube.ContextObject);
                Index3 start = new Index3(0, 0, 0);
                Index3 end = new Index3(getcube.NumSamplesIJK.I - 1, getcube.NumSamplesIJK.J - 1, getcube.NumSamplesIJK.K - 1);
                ISubCube from = getcube.GetSubCube(start, end);
                float[, ,] vals = from.ToArray();

                new Plot3D.Plot3DMainForm(vals).Show();
            }
            catch { }
        }