예제 #1
0
 public static void IsolinesOn()
 {
     ContextMenuIsoline.Attach();
     if (_overruleIsolineDraw == null)
     {
         _overruleIsolineDraw = new IsolineDrawableOverrule();
         Overrule.AddOverrule(RXObject.GetClass(typeof(Curve)), _overruleIsolineDraw, false);
     }
     if (_overruleIsolineTrans == null)
     {
         _overruleIsolineTrans = new IsolineTransformOverrule();
         Overrule.AddOverrule(RXObject.GetClass(typeof(Curve)), _overruleIsolineTrans, false);
     }
 }
예제 #2
0
 public static void IsolinesOff()
 {
     ContextMenuIsoline.Detach();
     if (_overruleIsolineDraw != null)
     {
         Overrule.RemoveOverrule(RXObject.GetClass(typeof(Curve)), _overruleIsolineDraw);
         _overruleIsolineDraw = null;
     }
     if (_overruleIsolineTrans != null)
     {
         Overrule.RemoveOverrule(RXObject.GetClass(typeof(Curve)), _overruleIsolineTrans);
         _overruleIsolineTrans = null;
     }
 }