Exemplo n.º 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();
 }
Exemplo n.º 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");
            }
        }
Exemplo n.º 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();
        }
Exemplo n.º 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");
            }
        }