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

Constructor Index

 o IndexedFaceSet()
Default Constructor.
 o 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.

Method Index

 o cleanup()
Call when about to remove the node from the scenegraph.
 o clone()
Make a clone of this object
 o get_ccw()
Get the value of the ccw field.
 o get_color()
Get the currently set Color node
 o get_colorIndex()
Get the list of colour indexes already being used.
 o get_colorPerVertex()
Are colors being applied per vertex or per face?.
 o get_convex()
Does the face set section represent a convex hull shape?
 o get_coord()
Get the currently set Coordinate node
 o get_coordIndex()
Get the list of coord indexes already being used.
 o get_creaseAngle()
Get the value of the creaseAngle field.
 o get_normal()
Get the currently set Normal node
 o get_normalIndex()
Get the list of normal indexes already being used.
 o get_normalPerVertex()
Are normals being applied per vertex or per face?.
 o get_solid()
Get the value of the solid field.
 o get_texCoord()
Get the currently set TextureCoordinate node
 o get_texCoordIndex()
Get the list of texture coordinate indexes already being used.
 o set_color(Color)
Set the color node to be associated with this node
 o set_colorIndex(int[])
Set the indexes into the color field that are used in colouring the object
 o set_coord(Coordinate)
Set the Coordinate node to be associated with this node
 o set_coordIndex(int[])
Set the indexes into the coordinate field that are used creatingthe object
 o set_normal(Normal)
Set the Normal node to be associated with this node
 o set_normalIndex(int[])
Set the indexes into the Normal field that are used
 o set_texCoord(TextureCoordinate)
Set the TextureCoordinate node to be associated with this node
 o set_texCoordIndex(int[])
Set the indexes into the texture coordinate field that are used in texturing the object
 o writeReset()
Used for maintaining the reference counting when trying to do DEF/USE in the write to stream method.
 o writeToStream(int)
Prints the formatted contents of this node to the given stream.

Constructors

 o IndexedFaceSet
 public IndexedFaceSet()
Default Constructor. Creates a default IndexedFaceSet

 o 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

Methods

 o cleanup
 public void cleanup()
Call when about to remove the node from the scenegraph.

Overrides:
cleanup in class VrmlObject
 o 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
 o 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
 o 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.
 o get_color
 public Color get_color()
Get the currently set Color node

Returns:
The current color node or null if not set.
 o 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.
 o get_coord
 public Coordinate get_coord()
Get the currently set Coordinate node

Returns:
The current coordinate node or null if not set.
 o 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.
 o get_normal
 public Normal get_normal()
Get the currently set Normal node

Returns:
The current normal node or null if not set.
 o 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.
 o get_texCoord
 public TextureCoordinate get_texCoord()
Get the currently set TextureCoordinate node

Returns:
The current TextureCoordinate node or null if not set.
 o get_ccw
 public boolean get_ccw()
Get the value of the ccw field.

Returns:
true if counter clockwise ordering is true. False if not
 o 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
 o get_colorIndex
 public int[] get_colorIndex()
Get the list of colour indexes already being used.

Returns:
The current list
 o 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
 o 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.
 o 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
 o get_coordIndex
 public int[] get_coordIndex()
Get the list of coord indexes already being used.

Returns:
The current list
 o 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.
 o 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
 o get_normalIndex
 public int[] get_normalIndex()
Get the list of normal indexes already being used.

Returns:
The current list
 o 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
 o 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
 o 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
 o get_texCoordIndex
 public int[] get_texCoordIndex()
Get the list of texture coordinate indexes already being used.

Returns:
The current list
 o 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