org.metasyntactic.graphics.shapes
Class Stairs

java.lang.Object
  |
  +--org.metasyntactic.graphics.shapes.Shape
        |
        +--org.metasyntactic.graphics.shapes.CartesianShape
              |
              +--org.metasyntactic.graphics.shapes.ReflectiveShape
                    |
                    +--org.metasyntactic.graphics.shapes.VolumetricShape
                          |
                          +--org.metasyntactic.graphics.shapes.PolygonalVolume
                                |
                                +--org.metasyntactic.graphics.shapes.Stairs
Direct Known Subclasses:
EastWestStairs, NorthSouthStairs, SouthNorthStairs, WestEastStairs

public abstract class Stairs
extends PolygonalVolume


Constructor Summary
Stairs()
          Creates a new instance of Stairs
 
Method Summary
 Intersection getIntersection(Ray ray, double tolerance)
           
 java.util.List getPolygons()
           
 int getSteps()
          Getter for property steps.
 void setSteps(int steps)
          Setter for property steps.
 
Methods inherited from class org.metasyntactic.graphics.shapes.PolygonalVolume
getIntersections
 
Methods inherited from class org.metasyntactic.graphics.shapes.VolumetricShape
getDepth, getHeight, getWidth, setDepth, setHeight, setWidth
 
Methods inherited from class org.metasyntactic.graphics.shapes.ReflectiveShape
getShadeModel, setShadeModel
 
Methods inherited from class org.metasyntactic.graphics.shapes.CartesianShape
getIntersection, getPosition, setPosition
 
Methods inherited from class org.metasyntactic.graphics.shapes.Shape
getColor, setColor, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Stairs

public Stairs()
Creates a new instance of Stairs

Method Detail

getPolygons

public java.util.List getPolygons()
Specified by:
getPolygons in class PolygonalVolume

getSteps

public int getSteps()
Getter for property steps.

Returns:
Value of property steps.

setSteps

public void setSteps(int steps)
Setter for property steps.

Parameters:
steps - New value of property steps.

getIntersection

public Intersection getIntersection(Ray ray,
                                    double tolerance)