类 CylinderShape
- java.lang.Object
-
- org.meteoinfo.shape.Shape
-
- org.meteoinfo.shape.CylinderShape
-
- 所有已实现的接口:
java.lang.Cloneable
public class CylinderShape extends Shape
-
-
构造器概要
构造器 构造器 说明 CylinderShape()ConstructorCylinderShape(java.util.List<PointZ> points, double radius)ConstructorCylinderShape(PointZ p1, PointZ p2, double radius)Constructor
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 doublegetDiameter()Get diameterdoublegetHeight()Get cylinder heightPointZgetPoint(int i)Get a vertex pointjava.util.List<PointZ>getPoints()Get vertex pointsdoublegetRadius()Get radiusShapeTypesgetShapeType()Get shape typevoidsetPoints(java.util.List<? extends PointD> value)Set vertex pointsvoidsetRadius(double value)Set radiusorg.locationtech.jts.geom.GeometrytoGeometry(org.locationtech.jts.geom.GeometryFactory factory)To geometry method-
从类继承的方法 org.meteoinfo.shape.Shape
addVertice, buffer, clone, cloneValue, contains, convexHull, coveredBy, covers, crosses, difference, disjoint, equals, geometry2Shape, getExtent, getLegendIndex, getValue, intersection, intersects, isEditing, isSelected, isVisible, move, moveVertice, overlaps, reform, removeVerice, reverse, setEditing, setExtent, setLegendIndex, setSelected, setValue, setVisible, split, symDifference, toGeometry, touches, union, within
-
-
-
-
构造器详细资料
-
CylinderShape
public CylinderShape()
Constructor
-
CylinderShape
public CylinderShape(java.util.List<PointZ> points, double radius)
Constructor- 参数:
points- Pointsradius- Radius
-
-
方法详细资料
-
getShapeType
public ShapeTypes getShapeType()
从类复制的说明:ShapeGet shape type- 指定者:
getShapeType在类中Shape- 返回:
- Shape type
-
toGeometry
public org.locationtech.jts.geom.Geometry toGeometry(org.locationtech.jts.geom.GeometryFactory factory)
从类复制的说明:ShapeTo geometry method- 指定者:
toGeometry在类中Shape- 参数:
factory- GeometryFactory- 返回:
- Geometry
-
getPoints
public java.util.List<PointZ> getPoints()
Get vertex points
-
getPoint
public PointZ getPoint(int i)
Get a vertex point- 参数:
i- The index- 返回:
- A vertex point
-
setPoints
public void setPoints(java.util.List<? extends PointD> value)
Set vertex points
-
getRadius
public double getRadius()
Get radius- 返回:
- Radius
-
setRadius
public void setRadius(double value)
Set radius- 参数:
value- Radius
-
getDiameter
public double getDiameter()
Get diameter- 返回:
- Diameter
-
getHeight
public double getHeight()
Get cylinder height- 返回:
- Cylinder height
-
-