co.uk.sentinelweb.ps
Class Shape

java.lang.Object
  extended by co.uk.sentinelweb.ps.Shape

public class Shape
extends java.lang.Object

Shape drawing methods mapping textures onto the shapes is of the form float[][] ([start, end][x, y])

Author:
robm

Nested Class Summary
 class Shape.Cube
           
 class Shape.RandomShape
           
 
Constructor Summary
Shape()
           
 
Method Summary
 void drawSegment(float length, float angle)
           
 void drawSegment(float length, float angle, float[][] texCoords)
           
 void drawSquare(float w, float h)
           
 void drawSquare(float w, float h, float[][] texCoords)
           
 void drawSquareZero(float w, float h)
           
 void drawSquareZero(float w, float h, float[][] texCoords)
           
 void drawTorus(float r, float R, int nsides, int rings)
           
 void plotData(java.util.ArrayList<java.lang.Integer> data, float dwidth, float dheight, float squareSize, boolean z)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Shape

public Shape()
Method Detail

drawSquareZero

public void drawSquareZero(float w,
                           float h)

drawSquareZero

public void drawSquareZero(float w,
                           float h,
                           float[][] texCoords)

drawSquare

public void drawSquare(float w,
                       float h)

drawSquare

public void drawSquare(float w,
                       float h,
                       float[][] texCoords)

drawSegment

public void drawSegment(float length,
                        float angle)

drawSegment

public void drawSegment(float length,
                        float angle,
                        float[][] texCoords)

plotData

public void plotData(java.util.ArrayList<java.lang.Integer> data,
                     float dwidth,
                     float dheight,
                     float squareSize,
                     boolean z)

drawTorus

public void drawTorus(float r,
                      float R,
                      int nsides,
                      int rings)