|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.iver.cit.javacad.util.GisModelCurveCalculator
This class allows to obtain arcs and circles given by the most usual parameters, in a Gis geometry model. In this model, an arc or a circle is given by a set of points that defines it shape
Constructor Summary | |
GisModelCurveCalculator()
|
Method Summary | |
static java.awt.geom.Point2D[] |
calculateGisModelArc(java.awt.geom.Point2D c,
double r,
double sa,
double ea)
This method calculates an array of Point2D that represents an arc. |
static java.awt.geom.Point2D[] |
calculateGisModelBulge(java.awt.geom.Point2D[] newPts,
double[] bulges)
This method applies an array of bulges to an array of Point2D that defines a polyline. |
static java.awt.geom.Point2D[] |
calculateGisModelCircle(java.awt.geom.Point2D c,
double r)
This method calculates an array of Point2D that represents a circle. |
static java.awt.geom.Point2D[] |
calculateGisModelEllipse(java.awt.geom.Point2D center,
java.awt.geom.Point2D majorAxisVector,
double axisRatio,
double initAngle,
double endAngle)
This method calculates an array of Point2D that represents a ellipse. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GisModelCurveCalculator()
Method Detail |
public static java.awt.geom.Point2D[] calculateGisModelCircle(java.awt.geom.Point2D c, double r)
c
- Point2D that represents the center of the circler
- double value that represents the radius of the circle
public static java.awt.geom.Point2D[] calculateGisModelEllipse(java.awt.geom.Point2D center, java.awt.geom.Point2D majorAxisVector, double axisRatio, double initAngle, double endAngle)
center
- Point2D that represents the center of the ellipsemajorAxisVector
- Point2D that represents the vector for the major axisaxisRatio
- double value that represents the axis ratioinitAngle
- double value that represents the start angle of the ellipse arcendAngle
- double value that represents the end angle of the ellipse arc
public static java.awt.geom.Point2D[] calculateGisModelArc(java.awt.geom.Point2D c, double r, double sa, double ea)
c
- Point2D that represents the center of the arcr
- double value that represents the radius of the arcsa
- double value that represents the start angle of the arcea
- double value that represents the end angle of the arc
public static java.awt.geom.Point2D[] calculateGisModelBulge(java.awt.geom.Point2D[] newPts, double[] bulges)
newPts
- Base points of the polylinebulges
- Array of bulge parameters
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |