public class TriangleFanShape
extends java.lang.Object
Shape
defined by vertices using OpenGl's GL_TRIANGLE_FAN method.
Note that this class is intended to be wrapped. No transformations are
performed in the draw(GL10)
method.
Constructor and Description |
---|
TriangleFanShape(float[] vertices,
Color color) |
Modifier and Type | Method and Description |
---|---|
void |
draw(GL10 gl) |
Color |
getColor() |
org.ros.rosjava_geometry.Transform |
getTransform() |
protected void |
scale(GL10 gl)
Scales the coordinate system.
|
void |
setColor(Color color) |
void |
setTransform(org.ros.rosjava_geometry.Transform pose) |
public void draw(GL10 gl)
draw
in interface OpenGlDrawable
protected void scale(GL10 gl)
This is called after transforming the surface according to
transform
.
gl
- public Color getColor()
public void setColor(Color color)
public org.ros.rosjava_geometry.Transform getTransform()
getTransform
in interface Shape
Transform
that will be applied to this Shape
before it is drawnpublic void setTransform(org.ros.rosjava_geometry.Transform pose)
setTransform
in interface Shape
pose
- the Transform
that will be applied to this Shape
before it is drawn