示例#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();
 }
示例#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");
            }
        }
示例#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();
        }
示例#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");
            }
        }