public void InsertSubComp(ComponentKey id, TransformableObject insert) { if (_subComps.ContainsKey(id)) { return; } _subComps.Add(id, insert); }
public TransformableObject GetComp(ObjectModel.ComponentKey compID) { List <ObjectModel.ComponentKey> path = HierarchyPack.ComponentMap[compID]; TransformableObject comp = Object; for (int i = 0; i < path.Count; i++) { comp = comp.GetSubComp(path[i]); } return(comp); }
public SealedTransformableObject(ObjectModel objectModel, HierarchyPackage hierarchyPack) { this.Object = new TransformableObject(objectModel); this.HierarchyPack = hierarchyPack; }