public final class Polygon3DRenderEvent extends PolygonRenderEvent implements I3DRenderEvent
DRAW, FILL, iObjIndex| Constructor and Description |
|---|
Polygon3DRenderEvent(java.lang.Object oSource)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
PrimitiveRenderEvent |
copy() |
Fill |
getBackground() |
double |
getBrightness() |
Object3D |
getObject3D()
Returns the 3D object associated with this event.
|
Location3D[] |
getPoints3D() |
boolean |
isBehind() |
boolean |
isDoubleSided()
Returns true if double sided polygons (not enclosing a volume)
|
void |
prepare2D(double xOffset,
double yOffset)
Prepares the coordinates to render on 2D plane.
|
void |
reset()
Resets the inner state of current event.
|
void |
setBackground(Fill ifBackground)
Sets the background fill attributes for the polygon
|
void |
setBehind(boolean value)
Sets if this polygon is facing behind(along user's viewing direction).
|
void |
setBrightness(double value)
Sets the brightness of this polygon, the value ranges 0.0 - 1.0.
|
void |
setDoubleSided(boolean value)
Sets if this polygon is double sided.
|
void |
setPoints3D(Location3D[] loa)
Note that setPoints3D must be called with the points in the right order:
that is needed for the right orientation of the polygon.
|
void |
setPoints3D(Location3D[] loa,
boolean inverted)
Note that setPoints3D must be called with the points in the right order:
that is needed for the right orientation of the polygon.
|
draw, fill, getBounds, getLineAttributes, getOutline, getPoints, setOutline, setPointscompareRegular, compareTo, compareTransposed, getDepth, getLabel, isEnabled, setDepth, setEnablesetSourceObjectpublic Polygon3DRenderEvent(java.lang.Object oSource)
public boolean isDoubleSided()
public void setDoubleSided(boolean value)
value - public boolean isBehind()
public void setBehind(boolean value)
public void setBackground(Fill ifBackground)
PolygonRenderEventsetBackground in class PolygonRenderEventpublic Fill getBackground()
getBackground in class PolygonRenderEventpublic double getBrightness()
public void setBrightness(double value)
public final void setPoints3D(Location3D[] loa) throws ChartException
la - Sets the co-ordinates for each point that defines the polygonChartExceptionpublic final void setPoints3D(Location3D[] loa, boolean inverted) throws ChartException
la - Sets the co-ordinates for each point that defines the polygoninverted - Inverts the orientation of the surface if trueChartExceptionpublic Location3D[] getPoints3D()
public void prepare2D(double xOffset,
double yOffset)
I3DRenderEventprepare2D in interface I3DRenderEventpublic PrimitiveRenderEvent copy()
copy in class PolygonRenderEventpublic void reset()
ChartEventreset in class PolygonRenderEventpublic Object3D getObject3D()
I3DRenderEventgetObject3D in interface I3DRenderEventCopyright © 2005-2008 Actuate Corp. All rights reserved.