Class PolygonModel
- java.lang.Object
-
- nl.colorize.multimedialib.graphics.PolygonModel
-
public final class PolygonModel extends java.lang.ObjectAn instance of a polygon mesh that can added to the stage and displayed. Multiple models can share the same underlying mesh.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPolygonModel(java.util.UUID id, PolygonMesh mesh)protectedPolygonModel(PolygonMesh mesh)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)AnimationInfogetAnimation(java.lang.String name)java.util.UUIDgetId()PolygonMeshgetMesh()Point3DgetPosition()floatgetRotationAmount()floatgetRotationX()floatgetRotationY()floatgetRotationZ()floatgetScaleX()floatgetScaleY()floatgetScaleZ()inthashCode()voidsetPosition(float x, float y, float z)voidsetPosition(Point3D p)voidsetRotation(float x, float y, float z, float amount)voidsetScale(float scale)voidsetScale(float scaleX, float scaleY, float scaleZ)java.lang.StringtoString()
-
-
-
Constructor Detail
-
PolygonModel
protected PolygonModel(java.util.UUID id, PolygonMesh mesh)
-
PolygonModel
protected PolygonModel(PolygonMesh mesh)
-
-
Method Detail
-
getId
public java.util.UUID getId()
-
getMesh
public PolygonMesh getMesh()
-
getAnimation
public AnimationInfo getAnimation(java.lang.String name)
-
setPosition
public void setPosition(Point3D p)
-
setPosition
public void setPosition(float x, float y, float z)
-
getPosition
public Point3D getPosition()
-
setRotation
public void setRotation(float x, float y, float z, float amount)
-
getRotationX
public float getRotationX()
-
getRotationY
public float getRotationY()
-
getRotationZ
public float getRotationZ()
-
getRotationAmount
public float getRotationAmount()
-
setScale
public void setScale(float scaleX, float scaleY, float scaleZ)
-
setScale
public void setScale(float scale)
-
getScaleX
public float getScaleX()
-
getScaleY
public float getScaleY()
-
getScaleZ
public float getScaleZ()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-