Exemple #1
0
 public SORemoveFrameLinkChangeOp(SOFrameLink link) : base(false)
 {
     Scene      = link.Manager.Scene;
     TargetUUID = link.Target.UUID;
     SourceUUID = link.Source.UUID;
     LinkUUID   = link.UUID;
 }
Exemple #2
0
        public override OpStatus Apply()
        {
            TransformableSO target  = Scene.FindByUUID(TargetUUID) as TransformableSO;
            TransformableSO source  = Scene.FindByUUID(SourceUUID) as TransformableSO;
            SOLink          newLink = new SOFrameLink(source, target);

            Scene.LinkManager.AddLink(newLink);
            LinkUUID = newLink.UUID;
            return(OpStatus.Success);
        }
Exemple #3
0
        public override OpStatus Apply()
        {
            SceneObject target  = Scene.FindByUUID(TargetUUID);
            SceneObject source  = Scene.FindByUUID(SourceUUID);
            SOLink      newLink = new SOFrameLink(source, target);

            Scene.LinkManager.AddLink(newLink);
            LinkUUID = newLink.UUID;
            return(OpStatus.Success);
        }
Exemple #4
0
        public void ConnectTarget(SceneObject frameSourceSO, SceneObject target)
        {
            this.target = target;

            Frame3f sourceW = frameSourceSO.GetLocalFrame(CoordSpace.WorldCoords);

            this.SetLocalFrame(sourceW, CoordSpace.WorldCoords);

            link = new SOFrameLink(target, this);
            target.GetScene().LinkManager.AddLink(link);

            increment_timestamp();
        }