|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Object com.supermap.data.Geometry com.supermap.data.Geometry3D com.supermap.data.GeoBox
public class GeoBox
长方体几何对象类,继承于 Geometry3D
类。
用于在三维图层上绘制长方体几何对象。
该类仅在 Windows、Linux 平台版本中支持。
注意:添加该类型的实例到三维场景的跟踪图层时,必须要先调用 getGeoModel()
方法使其按 GeoModel 的方式重新构建。
public void addGeoBox() { // 构造 GeoBox 对象 GeoBox geoBox = new GeoBox(); // 设置长方体的底面大小 geoBox.setBottomSize(new Size2D(200,100)); // 设置长方体的高度 geoBox.setHeight(200); // 设置长方体所在的位置 geoBox.setPosition(new Point3D(116.3871597841252,39.99008027631623,100)); // 返回按 GeoModel 的方式重新构建的模型对象 GeoModel geoModel = geoBox.getGeoModel(100, 100); // 向跟踪图层上添加长方体 m_sceneControl.getScene().getTrackingLayer().add(geoModel, "geoBox"); // 飞行定位到该长方体对象 sceneControl.getScene().fly(geoModel, FlyingMode.FLYINGTO); }
构造方法摘要 | |
---|---|
GeoBox()
构造一个新的 GeoBox 对象。 |
|
GeoBox(GeoBox geoBox)
根据给定的 GeoBox 对象构造一个与其完全相同的新对象。 |
|
GeoBox(Point3D position,
Size2D bottomSize,
double height)
根据指定的参数来构造一个 GeoBox 的新对象。 |
方法摘要 | |
---|---|
GeoBox |
clone()
返回当前 GeoBox 对象的一个拷贝。 |
void |
dispose()
释放该对象所占用的资源。 |
Size2D |
getBottomSize()
返回长方体的底面的大小。 |
Point3D |
getCenter()
返回长方体几何对象的中心点。 |
double |
getHeight()
返回长方体几何对象的高度,即在 Z 轴方向的长度,单位为米。 |
GeoStyle |
getStyle()
该类不支持该方法。 |
boolean |
hitTest(Point2D point,
double tolerance)
该类不支持该方法。 |
Geometry |
mirror(Point2D startPoint,
Point2D endPoint)
该类不支持该方法。 |
void |
resize(Rectangle2D bounds)
该类不支持该方法。 |
void |
rotate(Point2D basePoint,
double angle)
该类不支持该方法。 |
void |
setBottomSize(Size2D size2D)
设置长方体的底面的大小。 |
void |
setHeight(double value)
设置长方体几何对象的高度,即在 Z 轴方向的长度,单位为米。 |
void |
setStyle(GeoStyle 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 GeoBox()
public GeoBox(GeoBox geoBox)
geoBox
- 给定的长方体几何对象。public GeoBox(Point3D position, Size2D bottomSize, double height)
position
- 长方体几何对象的位置。bottomSize
- 长方体几何对象底面的大小。height
- 长方体几何对象的高度,单位为米。方法详细信息 |
---|
public Size2D getBottomSize()
public void setBottomSize(Size2D size2D)
size2D
- 长方体的底面的大小。public double getHeight()
public void setHeight(double value)
value
- 长方体几何对象的高度。public Point3D getCenter()
public void dispose()
Geometry
中的 dispose
public GeoBox 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
- 旋转的角度,单位为度。
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |