synergynetframework.appsystem.contentsystem.items.implementation.interfaces.shapes
Class TwoDShapeGeometry

java.lang.Object
  extended by synergynetframework.appsystem.contentsystem.items.implementation.interfaces.shapes.TwoDShapeGeometry
All Implemented Interfaces:
java.io.Serializable

public class TwoDShapeGeometry
extends java.lang.Object
implements java.io.Serializable

Represents 2D shape geometry.

Author:
dcs0ah1
See Also:
Serialized Form

Nested Class Summary
 class TwoDShapeGeometry.ColourRGBA
          Components should be in the range 0..1
 class TwoDShapeGeometry.FloatPoint
          The Class FloatPoint.
 class TwoDShapeGeometry.FloatVector
          The Class FloatVector.
 class TwoDShapeGeometry.TriangleIndexes
          The Class TriangleIndexes.
 
Constructor Summary
TwoDShapeGeometry()
           
 
Method Summary
 TwoDShapeGeometry.ColourRGBA[] getColors()
          Gets the colors.
 TwoDShapeGeometry.FloatVector[] getNormals()
          Gets the normals.
 TwoDShapeGeometry.FloatPoint[] getTexCoords()
          Gets the tex coords.
 TwoDShapeGeometry.TriangleIndexes[] getTriIndexes()
          Gets the tri indexes.
 TwoDShapeGeometry.FloatVector[] getTriVertexes()
          Gets the tri vertexes.
static TwoDShapeGeometry read(java.io.InputStream is)
          Read.
 void setColors(TwoDShapeGeometry.ColourRGBA[] colors)
          Sets the colors.
 void setNormals(TwoDShapeGeometry.FloatVector[] normals)
          Sets the normals.
 void setTexCoords(TwoDShapeGeometry.FloatPoint[] texCoords)
          Sets the tex coords.
 void setTriIndexes(TwoDShapeGeometry.TriangleIndexes[] ti)
          Sets the tri indexes.
 void setTriVertexes(TwoDShapeGeometry.FloatVector[] triVertexes)
          Sets the tri vertexes.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TwoDShapeGeometry

public TwoDShapeGeometry()
Method Detail

read

public static TwoDShapeGeometry read(java.io.InputStream is)
                              throws java.io.IOException
Read.

Parameters:
is - the is
Returns:
the two d shape geometry
Throws:
java.io.IOException - Signals that an I/O exception has occurred.

getColors

public TwoDShapeGeometry.ColourRGBA[] getColors()
Gets the colors.

Returns:
the colors

getNormals

public TwoDShapeGeometry.FloatVector[] getNormals()
Gets the normals.

Returns:
the normals

getTexCoords

public TwoDShapeGeometry.FloatPoint[] getTexCoords()
Gets the tex coords.

Returns:
the tex coords

getTriIndexes

public TwoDShapeGeometry.TriangleIndexes[] getTriIndexes()
Gets the tri indexes.

Returns:
the tri indexes

getTriVertexes

public TwoDShapeGeometry.FloatVector[] getTriVertexes()
Gets the tri vertexes.

Returns:
the tri vertexes

setColors

public void setColors(TwoDShapeGeometry.ColourRGBA[] colors)
Sets the colors.

Parameters:
colors - the new colors

setNormals

public void setNormals(TwoDShapeGeometry.FloatVector[] normals)
Sets the normals.

Parameters:
normals - the new normals

setTexCoords

public void setTexCoords(TwoDShapeGeometry.FloatPoint[] texCoords)
Sets the tex coords.

Parameters:
texCoords - the new tex coords

setTriIndexes

public void setTriIndexes(TwoDShapeGeometry.TriangleIndexes[] ti)
Sets the tri indexes.

Parameters:
ti - the new tri indexes

setTriVertexes

public void setTriVertexes(TwoDShapeGeometry.FloatVector[] triVertexes)
Sets the tri vertexes.

Parameters:
triVertexes - the new tri vertexes