maslab.vis
Class VisLaserScan

java.lang.Object
  extended by maslab.vis.VisObject
      extended by maslab.vis.VisLaserScan

public class VisLaserScan
extends VisObject

Displays data for a laser scan.


Field Summary
 float alpha
           
 java.awt.Color color
           
 double maxDistance
           
 java.util.ArrayList<GPoint2D> points
           
 double size
           
 double theta
           
 boolean useSlowPaintMode
           
 double x
           
 double y
           
 
Fields inherited from class maslab.vis.VisObject
coordinateSpace, SCREENSPACE, WORLDSPACE
 
Constructor Summary
VisLaserScan(java.awt.Color color, java.util.ArrayList<GPoint2D> points, double x, double y, double theta)
          Create a new laser scan object.
 
Method Summary
 void enableSlowPaintMode(double size)
          Select whether to use the higher-quality but much slower drawing routines.
 void paint(VisCanvas vc, java.awt.Graphics2D g, java.awt.image.BufferedImage bi)
          Overriden by each subclass to draw itself onto the provided graphics context.
 void slowpaint(VisCanvas vc, java.awt.Graphics2D g, java.awt.image.BufferedImage bi)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

size

public double size

color

public java.awt.Color color

points

public java.util.ArrayList<GPoint2D> points

x

public double x

y

public double y

theta

public double theta

alpha

public float alpha

useSlowPaintMode

public boolean useSlowPaintMode

maxDistance

public double maxDistance
Constructor Detail

VisLaserScan

public VisLaserScan(java.awt.Color color,
                    java.util.ArrayList<GPoint2D> points,
                    double x,
                    double y,
                    double theta)
Create a new laser scan object.

Method Detail

enableSlowPaintMode

public void enableSlowPaintMode(double size)
Select whether to use the higher-quality but much slower drawing routines.

Parameters:
size - Size, in pixels, of each dot.

paint

public void paint(VisCanvas vc,
                  java.awt.Graphics2D g,
                  java.awt.image.BufferedImage bi)
Description copied from class: VisObject
Overriden by each subclass to draw itself onto the provided graphics context. Applications can choose to use either the Graphics2D (which has the correct transform already set up) or to draw to the buffered image directly.

Specified by:
paint in class VisObject

slowpaint

public void slowpaint(VisCanvas vc,
                      java.awt.Graphics2D g,
                      java.awt.image.BufferedImage bi)