com.jme.scene.geometryinstancing.instance
Class GeometryInstanceAttributes

java.lang.Object
  extended by com.jme.scene.geometryinstancing.instance.GeometryInstanceAttributes
Direct Known Subclasses:
GeometryBatchInstanceAttributes

public class GeometryInstanceAttributes
extends java.lang.Object

GeometryInstanceAttributes specifies the attributes for a GeometryInstance.

Author:
Patrik Lindegrén

Field Summary
protected  Matrix4f mtNormal
           
protected  Matrix4f mtWorld
           
protected  Quaternion rotation
           
protected  Vector3f scale
           
protected  Vector3f translation
           
 
Constructor Summary
GeometryInstanceAttributes(Vector3f translation, Vector3f scale, Quaternion rotation)
           
 
Method Summary
 void buildMatrices()
          buildMatrices updates the world and rotation matrix
 Matrix4f getNormalMatrix()
           
 Quaternion getRotation()
           
 Vector3f getScale()
           
 Vector3f getTranslation()
           
 Matrix4f getWorldMatrix()
           
 void setRotation(Quaternion rotation)
          After using the setRotation function, user needs to call the buildMatrices function
 void setScale(Vector3f scale)
          After using the setScale function, user needs to call the buildMatrices function
 void setTranslation(Vector3f translation)
          After using the setTranslation function, user needs to call the buildMatrices function
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

translation

protected Vector3f translation

scale

protected Vector3f scale

rotation

protected Quaternion rotation

mtNormal

protected Matrix4f mtNormal

mtWorld

protected Matrix4f mtWorld
Constructor Detail

GeometryInstanceAttributes

public GeometryInstanceAttributes(Vector3f translation,
                                  Vector3f scale,
                                  Quaternion rotation)
Method Detail

buildMatrices

public void buildMatrices()
buildMatrices updates the world and rotation matrix


getScale

public Vector3f getScale()

setScale

public void setScale(Vector3f scale)
After using the setScale function, user needs to call the buildMatrices function

Parameters:
scale -

getTranslation

public Vector3f getTranslation()

setTranslation

public void setTranslation(Vector3f translation)
After using the setTranslation function, user needs to call the buildMatrices function

Parameters:
translation -

getRotation

public Quaternion getRotation()

setRotation

public void setRotation(Quaternion rotation)
After using the setRotation function, user needs to call the buildMatrices function

Parameters:
rotation -

getWorldMatrix

public Matrix4f getWorldMatrix()

getNormalMatrix

public Matrix4f getNormalMatrix()