wxArt2D
Public Member Functions | Friends | List of all members
a2dIterCU Class Reference

An object of this class will update a a2dIterC with the required information. More...

#include <canobj.h>

Public Member Functions

 a2dIterCU (a2dIterC &ic, a2dCanvasObject *object, OVERLAP clip=_IN)
 Update iteration context. More...
 
 a2dIterCU (a2dIterC &ic, const a2dAffineMatrix &matrix=a2dIDENTITY_MATRIX, OVERLAP clip=_IN)
 construction of intitial
 
 a2dIterCU (const a2dIterCU &cu)
 copy constructor
 
 ~a2dIterCU ()
 Restore the iteration context.
 
a2dCanvasObjectGetObject ()
 Get the current object.
 
const a2dAffineMatrixGetTransform ()
 Get the accumulated transforms up to and including m_object->m_lworld.
 
const a2dAffineMatrixGetInverseTransform ()
 Get the accumulated transforms up to and including m_object->m_lworld.
 

Friends

class a2dIterC
 

Detailed Description

An object of this class will update a a2dIterC with the required information.

As iteration goes down the child hierarchy, a a2dIterCU is created to
update a a2dIterC. It will update the parent list as well as the matrix

Assume the following object tree

     A
   /   \
  B     C
 / \   / \
D   E F   G

The constructors / destructors are called in the following order, and the values of GetParent and GetPreviousSibling, GetPreviousOrParent and GetPreviousDeep are shown (time is going from left to right):

Const:    A   B   D       E           C   F       G
Destr:                D       E   B           F       G   C   A

Parent: X   0   A   B   A   B   A   0   A   C   A   C   A   0   X

PrevSi: X   0   0   0   0   D   0   0   B   0   B   F   B   0   X

PrevOP: X   0   A   B   A   D   A   0   B   C   B   F   B   0   X

PrevD:  X   0   0   0   D   D   E   B   B   B   F   F   G   C   A

Stack:  -   A   A   A   A   A   A   A   A   A   A   A   A   A   -
        -   -   B   B   B   B   B   -   C   C   C   C   C   -   -
        -   -   -   D   -   E   -   -   -   F   -   G   -   -   -
See Also
a2dIterC

Definition at line 3123 of file canobj.h.

Constructor & Destructor Documentation

a2dIterCU::a2dIterCU ( a2dIterC ic,
a2dCanvasObject object,
OVERLAP  clip = _IN 
)

Update iteration context.

Create an object of this type locally in a a2dCanvasObject child tree iteration function at each recusion level. This will update the iteration context and restore it later

Definition at line 402 of file canobj.cpp.


The documentation for this class was generated from the following files:
a2dIterCU Class Reference -- Sun Oct 12 2014 17:04:41 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . -- Main Page Reference Documentation