j3d.org Code

org.j3d.geom
Class CharacterData

java.lang.Object
  extended by org.j3d.geom.CharacterData

public class CharacterData
extends java.lang.Object

Data-holder class representing a single polygonalised character that has been created by the CharacterCreator.

Character data is held as a single indexed triangle array representation and is relative to it's own local coordinate system. Character data is presented in the 2D X-Z plane with the normal pointing along the positive Z axis.

Version:
$Revision: 1.3 $
Author:
Justin Couch

Field Summary
 java.awt.geom.Rectangle2D.Float bounds
          The 2D bounds of the character - in the X,Y plane.
 java.nio.FloatBuffer coordinates
          List of vertices needed to generate the text.
 java.nio.IntBuffer coordIndex
          The list of indices creating the triangles representing the text
 int numIndex
          The number of valid coordinate indices in the list
 float scale
          The generic scale that was applied to get these bounds
 
Constructor Summary
CharacterData()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

coordinates

public java.nio.FloatBuffer coordinates
List of vertices needed to generate the text. Always a 3D list.


numIndex

public int numIndex
The number of valid coordinate indices in the list


coordIndex

public java.nio.IntBuffer coordIndex
The list of indices creating the triangles representing the text


bounds

public java.awt.geom.Rectangle2D.Float bounds
The 2D bounds of the character - in the X,Y plane.


scale

public float scale
The generic scale that was applied to get these bounds

Constructor Detail

CharacterData

public CharacterData()

j3d.org Code

Latest Info from http://code.j3d.org/
Copyright © 2001 - j3d.org