sexi.comp
Class Crown

java.lang.Object
  |
  +--sexi.comp.Crown
All Implemented Interfaces:
CrownFigure, java.io.Serializable

public class Crown
extends java.lang.Object
implements CrownFigure, java.io.Serializable

This class represent a crown layer

See Also:
Serialized Form

Field Summary
(package private)  java.awt.Color color
           
(package private)  float horLen
           
(package private)  float porosity
           
(package private)  float truncVal
           
(package private)  float verLen
           
 
Constructor Summary
Crown()
           
Crown(CrownFigure c)
           
 
Method Summary
 boolean contains(java.awt.geom.Point2D position, Point3f p, float treeHeight)
           
 boolean contains(Point3f p)
           
 float getBotVerLen()
           
 float getCenterHeight()
           
 float getCenterRasio()
           
 java.awt.Color getColor()
           
 float getExtentionRatio()
           
 float getHeight()
           
 float getHorLength()
           
 java.awt.geom.Point2D getLocation()
           
 float getPorosity()
           
(package private) static float getRadian(float deg)
           
 Point3f[] getRelatifBoundaryPoint()
           
 float getTopArea()
           
 float getTopVerLen()
           
 float getTruncatedValue()
           
 float getVerExt()
          extension length (from center to bottom of crown);
 float getVerLength()
          Set proportion scale from the real horizontal and vertical length of crown
 float getVerRadius()
          top shape length (from center to top of crown);
 float getWidth()
           
(package private) static float getY(float x, float z, float r, float h)
           
 void setCenter(float x, float y, float z)
           
 void setCenterHeight(float f)
           
 void setColor(java.awt.Color c)
           
 void setCrownFigure(CrownFigure cf)
           
 void setDimension(float ver, float hor)
           
 void setHorLength(float d)
           
 void setLocation(java.awt.geom.Point2D p)
           
 void setPorosity(float d)
           
 void setTruncatedValue(float d)
           
 void setVerExt(float d)
           
 void setVerLength(float d)
           
 void setVerRad(float d)
           
 void setVerRadius(float d)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

horLen

float horLen

verLen

float verLen

truncVal

float truncVal

color

java.awt.Color color

porosity

float porosity
Constructor Detail

Crown

public Crown()

Crown

public Crown(CrownFigure c)
Method Detail

contains

public boolean contains(java.awt.geom.Point2D position,
                        Point3f p,
                        float treeHeight)

contains

public boolean contains(Point3f p)
Specified by:
contains in interface CrownFigure

getTopArea

public float getTopArea()

setCrownFigure

public void setCrownFigure(CrownFigure cf)

getWidth

public float getWidth()
Specified by:
getWidth in interface CrownFigure

getHeight

public float getHeight()
Specified by:
getHeight in interface CrownFigure

setDimension

public void setDimension(float ver,
                         float hor)

setVerLength

public void setVerLength(float d)

setVerRad

public void setVerRad(float d)

setHorLength

public void setHorLength(float d)

getVerLength

public float getVerLength()
Set proportion scale from the real horizontal and vertical length of crown

getTopVerLen

public float getTopVerLen()

getBotVerLen

public float getBotVerLen()
Specified by:
getBotVerLen in interface CrownFigure

getHorLength

public float getHorLength()

getCenterRasio

public float getCenterRasio()

setTruncatedValue

public void setTruncatedValue(float d)

getTruncatedValue

public float getTruncatedValue()
Specified by:
getTruncatedValue in interface CrownFigure

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getVerExt

public float getVerExt()
extension length (from center to bottom of crown);

getExtentionRatio

public float getExtentionRatio()

getVerRadius

public float getVerRadius()
top shape length (from center to top of crown);
Specified by:
getVerRadius in interface CrownFigure

setVerRadius

public void setVerRadius(float d)

setVerExt

public void setVerExt(float d)

setPorosity

public void setPorosity(float d)

getPorosity

public float getPorosity()
Specified by:
getPorosity in interface CrownFigure

setColor

public void setColor(java.awt.Color c)

getColor

public java.awt.Color getColor()
Specified by:
getColor in interface CrownFigure

setLocation

public void setLocation(java.awt.geom.Point2D p)

getLocation

public java.awt.geom.Point2D getLocation()
Specified by:
getLocation in interface CrownFigure

setCenter

public void setCenter(float x,
                      float y,
                      float z)

setCenterHeight

public void setCenterHeight(float f)

getCenterHeight

public float getCenterHeight()
Specified by:
getCenterHeight in interface CrownFigure

getRelatifBoundaryPoint

public Point3f[] getRelatifBoundaryPoint()

getY

static float getY(float x,
                  float z,
                  float r,
                  float h)

getRadian

static float getRadian(float deg)