|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jzy3d.plot3d.primitives.AbstractDrawable org.jzy3d.plot3d.primitives.AbstractWireframeable org.jzy3d.plot3d.primitives.enlightables.Enlightable org.jzy3d.plot3d.primitives.enlightables.EnlightablePolygon
public class EnlightablePolygon
Constructor Summary | |
---|---|
EnlightablePolygon()
Initializes an empty Polygon with face status defaulting to true,
and wireframe status defaulting to false. |
Method Summary | |
---|---|
void |
add(Point point)
Add a point to the polygon. |
void |
draw(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
Camera cam)
Call OpenGL routines for rendering the object. |
Point |
get(int p)
Retrieve a point from the Polygon . |
Coord3d |
getBarycentre()
Return the barycentre of this object, which is computed as the center of its bounding box. |
Color |
getColor()
|
ColorMapper |
getColorMapper()
|
boolean |
hasAlpha()
|
void |
setColor(Color color)
|
void |
setColorMapper(ColorMapper mapper)
|
int |
size()
Indicates the number of points in this Polygon . |
java.lang.String |
toString(int depth)
|
Methods inherited from class org.jzy3d.plot3d.primitives.enlightables.Enlightable |
---|
getMaterialAmbiantReflection, getMaterialDiffuseReflection, getMaterialEmission, getMaterialShininess, getMaterialSpecularReflection, setMaterialAmbiantReflection, setMaterialDiffuseReflection, setMaterialEmission, setMaterialShininess, setMaterialSpecularReflection |
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractWireframeable |
---|
getFaceDisplayed, getWireframeColor, getWireframeDisplayed, getWireframeWidth, setFaceDisplayed, setWireframeColor, setWireframeDisplayed, setWireframeWidth |
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable |
---|
addDrawableListener, dispose, getBounds, getDistance, getFace, getLongestDistance, getShortestDistance, getTransform, hasFace, isDisplayed, isFace2dDisplayed, removeDrawableListener, setDisplayed, setLegend, setLegendDisplayed, setTransform, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EnlightablePolygon()
Polygon
with face status defaulting to true,
and wireframe status defaulting to false.
Method Detail |
---|
public void draw(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, Camera cam)
AbstractDrawable
draw
in interface IGLRenderer
draw
in class AbstractDrawable
gl
- GL contextglu
- GLU contextcam
- a reference to a shooting Camera.public void add(Point point)
public boolean hasAlpha()
public Coord3d getBarycentre()
AbstractDrawable
Coord3d.INVALID
getBarycentre
in class AbstractDrawable
Coord3d.INVALID
.public Point get(int p)
Polygon
.
public int size()
Polygon
.
public void setColorMapper(ColorMapper mapper)
public ColorMapper getColorMapper()
public void setColor(Color color)
public Color getColor()
public java.lang.String toString(int depth)
toString
in class AbstractDrawable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |