public class Teapot extends Geometry
Internally this uses the OpenGL evaluators to work through the bezier patch data for rendering. The code is liberally stolen from the GLUT source which is copyright SGI. Converted to the JOGL API methods and different calling conventions.
bounds, implicitBounds, internalUpdater, INVALID_BOUNDS, lastParentList, parentList, pickFlags, validAlphalastParent, liveCountalive, LISTENER_SET_TIMING_ERR_PROP, updateHandlerCOLLIDABLE_OBJECT, GENERAL_OBJECT, PROXIMITY_OBJECT, VISIBLE_OBJECTCUSTOM_PICK_TYPE, GROUP_PICK_TYPE, LEAF_PICK_TYPE, SINGLE_PICK_TYPE| Constructor and Description |
|---|
Teapot(float scale,
int gridSize)
Construct a default instance of the teapot with the given scale factor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Compares this object with the specified object for order.
|
int |
compareTo(Teapot ta)
Compares this object with the specified object for order.
|
boolean |
equals(Object o)
Compare this object for equality to the given object.
|
boolean |
equals(Teapot ta)
Compares this object with the specified object to check for equivalence.
|
boolean |
is2D()
Check to see whether this shape is something that represents 2D or 3D
geometry.
|
protected void |
markBoundsDirty()
Mark this node as having dirty bounds due to it's geometry having
changed.
|
protected void |
recomputeBounds()
Internal method to recalculate the implicit bounds of this Node.
|
void |
render(com.jogamp.opengl.GL2 gl)
Issue ogl commands needed for this renderable object.
|
protected void |
updateBounds()
Update this node's bounds and then call the parent to update it's
bounds.
|
addParent, boundsChanged, checkPickMask, getBounds, getPickableBounds, getPickMask, getPickTargetType, hasTransparency, isVisible, pickBatch, pickLineRay, pickLineSegment, pickSingle, removeParent, setBounds, setPickMaskaddParent, getParents, numParents, removeParentcheckForCyclicChild, checkForCyclicParent, dataChanged, getAppUpdateWriteTimingMessage, getBoundsWriteTimingMessage, getDataWriteTimingMessage, getUserData, isLive, setLive, setUpdateHandler, setUserDatapublic Teapot(float scale,
int gridSize)
scale - The scale of the teapot to usepublic boolean is2D()
EffectRenderable, while 3D is.
Note that this can be changed depending on the type of geometry itself.
A Shape3D node with an IndexedLineArray that only has 2D coordinates is
as much a 2D geometry as a raster object.public void render(com.jogamp.opengl.GL2 gl)
gl - The gl context to draw withprotected void updateBounds()
updateBounds in class Geometryprotected void recomputeBounds()
recomputeBounds in class Geometryprotected void markBoundsDirty()
markBoundsDirty in class Geometrypublic int compareTo(Object o) throws ClassCastException
o - The objec to be comparedClassCastException - The specified object's type prevents it from
being compared to this Objectpublic boolean equals(Object o)
public int compareTo(Teapot ta)
ta - The argument instance to be comparedpublic boolean equals(Teapot ta)
ta - The geometry instance to be compared
Copyright © 2001 - 2015 j3d.org