HOME | PROJECTS | REALITY | EMAIL

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

Constructor Summary
ReOSRectangleRenderer(double width, double height, boolean center)
          constructor
ReOSRectangleRenderer(ReVector3D whereTo)
          constructor
ReOSRectangleRenderer(ReVector3D whereTo, boolean center, boolean isAbsolute)
          constructor
 
Method Summary
 void render(ReOSRenderable entity, ReOSDC hdc)
          draw
 void setWhereTo(ReVector3D whereTo)
          set the whereTo point
 
Methods inherited from class ReOSPrimitiveRenderer
color, getFill, setColor, setFill
 
Methods inherited from class ReOSTrackable
equals, getReOSID, getReOSName, setReOSID, setReOSName, toString
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 Rectangle
height - height of Rectangle
center - 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 Rectangle
center - whether to center this Rectangle about the entity location
isAbsolute - - if true, whereTo is fixed, else the Rectangle moves with the entity location.
Method Detail

setWhereTo

public void setWhereTo(ReVector3D whereTo)
set the whereTo point

render

public void render(ReOSRenderable entity,
                   ReOSDC hdc)
draw
Overrides:
render in class ReOSRenderer


HOME | PROJECTS | REALITY | EMAIL