All Packages Class Hierarchy This Package Previous Next Index
Class vlc.vrml.internal.geometry.IndexedLineSet
java.lang.Object
|
+----vlc.vrml.generic.geometry.VrmlObject
|
+----vlc.vrml.internal.geometry.VrmlObject
|
+----vlc.vrml.internal.geometry.Geometry
|
+----vlc.vrml.internal.geometry.IndexedLineSet
- public class IndexedLineSet
- 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 IndexedLineSet node please see the
VRML 97 IndexedLineSet specification
- Author:
- Justin Couch justin@vlc.com.au
-
IndexedLineSet()
- Default Constructor.
-
IndexedLineSet(Browser)
- Default Constructor when you wish to supply your own Browser reference.
-
IndexedLineSet(Browser, int[], int[], boolean)
- Constructor to use when you want to supply non-default values for
color and coordinate indexes and per vertex coloring.
-
IndexedLineSet(int[], int[], boolean)
- 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_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_coord()
- Get the currently set Coordinate node
-
get_coordIndex()
- Get the list of coord 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
-
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.
IndexedLineSet
public IndexedLineSet()
- Default Constructor. Creates a default IndexedLineSet
IndexedLineSet
public IndexedLineSet(Browser b)
- Default Constructor when you wish to supply your own Browser reference.
Creates a default IndexedLineSet
IndexedLineSet
public IndexedLineSet(int colorIndex[],
int coordIndex[],
boolean colorPerVertex)
- Constructor to use when you want to supply non-default values for
color and coordinate indexes and per vertex coloring.
- Parameters:
- 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.
IndexedLineSet
public IndexedLineSet(Browser b,
int colorIndex[],
int coordIndex[],
boolean colorPerVertex)
- Constructor to use when you want to supply non-default values for
color and coordinate indexes and per vertex coloring. You need to supply
a Browser reference.
- Parameters:
- b - A valid browser reference
- 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.
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_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
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
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