j3d.org Code

org.j3d.geom.hanim
Class HAnimObject

java.lang.Object
  extended by org.j3d.geom.hanim.HAnimObject
Direct Known Subclasses:
HAnimDisplacer, HAnimHumanoid, HAnimJoint, HAnimSegment, HAnimSite

public abstract class HAnimObject
extends java.lang.Object

Common object functionality for all objects that implement the H-Anim spec.

Version:
$Revision: 1.3 $
Author:
Justin Couch

Field Summary
protected  ErrorReporter errorReporter
          Local reporter to put errors in
protected  java.lang.String name
          The name of the object
 
Constructor Summary
protected HAnimObject()
          Initialize a new instance of the HAnimObject.
 
Method Summary
 java.lang.String getName()
          Get the currently set name associated with this object.
 void setErrorReporter(ErrorReporter reporter)
          Register an error reporter with the object so that any errors generated by the object can be reported in a nice, pretty fashion.
 void setName(java.lang.String n)
          Set the new name to associate with this object.
protected static void updateMatrix(float[] center, float[] rotation, float[] scale, float[] scaleOrientation, float[] translation, javax.vecmath.Matrix4f output)
          Calculate transforms needed to handle VRML semantics and place the results in the matrix variable of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
The name of the object


errorReporter

protected ErrorReporter errorReporter
Local reporter to put errors in

Constructor Detail

HAnimObject

protected HAnimObject()
Initialize a new instance of the HAnimObject.

Method Detail

setErrorReporter

public void setErrorReporter(ErrorReporter reporter)
Register an error reporter with the object so that any errors generated by the object can be reported in a nice, pretty fashion. Setting a value of null will clear the currently set reporter. If one is already set, the new value replaces the old.

Parameters:
reporter - The instance to use or null

setName

public void setName(java.lang.String n)
Set the new name to associate with this object. A null value will remove the currently set name.

Parameters:
n - The new name value to set

getName

public java.lang.String getName()
Get the currently set name associated with this object. If none is set, return null.

Returns:
The current name string, or null

updateMatrix

protected static void updateMatrix(float[] center,
                                   float[] rotation,
                                   float[] scale,
                                   float[] scaleOrientation,
                                   float[] translation,
                                   javax.vecmath.Matrix4f output)
Calculate transforms needed to handle VRML semantics and place the results in the matrix variable of this class. formula: T x C x R x SR x S x -SR x -C


j3d.org Code

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