예제 #1
0
        private void updateWarpStyle()
        {
            if (registrationControl == null)
            {
                lockTransformButton.Enabled   = false;
                unlockTransformButton.Enabled = false;
                forceAffineCheckBox.Enabled   = false;
                lockStatusText.Text           = "";
                return;
            }

            forceAffineCheckBox.Checked = registrationControl.model.warpStyle !=
                                          TransformationStyleFactory.getDefaultTransformationStyle();
            if (registrationControl.model.isLocked)
            {
                lockTransformButton.Enabled   = false;
                lockStatusText.Text           = "Explore the map. Select Render tab when done, or Unlock to improve.";
                unlockTransformButton.Enabled = true;
                forceAffineCheckBox.Enabled   = false;
                return;
            }

            bool enabled = registrationControl.readyToLock.ReadyToLock();

            lockTransformButton.Enabled   = enabled;
            unlockTransformButton.Enabled = false;
            lockStatusText.Lines          = registrationControl.model.GetLockStatusText();
            forceAffineCheckBox.Enabled   = true;
        }
예제 #2
0
 private void checkBox1_CheckedChanged(object sender, EventArgs e)
 {
     if (registrationControl != null)
     {
         registrationControl.model.warpStyle = ((CheckBox)sender).Checked
             ? TransformationStyleFactory.getTransformationStyle(1)
             : TransformationStyleFactory.getDefaultTransformationStyle();
         updateWarpStyle();
     }
 }