|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.brackeen.javagamebook.math3D.PolygonGroup
The PolygonGroup is a group of polygons with a MovingTransform3D. PolygonGroups can also contain other PolygonGroups.
Constructor Summary | |
PolygonGroup()
Creates a new, empty PolygonGroup. |
|
PolygonGroup(java.lang.String name)
Creates a new, empty PolygonGroup with te specified name. |
Method Summary | |
void |
add(Transform3D xform)
|
void |
add(Vector3D u)
|
void |
addPolygon(Polygon3D o)
Adds a polygon to this group. |
void |
addPolygonGroup(PolygonGroup p)
Adds a PolygonGroup to this group. |
void |
addRotation(Transform3D xform)
|
java.lang.Object |
clone()
Clones this polygon group. |
java.lang.String |
getFilename()
Gets the filename of this PolygonGroup. |
PolygonGroup |
getGroup(java.lang.String name)
Gets the PolygonGroup in this group with the specified name, or null if none found. |
java.lang.String |
getName()
Gets the name of this PolygonGroup. |
MovingTransform3D |
getTransform()
Gets the MovingTransform3D for this PolygonGroup. |
boolean |
hasNext()
Checks if there is another polygon in the current iteration. |
boolean |
isEmpty()
Returns true if there are no polygons in this group. |
Polygon3D |
nextPolygon()
Gets the next polygon in the current iteration. |
void |
nextPolygonTransformed(Polygon3D cache)
Gets the next polygon in the current iteration, applying the MovingTransform3Ds to it, and storing it in 'cache'. |
void |
resetIterator()
Resets the polygon iterator for this group. |
void |
setFilename(java.lang.String filename)
Sets the filename of this PolygonGroup. |
void |
setName(java.lang.String name)
Sets the name of this PolygonGroup. |
void |
subtract(Transform3D xform)
|
void |
subtract(Vector3D u)
|
void |
subtractRotation(Transform3D xform)
|
void |
update(long elapsedTime)
Updates the MovingTransform3Ds of this group and any subgroups. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PolygonGroup()
public PolygonGroup(java.lang.String name)
Method Detail |
public MovingTransform3D getTransform()
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getFilename()
public void setFilename(java.lang.String filename)
public void addPolygon(Polygon3D o)
public void addPolygonGroup(PolygonGroup p)
public java.lang.Object clone()
public PolygonGroup getGroup(java.lang.String name)
public void resetIterator()
hasNext()
,
nextPolygon()
public boolean hasNext()
resetIterator()
,
nextPolygon()
public boolean isEmpty()
public Polygon3D nextPolygon()
resetIterator()
,
hasNext()
public void nextPolygonTransformed(Polygon3D cache)
public void update(long elapsedTime)
public void add(Vector3D u)
add
in interface Transformable
public void subtract(Vector3D u)
subtract
in interface Transformable
public void add(Transform3D xform)
add
in interface Transformable
public void subtract(Transform3D xform)
subtract
in interface Transformable
public void addRotation(Transform3D xform)
addRotation
in interface Transformable
public void subtractRotation(Transform3D xform)
subtractRotation
in interface Transformable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |