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
 
            | 
 
 
 
| Methods inherited from class java.lang.Object | 
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
horLen
float horLen
verLen
float verLen
truncVal
float truncVal
color
java.awt.Color color
porosity
float porosity
Crown
public Crown()
Crown
public Crown(CrownFigure c)
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)