lt.monarch.math.geom
Class GridPolygon3D

java.lang.Object
  extended by lt.monarch.math.geom.Polygon2D
      extended by lt.monarch.math.geom.Polygon3D
          extended by lt.monarch.math.geom.GridPolygon3D
All Implemented Interfaces:
java.awt.Shape, java.io.Serializable, Primitive, Primitive2D, Primitive3D

public class GridPolygon3D
extends Polygon3D

A class for 3d chart grid plane which can be assigned with a number of lines.

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.math.geom.Polygon3D
colors, zpoints
 
Fields inherited from class lt.monarch.math.geom.Polygon2D
isClosed, path, xpoints, ypoints
 
Constructor Summary
Constructor and Description
GridPolygon3D()
           
 
Method Summary
Modifier and Type Method and Description
 void addLine3D(Line3D line)
          Adds a line.
 void dispose()
          Disposes object
 Point3D getChartCenter()
          Retrieves a chart center point.
 java.util.List<Line3D> getLines()
          Retrieves a list of lines.
 Vector3d getNormal()
           
 void setChartCenter(Point3D chartCenter)
          Sets a chart center.
 void setNormal(Vector3d normal)
           
 
Methods inherited from class lt.monarch.math.geom.Polygon3D
addPoint, addPoint, addPoint, addPoints, addPoints, clear, clone, close, get2Dcopy, get3DPoints, getPath, getPoint, getSelectionId, getZpoints, setSelectionID, toString, transformTo2D, transformTo2DTriangles
 
Methods inherited from class lt.monarch.math.geom.Polygon2D
addPoint, addPoints, addPoints, contains, contains, contains, contains, finalize, get2DPoints, getBounds, getBounds2D, getPathIterator, getPathIterator, getPoint, getXpoints, getXPoints, getYpoints, getYPoints, intersects, intersects, isEmpty, isInList, size
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface lt.monarch.math.geom.Primitive
getBounds2D
 
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getBounds, getPathIterator, getPathIterator, intersects, intersects
 

Constructor Detail

GridPolygon3D

public GridPolygon3D()
Method Detail

addLine3D

public void addLine3D(Line3D line)
Adds a line.

Parameters:
line - - the line

getLines

public java.util.List<Line3D> getLines()
Retrieves a list of lines.

Returns:
- the list of lines

setChartCenter

public void setChartCenter(Point3D chartCenter)
Sets a chart center.

Parameters:
chartCenter - chart center point

getChartCenter

public Point3D getChartCenter()
Retrieves a chart center point.


dispose

public void dispose()
Description copied from interface: Primitive2D
Disposes object

Specified by:
dispose in interface Primitive
Specified by:
dispose in interface Primitive2D
Overrides:
dispose in class Polygon3D

getNormal

public Vector3d getNormal()

setNormal

public void setNormal(Vector3d normal)