public class RenderingInfo extends java.lang.Object
Drawable3D draw()
method.| Modifier and Type | Field and Description |
|---|---|
double |
dy
The y-translation.
|
| Constructor and Description |
|---|
RenderingInfo(java.util.List<Face> faces,
java.awt.geom.Point2D[] projPts,
double dx,
double dy)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(RenderedElement element)
Adds a rendered element to the rendering info.
|
void |
addOffsetElement(RenderedElement element)
Adds a rendered element to the list of offset elements.
|
Object3D |
fetchObjectAt(double x,
double y)
Fetches the object, if any, that is rendered at
(x, y). |
RenderedElement |
findElementAt(double x,
double y)
Finds the rendered element, if any, at the location
(x, y). |
double |
getDX()
Returns the x-translation amount.
|
double |
getDY()
Returns the y-translation amount.
|
java.util.List<Face> |
getFaces()
Returns the list of faces rendered.
|
java.awt.geom.Point2D[] |
getProjectedPoints()
Returns the projected points.
|
public double dy
public RenderingInfo(java.util.List<Face> faces, java.awt.geom.Point2D[] projPts, double dx, double dy)
faces - the rendered faces (in order of rendering).projPts - the projected points for all vertices in the 3D model.dx - the x-delta.dy - the y-delta.public java.util.List<Face> getFaces()
public java.awt.geom.Point2D[] getProjectedPoints()
public double getDX()
public double getDY()
public void addElement(RenderedElement element)
element - the element (null not permitted).public void addOffsetElement(RenderedElement element)
element - the element (null not permitted).public Object3D fetchObjectAt(double x, double y)
(x, y).x - the x-coordinate.y - the y-coordinate.null).public RenderedElement findElementAt(double x, double y)
(x, y).
The method first calls fetchObjectAt(x, y) to see if there is an
object at the specified location and, if there is, returns a new
RenderedElement instance for that object. Otherwise, it searches the
otherElements list to see if there is some other element (such as a
title, legend, axis label or axis tick label) and returns that item.
Finally, if no element is found, the method returns null.x - the x-coordinate.y - the y-coordinate.null.