|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectGraphics3D
public class Graphics3D
Represents a ``paintbrush'' with which we can draw in three dimensions.
Constructor Summary | |
---|---|
Graphics3D(java.awt.Graphics g)
Constructs a Graphics3D object using the given Graphics object for drawing in two dimensions. |
Method Summary | |
---|---|
void |
drawLine(Point a,
Point b)
Draws a line segment using this paintbrush. |
void |
drawPolygon(Point[] pts)
Draws a polygon using this paintbrush. |
java.awt.Color |
getColor()
Returns the current color of this paintbrush. |
Transform |
getModelTransform()
Returns the model transform M used in the pipeline. |
Transform |
getProjectionTransform()
Returns the projection transform P used in the pipeline. |
Transform |
getViewFrameTransform()
Returns the viewplane transform Vf used in the pipeline. |
Transform |
getViewTransform()
Returns the view transform V used in the pipeline. |
void |
setColor(java.awt.Color c)
Alters the current color of this paintbrush. |
void |
setModelTransform(Transform t)
Alters the model transform M used in the pipeline. |
void |
setProjectionTransform(Transform t)
Alters the projection transform P used in the pipeline. |
void |
setViewFrameTransform(Transform t)
Alters the viewplane transform Vf used in the pipeline. |
void |
setViewTransform(Transform t)
Alters the view transform V used in the pipeline. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Graphics3D(java.awt.Graphics g)
Method Detail |
---|
public java.awt.Color getColor()
public Transform getModelTransform()
public Transform getViewTransform()
public Transform getProjectionTransform()
public Transform getViewFrameTransform()
public void setColor(java.awt.Color c)
public void setModelTransform(Transform t)
public void setViewTransform(Transform t)
public void setProjectionTransform(Transform t)
public void setViewFrameTransform(Transform t)
public void drawPolygon(Point[] pts)
public void drawLine(Point a, Point b)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |