com.metsci.glimpse.painter.shape
Class PolygonPainter
java.lang.Object
com.metsci.glimpse.painter.base.GlimpsePainterImpl
com.metsci.glimpse.painter.base.GlimpsePainter2D
com.metsci.glimpse.painter.shape.PolygonPainter
- All Implemented Interfaces:
- GlimpsePainter
public class PolygonPainter
- extends GlimpsePainter2D
Paints large collections of arbitrary polygons (including concave polygons).
Polygons can have timestamps associated with them, and can be efficiently filtered
by time (only drawing those polygons which fall within a particular time window.
- Author:
- ulman
Method Summary |
void |
addPolygon(int groupId,
int polygonId,
float[] dataX,
float[] dataY,
float z)
|
void |
addPolygon(int groupId,
int polygonId,
long startTime,
long endTime,
float[] dataX,
float[] dataY,
float z)
|
void |
addPolygon(int groupId,
int polygonId,
long startTime,
long endTime,
Polygon geometry,
float z)
|
void |
addPolygon(int groupId,
int polygonId,
long startTime,
long endTime,
java.awt.Shape shape,
float z)
|
void |
addPolygon(int groupId,
int polygonId,
Polygon geometry,
float z)
|
void |
addPolygon(int groupId,
int polygonId,
java.awt.Shape shape,
float z)
|
void |
clearGroup(int groupId)
Clears an individual Polygon group, deleting all the polygons its contains but
retaining its display settings. |
void |
deleteAll()
Deletes all Polygon groups, removing their display settings and reclaiming memory. |
void |
deleteGroup(int groupId)
Deletes an individual Polygon group, removing its display settings and reclaiming memory. |
void |
deletePolygon(int groupId,
int polygonId)
|
void |
displayTimeRange(double startTime,
double endTime)
|
void |
displayTimeRange(int groupId,
double startTime,
double endTime)
|
void |
displayTimeRange(int groupId,
long startTime,
long endTime)
|
void |
displayTimeRange(long startTime,
long endTime)
|
void |
dispose(javax.media.opengl.GLContext context)
|
void |
paintTo(GlimpseContext context,
GlimpseBounds bounds,
Axis2D axis)
|
void |
setFill(int groupId,
boolean show)
|
void |
setFillColor(int groupId,
float[] rgba)
|
void |
setFillColor(int groupId,
float r,
float g,
float b,
float a)
|
void |
setLineColor(int groupId,
float[] rgba)
|
void |
setLineColor(int groupId,
float r,
float g,
float b,
float a)
|
void |
setLineDotted(int groupId,
boolean dotted)
|
void |
setLineDotted(int groupId,
int stippleFactor,
short stipplePattern)
|
void |
setLineWidth(int groupId,
float width)
|
void |
setPolyDotted(int groupId,
boolean dotted)
|
void |
setPolyDotted(int groupId,
byte[] stipple)
|
void |
setShowLines(int groupId,
boolean show)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PolygonPainter
public PolygonPainter()
addPolygon
public void addPolygon(int groupId,
int polygonId,
float[] dataX,
float[] dataY,
float z)
addPolygon
public void addPolygon(int groupId,
int polygonId,
Polygon geometry,
float z)
addPolygon
public void addPolygon(int groupId,
int polygonId,
java.awt.Shape shape,
float z)
addPolygon
public void addPolygon(int groupId,
int polygonId,
long startTime,
long endTime,
float[] dataX,
float[] dataY,
float z)
addPolygon
public void addPolygon(int groupId,
int polygonId,
long startTime,
long endTime,
Polygon geometry,
float z)
addPolygon
public void addPolygon(int groupId,
int polygonId,
long startTime,
long endTime,
java.awt.Shape shape,
float z)
displayTimeRange
public void displayTimeRange(int groupId,
double startTime,
double endTime)
displayTimeRange
public void displayTimeRange(double startTime,
double endTime)
displayTimeRange
public void displayTimeRange(int groupId,
long startTime,
long endTime)
displayTimeRange
public void displayTimeRange(long startTime,
long endTime)
setLineColor
public void setLineColor(int groupId,
float[] rgba)
setLineColor
public void setLineColor(int groupId,
float r,
float g,
float b,
float a)
setLineWidth
public void setLineWidth(int groupId,
float width)
setShowLines
public void setShowLines(int groupId,
boolean show)
setPolyDotted
public void setPolyDotted(int groupId,
byte[] stipple)
setPolyDotted
public void setPolyDotted(int groupId,
boolean dotted)
setLineDotted
public void setLineDotted(int groupId,
boolean dotted)
setLineDotted
public void setLineDotted(int groupId,
int stippleFactor,
short stipplePattern)
setFill
public void setFill(int groupId,
boolean show)
setFillColor
public void setFillColor(int groupId,
float[] rgba)
setFillColor
public void setFillColor(int groupId,
float r,
float g,
float b,
float a)
deleteAll
public void deleteAll()
- Deletes all Polygon groups, removing their display settings and reclaiming memory.
deleteGroup
public void deleteGroup(int groupId)
- Deletes an individual Polygon group, removing its display settings and reclaiming memory.
- Parameters:
groupId
- the id of the group to delete
clearGroup
public void clearGroup(int groupId)
- Clears an individual Polygon group, deleting all the polygons its contains but
retaining its display settings.
- Parameters:
groupId
- the id of the group to clear
deletePolygon
public void deletePolygon(int groupId,
int polygonId)
paintTo
public void paintTo(GlimpseContext context,
GlimpseBounds bounds,
Axis2D axis)
- Specified by:
paintTo
in class GlimpsePainter2D
dispose
public void dispose(javax.media.opengl.GLContext context)
Copyright © 2012 Metron, Inc.. All Rights Reserved.