Esempio n. 1
0
   /// <summary>
   /// Tests if an object is a plugin with the supplied SuperClass.
   /// </summary>
   public static bool IsSuperClass(IObject objectRef, SClass_ID scid)
   {
      if (objectRef == null)
         return false;

      return objectRef.SuperClassID == scid;
   }
Esempio n. 2
0
   /// <summary>
   /// Tests if an object is a plugin with the supplied SuperClass.
   /// </summary>
   public static bool IsSuperClass(IINode node, SClass_ID scid)
   {
      if (node == null)
         return false;

      return IsSuperClass(node.ObjectRef, scid);
   }
Esempio n. 3
0
 /// <summary>
 /// Tests if an object is a plugin with the supplied SuperClass.
 /// </summary>
 public static bool IsSuperClass(Object node, SClass_ID scid)
 {
    IINode inode = node as IINode;
    if (inode == null)
       return false;
    else
       return IsSuperClass(inode, scid);
 }
Esempio n. 4
0
 public static IEnumerable <IINode> NodesListBySuperClass(this IINode rootNode, SClass_ID sid)
 {
     return(from n in rootNode.NodeTree() where n.ObjectRef != null && n.EvalWorldState(0, false).Obj.SuperClassID == sid select n);
 }
Esempio n. 5
0
 public static IEnumerable<IINode> NodesListBySuperClasses(this IINode rootNode, SClass_ID[] sids)
 {
     return from n in rootNode.NodeTree() where n.ObjectRef != null && sids.Any(sid => n.EvalWorldState(0, false).Obj.SuperClassID == sid) select n;
 }
Esempio n. 6
0
 public SuperClassID(SClass_ID id)
 {
     this.id = (ulong)id;
 }
Esempio n. 7
0
 public SuperClassID(SClass_ID id) { this.id = (ulong)id; }
Esempio n. 8
0
 public PrimObjectFactory(SClass_ID scid, BuiltInClassIDA cidA) : base(scid, cidA)
 {
 }
 public RefResult NotifyDependents_(IInterval changeInt, UIntPtr partID, RefMessage message, SClass_ID sclass, bool propagate,
                                    IReferenceTarget hTarg)
 {
     throw new NotImplementedException();
 }
 public bool RemoveAppDataChunk(IClass_ID cid, SClass_ID sid, uint sbid)
 {
     throw new NotImplementedException();
 }
 public IAppDataChunk GetAppDataChunk(IClass_ID cid, SClass_ID sid, uint sbid)
 {
     throw new NotImplementedException();
 }
 public void AddAppDataChunk(IClass_ID cid, SClass_ID sid, uint sbid, byte[] data)
 {
     throw new NotImplementedException();
 }