Esempio n. 1
0
        protected void RecalcMatrix()
        {
            ITransform transformThis = this as ITransform;
            Matrix     parentMatrix  = Matrix.Identity;

            transformThis.Recalc(ref parentMatrix);
        }
Esempio n. 2
0
        protected void RecalcMatrix()
        {
            ITransform transformThis        = this as ITransform;
            ITransform transformParent      = this.parent as ITransform;
            Matrix     ParentWorldTransform = transformParent.World;

            transformThis.Recalc(ref ParentWorldTransform);
        }
Esempio n. 3
0
        protected void RecalcMatrix()
        {
            ITransform transformParent = this.parent as ITransform;
            ITransform transformThis   = this as ITransform;
            Matrix     parentMatrix    = transformParent.World;

            transformThis.Recalc(ref parentMatrix);
        }
Esempio n. 4
0
        void ITransform.Recalc(ref Matrix parentMatrix)
        {
            ITransform transform = renderObj as ITransform;

            transform.Recalc(ref parentMatrix);
            if (UiCursor.ActiveCursor != null && UiCursor.ActiveCursor.Parent == this)
            {
                ITransform transformCursor = UiCursor.ActiveCursor as ITransform;
                Matrix     world           = transform.World;
                transformCursor.Recalc(ref world);
            }
        }
Esempio n. 5
0
        protected void RecalcMatrix()
        {
            ITransform transformParent = this.parent as ITransform;
            Matrix     parentMatrix    = Matrix.Identity;

            if (transformParent != null)
            {
                parentMatrix = transformParent.World;
            }
            ITransform transformThis = this as ITransform;

            transformThis.Recalc(ref parentMatrix);
        }
Esempio n. 6
0
            protected void RecalcMatrix()
            {
                ITransform transformThis = this as ITransform;
                Matrix     parentWorldMatrix;

                if (transformParent != null)
                {
                    parentWorldMatrix = transformParent.World;
                }
                else
                {
                    parentWorldMatrix = Matrix.Identity;
                }
                transformThis.Recalc(ref parentWorldMatrix);
            }
Esempio n. 7
0
        void ITransform.Recalc(ref Matrix parentMatrix)
        {
            ITransform transform = renderPanel as ITransform;

            transform.Recalc(ref parentMatrix);
            Matrix world = transform.World;

            for (int indexClause = 0; indexClause < this.listWhenClause.Count; indexClause++)
            {
                ITransform transformObj = listWhenClause[indexClause] as ITransform;
                transformObj.Recalc(ref world);
            }
            for (int indexClause = 0; indexClause < this.listDoClause.Count; indexClause++)
            {
                ITransform transformObj = listDoClause[indexClause] as ITransform;
                transformObj.Recalc(ref world);
            }
            for (int indexCard = 0; indexCard < listControls.Count; indexCard++)
            {
                ITransform transformCard = listControls[indexCard] as ITransform;
                transformCard.Recalc(ref world);
            }
        }
Esempio n. 8
0
        void ITransform.Recalc(ref Matrix parentMatrix)
        {
            ITransform transform = renderObj as ITransform;

            transform.Recalc(ref parentMatrix);
        }