Class ReOSRectangleRenderer
java.lang.Object
|
+--ReOSTrackable
|
+--ReOSRenderer
|
+--ReOSPrimitiveRenderer
|
+--ReOSRectangleRenderer
- public class ReOSRectangleRenderer
- extends ReOSPrimitiveRenderer
Name: class ReOSRectangleRenderer
Desc: renders Rectangle defined from the location of the entity to
another point, this point can be relative to the location or
absolute in the coordinate system.
- Author:
- Ge (Gary) Wang (www.gewang.com), George Stetten (stetten@duke.edu), Visnu Pitiyanuvath (vtp1@duke.edu)
11.30.2000 Gary - created and implemented
| Methods inherited from class java.lang.Object |
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
ReOSRectangleRenderer
public ReOSRectangleRenderer(ReVector3D whereTo)
- constructor
- Parameters:
whereTo - this location and the entity's location (during rendering)
determines the location and size of the Rectangle
ReOSRectangleRenderer
public ReOSRectangleRenderer(double width,
double height,
boolean center)
- constructor
- Parameters:
width - 'width' of Rectangleheight - height of Rectanglecenter - whether to center this about the entities location
this Rectangle constructed by this will follow the location of the entity
ReOSRectangleRenderer
public ReOSRectangleRenderer(ReVector3D whereTo,
boolean center,
boolean isAbsolute)
- constructor
- Parameters:
whereTo - the pt (or width/height) that defines the Rectanglecenter - whether to center this Rectangle about the entity locationisAbsolute - - if true, whereTo is fixed, else the Rectangle moves
with the entity location.
setWhereTo
public void setWhereTo(ReVector3D whereTo)
- set the whereTo point
render
public void render(ReOSRenderable entity,
ReOSDC hdc)
- draw
- Overrides:
- render in class ReOSRenderer