GeometryGym.Ifc.IfcProduct.setJSON C# (CSharp) Méthode

setJSON() protected méthode

protected setJSON ( Newtonsoft.Json.Linq.JObject obj, BaseClassIfc host, HashSet processed ) : void
obj Newtonsoft.Json.Linq.JObject
host BaseClassIfc
processed HashSet
Résultat void
        protected override void setJSON(JObject obj, BaseClassIfc host, HashSet<int> processed)
        {
            base.setJSON(obj, host, processed);
            IfcObjectPlacement placement = Placement;
            if (placement != null)
                obj["Placement"] = placement.getJson(this, processed);
            IfcProductRepresentation representation = Representation;
            if (representation != null)
            {
                //IfcProductDefinitionShape shape = representation as IfcProductDefinitionShape;
                //if(shape != null)
                //{
                //	if(shape.mHasShapeAspects.Count == 1)
                //	{
                obj["Representation"] = representation.getJson(this, processed);
                //	}
                //	else
                //}
                //else
                //{
                //}
            }
            //internal List<IfcRelAssignsToProduct> mReferencedBy = new List<IfcRelAssignsToProduct>();//	 :	SET OF IfcRelAssignsToProduct FOR RelatingProduct;
        }