|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sub_arctic.lib.sem_draw_context
This class provides a traversal "parameters" object that encapsulates the context of a draw done from inside a semantic lens. A semantic lens does a re-rendering of the interactor tree rooted at its parent in a way that changes the display in some significant way. For example, the nametag_sem_draw redraw pass draws all objects as a small tag displaying the name of the class of the object, along with a bounding box. These objects are used by the sem_draw_cont predicate, various specialized drawing actions, and the sem_draw_to_child transformer.
sem_draw_to_child
,
sub_arctic.lib.sem_draw_cont
,
base_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)
Field Summary | |
protected semantic_lens |
_lens
The lens whose draw context we are. |
protected drawable |
_surface
The drawable we can draw on. |
int |
draw_kind
A unique identifier that indicates what type of drawing is being done. |
Constructor Summary | |
sem_draw_context(int drw_knd,
drawable surf)
Constructor. |
|
sem_draw_context(int drw_knd,
drawable surf,
semantic_lens sem_lens)
Full constructor. |
|
sem_draw_context(sem_draw_context other)
Construct from another object. |
Method Summary | |
semantic_lens |
lens()
Returns the semantic lens whose draw context we are. |
void |
set_lens(semantic_lens lens)
Sets the semantic lens whose draw context we are. |
void |
set_surface(drawable surface)
Sets the drawable we can draw on. |
drawable |
surface()
Returns the drawable we can draw on. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public int draw_kind
protected drawable _surface
protected semantic_lens _lens
Constructor Detail |
public sem_draw_context(int drw_knd, drawable surf)
ind
- drw_kind a value for draw_kind.drawable
- surf a value for surface.public sem_draw_context(int drw_knd, drawable surf, semantic_lens sem_lens)
int
- drw_kind a value for draw_kind.drawable
- surf a value for surface.semantic_lens
- lens the lens whose draw context we are.public sem_draw_context(sem_draw_context other)
sem_draw_context
- other the object we make a copy of.Method Detail |
public drawable surface()
public void set_surface(drawable surface)
public semantic_lens lens()
public void set_lens(semantic_lens lens)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |