sub_arctic.lib
Interface traversal_xform
- All Known Implementing Classes:
- bounds_sem_draw_to_child, xform_rect_to_child, focus_sem_draw_to_child, sem_draw_to_child
- public abstract interface traversal_xform
Interface representing an object that transforms a set of "parameter"
values from those suitable for use by a parent object into a set suitable
for use by a child object (for example, during a traversal using
traverse_and_collect()).
- See Also:
interactor.traverse_and_collect(int, int, sub_arctic.lib.interactor_pred, sub_arctic.lib.interactor_pred, sub_arctic.lib.traversal_xform, java.lang.Object, sub_arctic.input.pick_collector)
Method Summary |
java.lang.Object |
xform(java.lang.Object parent_parameters,
interactor child_obj,
int child_index)
Perform the transformation. |
xform
public java.lang.Object xform(java.lang.Object parent_parameters,
interactor child_obj,
int child_index)
- Perform the transformation.
- Parameters:
parent_parameters
- an object representing parameter values as set
up for the parent object.child_obj
- the child object that the parameter values
should be transformed for use by (a common
example would be to transform a point from the
parent's coordinate system into this child
object's coordinate system).- Returns:
- the resulting transformed parameters object. Note: this can
be the same object passes in.