com.supermap.realspace
类 InstanceObjectState
- java.lang.Object
-
- com.supermap.realspace.InstanceObjectState
-
public class InstanceObjectState extends Object
实例化模型对象状态,包括模型位置、姿态、颜色等
-
-
构造器概要
构造器 构造器和说明 InstanceObjectState()InstanceObjectState(InstanceObjectState state)拷贝构造函数。
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 限定符和类型 方法和说明 doublegetAltitude()已过时。ColorgetColor()获取模型颜色doublegetHeading()获取方位角intgetId()获取IDdoublegetLatitude()已过时。MatrixgetLocalMatrix()获取模型自身变换的一些信息,包括偏移、缩放等,矩阵是4*4doublegetLongitude()已过时。Point3DgetOffset()获取偏移量doublegetPitch()获取俯仰角Point3DgetPosition()获取位置doublegetRoll()获取倾斜角Point3DgetScale()获取缩放比voidsetAltitude(double altitude)已过时。voidsetColor(Color color)设置模型颜色voidsetHeading(double heading)设置方位角voidsetId(int id)已过时。voidsetLatitude(double latitude)已过时。voidsetLocalMatrix(Matrix localMatrix)设置模型自身变换的一些信息,包括偏移、缩放等,矩阵是4*4voidsetLongitude(double longitude)已过时。voidsetOffset(Point3D offset)设置偏移量voidsetPitch(double pitch)设置俯仰角voidsetPosition(Point3D position)设置位置voidsetRoll(double roll)设置倾斜角voidsetScale(Point3D scale)设置缩放比
-
-
-
构造器详细资料
-
InstanceObjectState
public InstanceObjectState()
-
InstanceObjectState
public InstanceObjectState(InstanceObjectState state)
拷贝构造函数。- 参数:
state- 拷贝对象。- 从以下版本开始:
- 12.0.0。
-
-
方法详细资料
-
getId
public int getId()
获取ID
-
setId
@Deprecated public void setId(int id)
已过时。设置ID
-
setPosition
public void setPosition(Point3D position)
设置位置
-
getPosition
public Point3D getPosition()
获取位置
-
getLongitude
@Deprecated public double getLongitude()
已过时。获取经度
-
setLongitude
@Deprecated public void setLongitude(double longitude)
已过时。设置经度
-
getLatitude
@Deprecated public double getLatitude()
已过时。获取纬度
-
setLatitude
@Deprecated public void setLatitude(double latitude)
已过时。设置纬度
-
getAltitude
@Deprecated public double getAltitude()
已过时。获取高度
-
setAltitude
@Deprecated public void setAltitude(double altitude)
已过时。设置高度
-
getHeading
public double getHeading()
获取方位角
-
setHeading
public void setHeading(double heading)
设置方位角
-
getPitch
public double getPitch()
获取俯仰角
-
setPitch
public void setPitch(double pitch)
设置俯仰角
-
getRoll
public double getRoll()
获取倾斜角
-
setRoll
public void setRoll(double roll)
设置倾斜角
-
getScale
public Point3D getScale()
获取缩放比
-
setScale
public void setScale(Point3D scale)
设置缩放比
-
getOffset
public Point3D getOffset()
获取偏移量
-
setOffset
public void setOffset(Point3D offset)
设置偏移量
-
getColor
public Color getColor()
获取模型颜色
-
setColor
public void setColor(Color color)
设置模型颜色
-
getLocalMatrix
public Matrix getLocalMatrix()
获取模型自身变换的一些信息,包括偏移、缩放等,矩阵是4*4
-
setLocalMatrix
public void setLocalMatrix(Matrix localMatrix)
设置模型自身变换的一些信息,包括偏移、缩放等,矩阵是4*4
-
-
Copyright © 2021–2025 SuperMap. All rights reserved.