com.supermap.realspace
类 InstanceObjectState
- java.lang.Object
-
- com.supermap.realspace.InstanceObjectState
-
public class InstanceObjectState extends Object
实例化模型对象状态,包括模型位置、姿态、颜色等
-
-
构造器概要
构造器 构造器和说明 InstanceObjectState()
InstanceObjectState(InstanceObjectState state)
拷贝构造函数。
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 限定符和类型 方法和说明 double
getAltitude()
已过时。Color
getColor()
获取模型颜色double
getHeading()
获取方位角int
getId()
获取IDdouble
getLatitude()
已过时。Matrix
getLocalMatrix()
获取模型自身变换的一些信息,包括偏移、缩放等,矩阵是4*4double
getLongitude()
已过时。Point3D
getOffset()
获取偏移量double
getPitch()
获取俯仰角Point3D
getPosition()
获取位置double
getRoll()
获取倾斜角Point3D
getScale()
获取缩放比void
setAltitude(double altitude)
已过时。void
setColor(Color color)
设置模型颜色void
setHeading(double heading)
设置方位角void
setId(int id)
已过时。void
setLatitude(double latitude)
已过时。void
setLocalMatrix(Matrix localMatrix)
设置模型自身变换的一些信息,包括偏移、缩放等,矩阵是4*4void
setLongitude(double longitude)
已过时。void
setOffset(Point3D offset)
设置偏移量void
setPitch(double pitch)
设置俯仰角void
setPosition(Point3D position)
设置位置void
setRoll(double roll)
设置倾斜角void
setScale(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.