| 1 |
NAME SoGetMatrixAction SoMxAct "" { |
| 2 |
computes transformation matrix for subgraph |
| 3 |
} |
| 4 |
|
| 5 |
INCLUDE actions/SoGetMatrixAction.h |
| 6 |
|
| 7 |
DESC { |
| 8 |
This action computes transformation matrices for a given subgraph. It |
| 9 |
computes the cumulative transformation matrix and its inverse, along |
| 10 |
with a cumulative texture transformation matrix and its inverse. |
| 11 |
\p |
| 12 |
This action is unlike most others in that it does not traverse |
| 13 |
downwards from groups. When applied to a node, it computes the matrix |
| 14 |
for just that node. (This makes sense for transformation nodes, but |
| 15 |
not for others, really.) It is much more useful when applied to a |
| 16 |
path. When applied to a path, it gathers the transformation info for |
| 17 |
all nodes in the path and those that affect nodes in the path, but it |
| 18 |
stops when it hits the last node in the path; it does not traverse |
| 19 |
downwards from it as other actions (such as rendering) do. This |
| 20 |
behavior makes the most sense for this action. |
| 21 |
} |
| 22 |
|
| 23 |
METHOD "" SoGetMatrixAction(const SbViewportRegion &newRegion) { |
| 24 |
Constructor takes viewport region to use for picking. Even |
| 25 |
though the matrix computation may not involve a window |
| 26 |
per se, some nodes need this information to determine their |
| 27 |
placement. |
| 28 |
} |
| 29 |
|
| 30 |
METHOD setVPReg void setViewportRegion(const SbViewportRegion &newRegion) {} |
| 31 |
METHOD getVPReg const SbViewportRegion &getViewportRegion() const { |
| 32 |
Sets/returns current viewport region to use for action. |
| 33 |
} |
| 34 |
|
| 35 |
METHOD getMx SbMatrix & getMatrix() {} |
| 36 |
METHOD getInv SbMatrix & getInverse() { |
| 37 |
Returns cumulative transformation matrix and its inverse. Warning: |
| 38 |
the matrices returned by these routines should not be changed (unless |
| 39 |
you are implementing your own transformation nodes). |
| 40 |
} |
| 41 |
|
| 42 |
METHOD getTexMx SbMatrix & getTextureMatrix() {} |
| 43 |
METHOD getTexInv SbMatrix & getTextureInverse() { |
| 44 |
Returns cumulative texture transformation matrix and its inverse. |
| 45 |
Warning: the matrices returned by these routines should not be changed |
| 46 |
(unless you are implementing your own transformation nodes). |
| 47 |
} |
| 48 |
|
| 49 |
ALSO { SoGetBoundingBoxAction } |
| 50 |
|
| 51 |
|