All Packages Class Hierarchy This Package Previous Next Index
Class vlc.vrml.generic.geometry.IndexedFaceSet
java.lang.Object
|
+----vlc.vrml.generic.geometry.VrmlObject
|
+----vlc.vrml.generic.geometry.Geometry
|
+----vlc.vrml.generic.geometry.IndexedFaceSet
- public class IndexedFaceSet
- extends Geometry
JVerge
- Version:
- 0.8 (beta 4)
Copyright 1997
The Virtual Light Company
under the
GNU LGPL
The latest information and bugs in JVerge can be found at
http://www.vlc.com.au/JVerge
For definition of the Anchor node please see the
VRML 97 Anchor specification
- Author:
- Justin Couch justin@vlc.com.au
-
IndexedFaceSet()
- Default Constructor.
-
IndexedFaceSet(boolean, int[], int[], boolean, boolean, float, int[], boolean, boolean, int[])
- Constructor to use when you want to supply non-default values for
color and coordinate indexes and per vertex coloring.
-
cleanup()
- Call when about to remove the node from the scenegraph.
-
clone()
- Make a clone of this object
-
get_ccw()
- Get the value of the ccw field.
-
get_color()
- Get the currently set Color node
-
get_colorIndex()
- Get the list of colour indexes already being used.
-
get_colorPerVertex()
- Are colors being applied per vertex or per face?.
-
get_convex()
- Does the face set section represent a convex hull shape?
-
get_coord()
- Get the currently set Coordinate node
-
get_coordIndex()
- Get the list of coord indexes already being used.
-
get_creaseAngle()
- Get the value of the creaseAngle field.
-
get_normal()
- Get the currently set Normal node
-
get_normalIndex()
- Get the list of normal indexes already being used.
-
get_normalPerVertex()
- Are normals being applied per vertex or per face?.
-
get_solid()
- Get the value of the solid field.
-
get_texCoord()
- Get the currently set TextureCoordinate node
-
get_texCoordIndex()
- Get the list of texture coordinate indexes already being used.
-
set_color(Color)
- Set the color node to be associated with this node
-
set_colorIndex(int[])
- Set the indexes into the color field that are used in colouring
the object
-
set_coord(Coordinate)
- Set the Coordinate node to be associated with this node
-
set_coordIndex(int[])
- Set the indexes into the coordinate field that are used
creatingthe object
-
set_normal(Normal)
- Set the Normal node to be associated with this node
-
set_normalIndex(int[])
- Set the indexes into the Normal field that are used
-
set_texCoord(TextureCoordinate)
- Set the TextureCoordinate node to be associated with this node
-
set_texCoordIndex(int[])
- Set the indexes into the texture coordinate field that are used
in texturing the object
-
writeReset()
- Used for maintaining the reference counting when trying to do DEF/USE in
the write to stream method.
-
writeToStream(int)
- Prints the formatted contents of this node to the given stream.
IndexedFaceSet
public IndexedFaceSet()
- Default Constructor. Creates a default IndexedFaceSet
IndexedFaceSet
public IndexedFaceSet(boolean ccw,
int colorIndex[],
int coordIndex[],
boolean colorPerVertex,
boolean convex,
float creaseAngle,
int normalIndex[],
boolean normalPerVertex,
boolean solid,
int texCoordIndex[])
- Constructor to use when you want to supply non-default values for
color and coordinate indexes and per vertex coloring.
- Parameters:
- ccw - True for Counter Clockwise ordering of the vertexes.
- colorIndex - Array of indicies of the colors in the color field
- coordIndex - Array of indicies of the coordinates in the coord field
- colorPerVertex - True will turn on colors being assigned per vertex
rather than per face.
- convex - True if this faceset is a convex hull
- creaseAngle - The angle in radians below which smooth shading is used
- normalIndex - Array of indicies of the vectors in the normal field
- normalPerVertex - True will turn on assinging a normal per vertex
rather than per face.
- solid - True if this is a solid object
- texCoordIndex - Array of indicies of the texture coordinates in the
texCoord field
cleanup
public void cleanup()
- Call when about to remove the node from the scenegraph.
- Overrides:
- cleanup in class VrmlObject
writeReset
public void writeReset()
- Used for maintaining the reference counting when trying to do DEF/USE in
the write to stream method.
- Overrides:
- writeReset in class VrmlObject
writeToStream
public void writeToStream(int indent)
- Prints the formatted contents of this node to the given stream.
- Parameters:
- indent - The number of spaces to indent this node in the string
- Overrides:
- writeToStream in class VrmlObject
set_color
public void set_color(Color color)
- Set the color node to be associated with this node
- Parameters:
- color - A valid JVerge color node or null to remove the current.
get_color
public Color get_color()
- Get the currently set Color node
- Returns:
- The current color node or null if not set.
set_coord
public void set_coord(Coordinate coord)
- Set the Coordinate node to be associated with this node
- Parameters:
- color - A valid JVerge coordinate node or null to remove the current.
get_coord
public Coordinate get_coord()
- Get the currently set Coordinate node
- Returns:
- The current coordinate node or null if not set.
set_normal
public void set_normal(Normal normal)
- Set the Normal node to be associated with this node
- Parameters:
- color - A valid JVerge Normal node or null to remove the current.
get_normal
public Normal get_normal()
- Get the currently set Normal node
- Returns:
- The current normal node or null if not set.
set_texCoord
public void set_texCoord(TextureCoordinate texCoord)
- Set the TextureCoordinate node to be associated with this node
- Parameters:
- color - A valid JVerge TextureCoordinate node or null to
remove the current.
get_texCoord
public TextureCoordinate get_texCoord()
- Get the currently set TextureCoordinate node
- Returns:
- The current TextureCoordinate node or null if not set.
get_ccw
public boolean get_ccw()
- Get the value of the ccw field.
- Returns:
- true if counter clockwise ordering is true. False if not
set_colorIndex
public void set_colorIndex(int vals[])
- Set the indexes into the color field that are used in colouring
the object
- Parameters:
- vals - The list of indexes to be used
get_colorIndex
public int[] get_colorIndex()
- Get the list of colour indexes already being used.
- Returns:
- The current list
get_colorPerVertex
public boolean get_colorPerVertex()
- Are colors being applied per vertex or per face?.
- Returns:
- true if prevertex colors are is true. False if not
get_convex
public boolean get_convex()
- Does the face set section represent a convex hull shape?
- Returns:
- True if it is convex, false if not.
set_coordIndex
public void set_coordIndex(int vals[])
- Set the indexes into the coordinate field that are used
creatingthe object
- Parameters:
- vals - The list of indexes to be used
get_coordIndex
public int[] get_coordIndex()
- Get the list of coord indexes already being used.
- Returns:
- The current list
get_creaseAngle
public float get_creaseAngle()
- Get the value of the creaseAngle field.
- Returns:
- The angle in radians that shoiuld be the max for smooth
shading.
set_normalIndex
public void set_normalIndex(int vals[])
- Set the indexes into the Normal field that are used
- Parameters:
- vals - The list of indexes to be used
get_normalIndex
public int[] get_normalIndex()
- Get the list of normal indexes already being used.
- Returns:
- The current list
get_normalPerVertex
public boolean get_normalPerVertex()
- Are normals being applied per vertex or per face?.
- Returns:
- true if prevertex normals are is true. False if not
get_solid
public boolean get_solid()
- Get the value of the solid field. This is how the object knows to
do backface culling of solid obejcts
- Returns:
- true if the object is regarded as solid. False if not
set_texCoordIndex
public void set_texCoordIndex(int vals[])
- Set the indexes into the texture coordinate field that are used
in texturing the object
- Parameters:
- vals - The list of indexes to be used
get_texCoordIndex
public int[] get_texCoordIndex()
- Get the list of texture coordinate indexes already being used.
- Returns:
- The current list
clone
public Object clone()
- Make a clone of this object
- Returns:
- A deep clone copy of this object
- Overrides:
- clone in class VrmlObject
All Packages Class Hierarchy This Package Previous Next Index