|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Object com.supermap.data.Geometry com.supermap.data.Geometry3D com.supermap.data.GeoCylinder
public class GeoCylinder
圆台几何对象类,继承于 Geometry3D
类。
如果设置该类对象的底面圆的半径和顶面圆的半径相等,就是圆柱几何对象。
该类仅在 Windows、Linux 平台版本中支持。
注意:添加该类型的实例到三维场景的跟踪图层时,必须要先调用 getGeoModel()
方法使其按 GeoModel 的方式重新构建。具体使用方法可参见 GeoBox
类的范例程序。
构造方法摘要 | |
---|---|
GeoCylinder()
构造一个新的 GeoCylinder 对象。 |
|
GeoCylinder(GeoCylinder geoCylinder)
根据给定的 GeoCylinder 构造一个与其完全相同的新对象。 |
|
GeoCylinder(Point3D position,
double topRadius,
double bottomRadius,
double height)
根据指定的参数来构造一个 GeoCylinder 的新对象。 |
方法摘要 | |
---|---|
GeoCylinder |
clone()
返回当前 GeoCylinder 对象的一个拷贝。 |
void |
dispose()
释放该对象所占用的资源。 |
double |
getBottomRadius()
返回圆台几何对象底面圆的半径,单位为米。 |
double |
getHeight()
返回圆台几何对象的高度,单位为米。 |
GeoStyle |
getStyle()
该类不支持该方法。 |
double |
getTopRadius()
返回圆台几何对象顶面圆的半径,单位为米。 |
boolean |
hitTest(Point2D point,
double tolerance)
该类不支持该方法。 |
Geometry |
mirror(Point2D startPoint,
Point2D endPoint)
该类不支持该方法。 |
void |
resize(Rectangle2D bounds)
该类不支持该方法。 |
void |
rotate(Point2D basePoint,
double angle)
该类不支持该方法。 |
void |
setBottomRadius(double value)
设置圆台几何对象底面圆的半径,单位为米。 |
void |
setHeight(double value)
设置圆台几何对象的高度,单位为米。 |
void |
setStyle(GeoStyle value)
该类不支持该方法。 |
void |
setTopRadius(double value)
设置圆台几何对象顶面圆的半径,单位为米。 |
从类 com.supermap.data.Geometry3D 继承的方法 |
---|
convertToGeoModel3D, convertToGeoModel3D, getBoundingBox, getGeoModel, getInnerPoint3D, getPosition, getRotationX, getRotationY, getRotationZ, getScaleX, getScaleY, getScaleZ, getStyle3D, getVolume, offset, setPosition, setRotationX, setRotationY, setRotationZ, setScaleX, setScaleY, setScaleZ, setStyle3D |
从类 com.supermap.data.Geometry 继承的方法 |
---|
addCustomGeometryCreatedListener, fromXML, getBounds, getID, getInnerPoint, getType, getVariantID, isEmpty, offset, removeCustomGeometryCreatedListener, setEmpty, setID, toXML |
从类 java.lang.Object 继承的方法 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
public GeoCylinder()
public GeoCylinder(GeoCylinder geoCylinder)
geoCylinder
- 给定的 GeoCylinder 对象。public GeoCylinder(Point3D position, double topRadius, double bottomRadius, double height)
position
- 圆台几何对象位置的三维坐标。topRadius
- 圆台几何对象顶面圆的半径,单位为米。bottomRadius
- 圆台几何对象底面圆的半径,单位为米。height
- 圆台几何对象的高度,单位为米。方法详细信息 |
---|
public double getTopRadius()
public void setTopRadius(double value)
value
- 圆台几何对象顶面圆的半径。单位为米。public double getBottomRadius()
public void setBottomRadius(double value)
value
- 圆台几何对象底面圆的半径。单位为米。public double getHeight()
public void setHeight(double value)
value
- 圆台几何对象的高度。单位为米。public void dispose()
Geometry
中的 dispose
public GeoCylinder clone()
java.lang.Object
中的 clone
public GeoStyle getStyle()
Geometry3D
中的 getStyle
public void setStyle(GeoStyle value)
Geometry3D
中的 setStyle
value
- 用来设置几何对象风格的 GeoStyle
对象。Geometry.offset(double, double)
public boolean hitTest(Point2D point, double tolerance)
Geometry3D
中的 hitTest
point
- 测试点。tolerance
- 容限值,单位与数据集的单位相同。
Point2D
public Geometry mirror(Point2D startPoint, Point2D endPoint)
Geometry3D
中的 mirror
startPoint
- 线段的起点。endPoint
- 线段的终点。
Geometry.offset(double,double)
public void resize(Rectangle2D bounds)
Geometry3D
中的 resize
bounds
- 调整大小后几何对象的范围。public void rotate(Point2D basePoint, double angle)
Geometry3D
中的 rotate
basePoint
- 旋转的基点。angle
- 旋转的角度,单位为度。
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |