Exemple #1
0
 public override void toolOffCleanup()
 {
     try
     {
         if (bridge != null)
         {
             MModelMessage.ActiveListModified -= bridge.updateManipulators;
             bridge = null;
         }
     }
     catch (System.Exception)
     {
         MGlobal.displayError("Model remove callback failed");
     }
     base.toolOffCleanup();
 }
Exemple #2
0
        public override void toolOnSetup(MEvent evt)
        {
            helpString = "Rotate the object using the rotation handles";

            updateManipulators(this);
            try
            {
                if (bridge == null)
                {
                    bridge = new updateManipulatorBridge(this);
                }
                MModelMessage.ActiveListModified += bridge.updateManipulators;
            }
            catch (System.Exception)
            {
                MGlobal.displayError("Model addCallback failed");
            }
        }
Exemple #3
0
        public override void toolOffCleanup()
        {
            try
            {
                if (bridge != null)
                {
                    MModelMessage.ActiveListModified -= bridge.updateManipulators;
                    bridge = null;
                }
            }
            catch (System.Exception)
            {
                MGlobal.displayError("Model remove callback failed");

            }
            base.toolOffCleanup();
        }
Exemple #4
0
        public override void toolOnSetup(MEvent evt)
        {
            helpString = "Rotate the object using the rotation handles";

            updateManipulators(this);
            try
            {
                if (bridge == null)
                    bridge = new updateManipulatorBridge(this);
                MModelMessage.ActiveListModified += bridge.updateManipulators;
            }
            catch (System.Exception)
            {
                MGlobal.displayError("Model addCallback failed");
            }
        }