javax.media.j3d
Interface GeneralizedStripFlags

All Known Implementing Classes:
GeneralizedVertexList

interface GeneralizedStripFlags

A class which implements GeneralizedStripFlags provides the means to access the vertex replace code flags associated with each vertex of a generalized strip. This allows a flexible representation of generalized strips for various classes and makes it possible to provide a common subset of static methods which operate only on their topology.

See Also:
GeneralizedStrip, GeneralizedVertexList

Field Summary
static int FRONTFACE_CCW
          This constant is used to indicate that triangles with counter-clockwise vertex winding are front facing.
static int FRONTFACE_CW
          This constant is used to indicate that triangles with clockwise vertex winding are front facing.
static int REPLACE_MIDDLE
          This flag indicates that the next triangle in the strip is defined by replacing the middle vertex of the previous triangle in the strip.
static int REPLACE_OLDEST
          This flag indicates that the next triangle in the strip is defined by replacing the oldest vertex of the previous triangle in the strip.
static int RESTART_CCW
          This flag indicates that a vertex starts a new strip with counter-clockwise winding.
static int RESTART_CW
          This flag indicates that a vertex starts a new strip with clockwise winding.
 
Method Summary
 int getFlag(int index)
          Return the flag associated with the vertex at the specified index.
 int getFlagCount()
          Return the number of flags.
 

Field Detail

RESTART_CW

static final int RESTART_CW
This flag indicates that a vertex starts a new strip with clockwise winding.

See Also:
Constant Field Values

RESTART_CCW

static final int RESTART_CCW
This flag indicates that a vertex starts a new strip with counter-clockwise winding.

See Also:
Constant Field Values

REPLACE_MIDDLE

static final int REPLACE_MIDDLE
This flag indicates that the next triangle in the strip is defined by replacing the middle vertex of the previous triangle in the strip.

See Also:
Constant Field Values

REPLACE_OLDEST

static final int REPLACE_OLDEST
This flag indicates that the next triangle in the strip is defined by replacing the oldest vertex of the previous triangle in the strip.

See Also:
Constant Field Values

FRONTFACE_CW

static final int FRONTFACE_CW
This constant is used to indicate that triangles with clockwise vertex winding are front facing.

See Also:
Constant Field Values

FRONTFACE_CCW

static final int FRONTFACE_CCW
This constant is used to indicate that triangles with counter-clockwise vertex winding are front facing.

See Also:
Constant Field Values
Method Detail

getFlagCount

int getFlagCount()
Return the number of flags. This should be the same as the number of vertices in the generalized strip.


getFlag

int getFlag(int index)
Return the flag associated with the vertex at the specified index.



Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.