Esempio n. 1
0
      /// <summary>
      /// Tests if the XrefScene has all the given flags set.
      /// </summary>
      public Boolean HasFlags(XRefSceneFlags flags)
      {
         if (!this.IsValid)
            return false;

         return ((XRefSceneFlags)this.sceneRoot.GetXRefFlags(this.Index) & flags) == flags;
      }
      public SetXRefSceneFlagsCommand(IEnumerable<IMaxNode> nodes, XRefSceneFlags flags, Boolean value)
      {
         Throw.IfNull(nodes, "nodes");

         this.xrefScenes = nodes.OfType<XRefSceneRecord>()
                                .ToList();
         this.flags = flags;
         this.value = value;
      }
Esempio n. 3
0
 /// <summary>
 /// Sets the given flags on the XrefScene.
 /// </summary>
 public void SetFlags(XRefSceneFlags flags)
 {
    int index = this.Index;
    if (index >= 0)
    {
       this.sceneRoot.SetXRefFlags(index, (uint)flags, true);
       this.sceneRoot.FlagXrefChanged(index);
       this.sceneRoot.ReloadXRef(index);
       MaxInterfaces.Global.BroadcastNotification(XRefNotificationCodes.XRefSceneFlagsChanged, this.BaseObject);
    }
 }