protected void RecalcMatrix() { ITransform transformThis = this as ITransform; Matrix parentMatrix = Matrix.Identity; transformThis.Recalc(ref parentMatrix); }
protected void RecalcMatrix() { ITransform transformThis = this as ITransform; ITransform transformParent = this.parent as ITransform; Matrix ParentWorldTransform = transformParent.World; transformThis.Recalc(ref ParentWorldTransform); }
protected void RecalcMatrix() { ITransform transformParent = this.parent as ITransform; ITransform transformThis = this as ITransform; Matrix parentMatrix = transformParent.World; transformThis.Recalc(ref parentMatrix); }
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); } }
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); }
protected void RecalcMatrix() { ITransform transformThis = this as ITransform; Matrix parentWorldMatrix; if (transformParent != null) { parentWorldMatrix = transformParent.World; } else { parentWorldMatrix = Matrix.Identity; } transformThis.Recalc(ref parentWorldMatrix); }
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); } }
void ITransform.Recalc(ref Matrix parentMatrix) { ITransform transform = renderObj as ITransform; transform.Recalc(ref parentMatrix); }