gumbo.graphic.space
Interface MatrixTransformNode
- All Superinterfaces:
- Graphic, SpaceNode, TransformNode
- public interface MatrixTransformNode
- extends TransformNode
A stateful transform node based on matrix multiplication.
In matrix notation the transform is M*g, where "M" is the transform
matrix and "g" is the geometry of this graphic entity and its
descendants. Of the transform node interfaces this is the most
general (least constrained).
- Version:
- $Revision: 1.1 $
- Author:
- Jon Barrilleaux (jonb@jmbaai.com) of JMB and Associates Inc.
setGraphicTransform
public void setGraphicTransform(Matrix4 matrix)
- Sets the geometric transformation matrix of this graphic entity.
If the graphic is spatially constrained, some or all of the
transformation may be ignored.
- Parameters:
matrix
- Value of the transformation. Never null.
getGraphicTransform
public Matrix4 getGraphicTransform(Matrix4 retVal)
- Gets the transformation matrix of this graphic entity. If the
graphic is spatially constrained, it will be reflected in the
return value.
- Specified by:
getGraphicTransform
in interface TransformNode
- Parameters:
retVal
- Return value object. The matrix. Never null.
- Returns:
- Reference to retVal. Never null.