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, setPoints
compareRegular, compareTo, compareTransposed, getDepth, getLabel, isEnabled, setDepth, setEnable
setSourceObject
public 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)
PolygonRenderEvent
setBackground
in class PolygonRenderEvent
public Fill getBackground()
getBackground
in class PolygonRenderEvent
public 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 polygonChartException
public 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 trueChartException
public Location3D[] getPoints3D()
public void prepare2D(double xOffset, double yOffset)
I3DRenderEvent
prepare2D
in interface I3DRenderEvent
public PrimitiveRenderEvent copy()
copy
in class PolygonRenderEvent
public void reset()
ChartEvent
reset
in class PolygonRenderEvent
public Object3D getObject3D()
I3DRenderEvent
getObject3D
in interface I3DRenderEvent
Copyright © 2005-2008 Actuate Corp. All rights reserved.