public void Add(BoneAttachedRenderableAsset asset)
 {
     _renderables.Add(asset);
     //asset.OnBoundingBoxChanges += AssetOnBoundingBoxChangesHandler;
     UpdateBounds();
 }
 public void Move(BoneAttachedRenderableAsset asset, int index)
 {
     _renderables.Move(asset, index);
 }
 public BoneAttachedAssetSceneObject(BoneAttachedRenderableAsset boneAttachedAsset)
 {
     _boneAttachedAsset = boneAttachedAsset;
 }
Exemple #4
0
 public AssetViewModel(TreeViewItemViewModel parent, INodeAddedCallback nodeAddCB, BoneAttachedRenderableAsset asset, string name)
     : base(parent, nodeAddCB, false)
 {
     Name = name;
     Asset = asset;
 }
Exemple #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();
 }