コード例 #1
0
 /// <inheritdoc />
 protected virtual void OnAdorneeDestroyed()
 {
     if (_adornee != null)
     {
         _adornee.Destroyed.Event -= OnAdorneeDestroyed;
     }
     Adornee = null;
 }
コード例 #2
0
        /// <inheritdoc />
        protected override void OnAdorneeSet(PVInstance adornee, PVInstance oldAdornee)
        {
            if (oldAdornee != null)
            {
                oldAdornee.Changed.Event -= OnAdorneeChangedEvent;
            }

            _bufferDirty      = true;
            _boundingBoxDirty = true;
            //TransformLines();

            if (adornee != null)
            {
                adornee.Changed.Event += OnAdorneeChangedEvent;
            }
        }
コード例 #3
0
 /// <inheritdoc />
 public override void Destroy()
 {
     Adornee = null;
     base.Destroy();
 }
コード例 #4
0
 /// <summary>
 /// Invoked when the <see cref="Adornee" /> property is changed.
 /// </summary>
 protected virtual void OnAdorneeSet(PVInstance newAdornee, PVInstance oldAdornee)
 {
 }
コード例 #5
0
 /// <inheritdoc />
 protected override void OnAdorneeSet(PVInstance newAdornee, PVInstance oldAdornee)
 {
     base.OnAdorneeSet(newAdornee, oldAdornee);
     ChangeRenderObject();
 }