Exemple #1
0
 public void Undo()
 {
     view3DWidget.MeshGroups.Insert(deletedIndex, meshGroupThatWasDeleted);
     view3DWidget.MeshGroupTransforms.Insert(deletedIndex, deletedTransform);
     view3DWidget.MeshGroupExtraData.Insert(deletedIndex, deletedPlatingData);
     view3DWidget.Invalidate();
     view3DWidget.SelectedMeshGroupIndex = view3DWidget.MeshGroups.Count - 1;
 }
Exemple #2
0
 public void Do()
 {
     view3DWidget.MeshGroups.Insert(newItemIndex, meshGroupThatWasDeleted);
     view3DWidget.MeshGroupTransforms.Insert(newItemIndex, newItemTransform);
     view3DWidget.MeshGroupExtraData.Insert(newItemIndex, newItemPlatingData);
     view3DWidget.Invalidate();
     view3DWidget.SelectedMeshGroupIndex = view3DWidget.MeshGroups.Count - 1;
 }
Exemple #3
0
 private void RemoveProgressBar()
 {
     progressBar.Close();
     if (view3DWidget != null)
     {
         view3DWidget.AfterDraw -= View3DWidget_AfterDraw;
     }
     view3DWidget?.Invalidate();
 }
        public void ProgressReporter(double progress0To1, string processingState)
        {
            progressBar.RatioComplete = progress0To1;
            view3DWidget?.Object3DControlLayer?.Invalidate();

            this.State = processingState;

            if (progress0To1 > 1.1)
            {
                view3DWidget?.Invalidate();
                progressBar.Close();
                if (view3DWidget != null)
                {
                    view3DWidget.AfterDraw -= View3DWidget_AfterDraw;
                }
            }
        }