edu.mines.jtk.sgl
Class LineGroup

java.lang.Object
  extended by edu.mines.jtk.sgl.Node
      extended by edu.mines.jtk.sgl.Group
          extended by edu.mines.jtk.sgl.LineGroup

public class LineGroup
extends Group

A group of connected line segments.

Version:
2010.01.10
Author:
Dave Hale, Colorado School of Mines

Constructor Summary
LineGroup(float[] xyz)
          Constructs a line group with specified coordinates.
LineGroup(float[] xyz, float[] rgb)
          Constructs a line group with specified coordinates and colors.
 
Method Summary
 
Methods inherited from class edu.mines.jtk.sgl.Group
addChild, computeBoundingSphere, countChildren, cull, draw, getAttributeBits, getChildren, pick, removeChild
 
Methods inherited from class edu.mines.jtk.sgl.Node
countParents, cullApply, cullBegin, cullEnd, dirtyBoundingSphere, dirtyDraw, drawApply, drawBegin, drawEnd, getBoundingSphere, getParents, getStates, getWorld, isSelected, pickApply, pickBegin, pickEnd, selectedChanged, setSelected, setStates
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineGroup

public LineGroup(float[] xyz)
Constructs a line group with specified coordinates.

The (x,y,z) coordinates of points are packed into the specified array xyz. The number of points is np = xyz.length/3.

Parameters:
xyz - array[3*np] of packed point coordinates.

LineGroup

public LineGroup(float[] xyz,
                 float[] rgb)
Constructs a line group with specified coordinates and colors.

The (x,y,z) coordinates of points are packed into the specified array xyz. The number of points is np = xyz.length/3.

The (r,g,b) components of colors are packed into the specified array rgb. The number of colors equals the number of points.

Parameters:
xyz - array[3*np] of packed point coordinates.
rgb - array[3*np] of packed color components.