示例#1
0
 public void Add(BoneAttachedRenderableAsset asset)
 {
     _renderables.Add(asset);
     //asset.OnBoundingBoxChanges += AssetOnBoundingBoxChangesHandler;
     UpdateBounds();
 }
示例#2
0
 public void Move(BoneAttachedRenderableAsset asset, int index)
 {
     _renderables.Move(asset, index);
 }
 public BoneAttachedAssetSceneObject(BoneAttachedRenderableAsset boneAttachedAsset)
 {
     _boneAttachedAsset = boneAttachedAsset;
 }
示例#4
0
 public AssetViewModel(TreeViewItemViewModel parent, INodeAddedCallback nodeAddCB, BoneAttachedRenderableAsset asset, string name)
     : base(parent, nodeAddCB, false)
 {
     Name = name;
     Asset = asset;
 }
示例#5
0
 public AssetViewModel(INodeAddedCallback nodeAddCB, BoneAttachedRenderableAsset asset, string name)
     : this(null, nodeAddCB, asset, name)
 {
 }
 public void AttachAssetToBone(BoneAttachedRenderableAsset asset, BoneViewModel model)
 {
     var assetVM = _boneAttachedMapper[asset];
     assetVM.Parent.Children.Remove(assetVM);
     assetVM.Parent = model;
     model.Children.Add(assetVM);
 }
 public void Add(BoneAttachedRenderableAsset asset)
 {
     _renderables.Add(asset);
     _box = _renderables.Select(r => r.AABoundingBox).Combine();
     RaiseOnBoundingBoxChanges();
 }