public void ValidityCheck(ModelComponent targetToValidate)
 {
     IsValid = targetToValidate == null ||
               Entity == null ||
               targetToValidate.Entity == null ||
               (targetToValidate.Entity.Id != Entity.Id &&
                RecurseCheckChildren(Entity.Transform.Children, targetToValidate.Entity.Transform) &&
                CheckParent(targetToValidate.Entity.Transform));
 }
示例#2
0
 public ModelViewHierarchyTransformOperation(ModelComponent modelComponent)
 {
     ModelComponent = modelComponent;
 }
示例#3
0
 public ModelNodeTransformLink(ModelComponent parentModelComponent, string nodeName)
 {
     this.parentModelComponent = parentModelComponent;
     this.nodeName             = nodeName;
 }