com.supermap.data.processing
类 Point3DLinkModelCacheBuilder
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.data.processing.Point3DLinkModelCacheBuilder
-
- 所有已实现的接口:
- IDisposable
public class Point3DLinkModelCacheBuilder extends com.supermap.data.InternalHandleDisposable
点外挂模型生成缓存类,支持点数据集生成缓存外挂模型。- 作者:
-
-
构造器概要
构造器 构造器和说明 Point3DLinkModelCacheBuilder()
默认构造一个新的Point3DLinkModelCacheBuilder对象。Point3DLinkModelCacheBuilder(DatasetVector dataset, String outputFolder, String name)
根据指定参数构造一个与类名相同的新对象。
-
方法概要
-
-
-
构造器详细资料
-
Point3DLinkModelCacheBuilder
public Point3DLinkModelCacheBuilder()
默认构造一个新的Point3DLinkModelCacheBuilder对象。
-
Point3DLinkModelCacheBuilder
public Point3DLinkModelCacheBuilder(DatasetVector dataset, String outputFolder, String name)
根据指定参数构造一个与类名相同的新对象。- 参数:
dataset
- 外挂模型的点数据集。outputFolder
- 输出路径name
- 缓存名称
-
-
方法详细资料
-
dispose
public void dispose()
释放占用资源。
-
getDataset
public DatasetVector getDataset()
获取需要生成缓存的点数据集。- 返回:
-
setDataset
public void setDataset(DatasetVector value)
设置需要生成缓存的点数据集。- 参数:
value
-
-
getBounds
public Rectangle2D getBounds()
获取生成缓存的数据范围。- 返回:
-
setBounds
public void setBounds(Rectangle2D value)
设置生成缓存的数据范围。- 参数:
value
-
-
getCacheName
public String getCacheName()
获取缓存名称。会在输出路径下创建一个与缓存名称相同命名的文件夹,缓存数据会生成到该文件夹下。- 返回:
-
setCacheName
public void setCacheName(String name)
设置缓存名称。会在输出路径下创建一个与缓存名称相同命名的文件夹,缓存数据会生成到该文件夹下。- 参数:
name
-
-
setFileType
public void setFileType(CacheFileType fileType)
设置缓存文件类型。- 参数:
fileType
- 缓存文件类型
-
getFileType
public CacheFileType getFileType()
获取缓存文件类型。- 返回:
- 缓存文件类型
-
getOutputFolder
public String getOutputFolder()
获取缓存路径。- 返回:
-
setOutputFolder
public void setOutputFolder(String name)
设置缓存路径。- 参数:
name
-
-
getOutputScale
public double getOutputScale()
获取点外挂模型缓存的比例尺大小。- 返回:
-
setOutputScale
public void setOutputScale(double value)
设置点外挂模型缓存的比例尺大小。- 参数:
value
-
-
getProcessType
@Deprecated public ProcessFileType getProcessType()
已过时。
-
setProcessType
@Deprecated public void setProcessType(ProcessFileType value)
已过时。
-
setRecordset
public void setRecordset(Recordset value)
设置需要生成缓存的记录集。- 参数:
value
-
-
getRecordset
public Recordset getRecordset()
获取需要生成缓存的记录集。- 返回:
-
setTileWidth
public void setTileWidth(double value)
设置点外挂模型缓存的切块大小。单位:米。- 参数:
value
-
-
getTileWidth
public double getTileWidth()
获取点外挂模型缓存的切块大小。单位:米。- 返回:
-
setLODSize
public void setLODSize(int value)
设置LOD层级数量。- 参数:
value
-
-
getLODSize
public int getLODSize()
获取LOD层级数量。- 返回:
-
setObjectFiltrateThreshold
public void setObjectFiltrateThreshold(double dbValue)
设置对象像素过滤阈值。- 参数:
dbValue
-
-
getObjectFiltrateThreshold
public double getObjectFiltrateThreshold()
获取对象像素过滤阈值。- 返回:
-
setSimplifyPercent
@Deprecated public void setSimplifyPercent(Map<Integer,Double> mapPercent)
已过时。
-
getSimplifyPercent
@Deprecated public HashMap<Integer,Double> getSimplifyPercent()
已过时。
-
getTileBounds
public ArrayList<Rectangle2D> getTileBounds()
获得每个生成缓存切片的Bounds
-
build
public boolean build()
执行生成点外挂模型缓存。- 返回:
-
addSteppedListener
public void addSteppedListener(SteppedListener l)
添加一个用于接收进度条事件(SteppedEvent
)的监听器。- 参数:
l
- 一个用于接收进度条事件监听器。
-
removeSteppedListener
public void removeSteppedListener(SteppedListener l)
移除一个用于接收进度条事件(SteppedEvent
)的监听器。- 参数:
l
- 一个用于接收进度条事件监听器。
-
getProcessThreadsCount
public int getProcessThreadsCount()
获取线程数。- 返回:
-
setProcessThreadsCount
public void setProcessThreadsCount(int value)
设置线程数。- 参数:
value
- 线程数。
-
getPosition
public Point3D getPosition()
获取插入点。- 返回:
-
setPosition
public void setPosition(Point3D value)
设置插入点。
-
getScaleXField
public String getScaleXField()
获取沿X缩放的字段名。- 返回:
-
setScaleXField
public void setScaleXField(String value)
设置沿X缩放的字段名。
-
getScaleYField
public String getScaleYField()
获取沿Y缩放的字段名。- 返回:
-
setScaleYField
public void setScaleYField(String value)
获取沿Y缩放的字段名。
-
getScaleZField
public String getScaleZField()
获取沿Z缩放的字段名。- 返回:
-
setScaleZField
public void setScaleZField(String value)
获取沿Z缩放的字段名。
-
getRotateXField
public String getRotateXField()
获取沿X旋转的字段名。- 返回:
-
setRotateXField
public void setRotateXField(String value)
设置沿X旋转的字段名。
-
getRotateYField
public String getRotateYField()
获取沿Y旋转的字段名。- 返回:
-
setRotateYField
public void setRotateYField(String value)
设置沿Y旋转的字段名。
-
getRotateZField
public String getRotateZField()
获取沿Z旋转的字段名。- 返回:
-
setRotateZField
public void setRotateZField(String value)
设置沿Z旋转的字段名。
-
getModelPathField
public String getModelPathField()
获取外挂模型字段名。- 返回:
-
setModelPathField
public void setModelPathField(String value)
设置外挂模型字段名。
-
buildWithoutConfigFile
public boolean buildWithoutConfigFile()
生成三维切片缓存(OSGB/S3M)。使用该方法创建缓存不会生成配置文件。使用场景:该方法用于服务器端接收客户端请求时使用。
- 返回:
- true 表示创建缓存成功,false表示创建缓存失败。
-
toConfigAndIndexFile
public boolean toConfigAndIndexFile(String path)
生成SCP- 返回:
-
setTileInfos
public void setTileInfos(TileInfos value)
生成指定瓦片信息对应的切片。- 参数:
value
-
-
getMatrixField
public String getMatrixField()
-
setMatrixField
public void setMatrixField(String value)
-
getAttributeExtentType
public AttributeExtentType getAttributeExtentType()
获取属性存储类型- 返回:
- 属性存储类型
-
setAttributeExtentType
public void setAttributeExtentType(AttributeExtentType type)
设置属性存储类型。- 参数:
type
- 属性存储类型
-
setCacheVersion
public void setCacheVersion(S3MVersion version)
设置缓存S3M版本。- 参数:
version
- S3M版本
-
getGameEngineAssetField
public String getGameEngineAssetField()
获取游戏引擎资产路径。- 返回:
- 游戏引擎资产路径
-
setGameEngineAssetField
public void setGameEngineAssetField(String gameEngineAssetField)
设置游戏引擎资产路径。- 参数:
gameEngineAssetField
- 游戏引擎资产路径
-
getUserIDField
public String getUserIDField()
获取对象id字段。- 返回:
- 对象id字段
-
setUserIDField
public void setUserIDField(String userIDField)
设置对象id字段。- 参数:
userIDField
- 对象id字段
-
getDatasetSettingArray
public ArrayList<DatasetSetting> getDatasetSettingArray()
获取点外挂模型生成缓存批量生成时的数据集集合(多数据集)。- 返回:
-
setDatasetSettingArray
public void setDatasetSettingArray(ArrayList<DatasetSetting> datasetSettings)
设置点外挂模型生成缓存批量生成时的数据集集合(多数据集)。- 参数:
datasetSettings
-
-
setSimplifyPercents
public void setSimplifyPercents(HashMap<Integer,Double> pencents)
设置LOD层简化率- 参数:
pencents
-
-
getGlobeType
public GlobeType getGlobeType()
获取球体类型,支持椭球和圆球。- 返回:
-
setGlobeType
public void setGlobeType(GlobeType globeType)
设置球体类型,支持椭球和圆球。当球体类型设置为椭球时,S3M版本需要使用"Version_30"。- 参数:
globeType
-
-
getTargetPrjCoordSys
public PrjCoordSys getTargetPrjCoordSys()
返回目标坐标系。- 返回:
- 目标坐标系。
- 抛出:
IllegalStateException
- 当前对象已被释放。- 从以下版本开始:
- 11.2.0。
-
setTargetPrjCoordSys
public void setTargetPrjCoordSys(PrjCoordSys tarPrjCoordSys)
设置目标坐标系。在setDataset或setDatasetArray之前调用。- 参数:
tarPrjCoordSys
- 目标坐标系。- 抛出:
IllegalStateException
- 当前对象已被释放。- 从以下版本开始:
- 11.2.0。
-
getTargetCoordSysTransParameter
public CoordSysTransParameter getTargetCoordSysTransParameter()
返回坐标系转换参数。- 返回:
- 坐标系转换参数。
- 抛出:
IllegalStateException
- 当前对象已被释放。- 从以下版本开始:
- 11.2.0。
-
setTargetCoordSysTransParameter
public void setTargetCoordSysTransParameter(CoordSysTransParameter targetCoordSysTransParameter)
设置坐标系转换参数。在setDataset或setDatasetArray之前调用。- 参数:
targetCoordSysTransParameter
- 投影转换参照系转换参数。- 抛出:
IllegalStateException
- 当前对象已被释放。- 从以下版本开始:
- 11.2.0。
-
getTargetCoordSysTransMethod
public CoordSysTransMethod getTargetCoordSysTransMethod()
返回坐标系转换方法。- 返回:
- 转换方法。
- 抛出:
IllegalStateException
- 当前对象已被释放。- 从以下版本开始:
- 11.2.0。
-
setTargetCoordSysCoordSysTransMethod
public void setTargetCoordSysCoordSysTransMethod(CoordSysTransMethod targetCoordSysTransMethod)
设置坐标系转换方法。在setDataset或setDatasetArray之前调用。- 参数:
targetCoordSysTransMethod
- 投影转换方法类型常量。- 抛出:
IllegalStateException
- 当前对象已被释放。- 从以下版本开始:
- 11.2.0。
-
getDynamicPrjCoordSysType
public PrjCoordSysType getDynamicPrjCoordSysType()
返回投影类型。- 返回:
- 投影类型。
-
setDynamicPrjCoordSysType
public void setDynamicPrjCoordSysType(PrjCoordSysType prjType)
设置投影类型- 参数:
prjType
- 投影坐标系类型常量
-
getVertexOptimizationType
public VertexOptimizationType getVertexOptimizationType()
返回顶点优化类型。- 返回:
- 顶点优化类型。
- 抛出:
IllegalStateException
- 当前对象已被释放。- 从以下版本开始:
- 11.2.0。
-
setVertexOptimizationType
public void setVertexOptimizationType(VertexOptimizationType vertexOptimizationType)
设置顶点优化类型。- 参数:
vertexOptimizationType
- 顶点优化类型。- 抛出:
IllegalStateException
- 当前对象已被释放。- 从以下版本开始:
- 11.2.0。
-
setCompressedTextureType
public void setCompressedTextureType(CompressedTextureType value)
设置纹理压缩类型。- 参数:
value
- 纹理压缩类型。- 抛出:
IllegalStateException
- 当前对象已被释放。- 从以下版本开始:
- 11.2.0。
-
getCompressedTextureType
public CompressedTextureType getCompressedTextureType()
返回纹理压缩类型。- 返回:
- 纹理压缩类型。
- 抛出:
IllegalStateException
- 当前对象已被释放。- 从以下版本开始:
- 11.2.0。
-
setEncryptCoordinatesSetting
public void setEncryptCoordinatesSetting(EncryptCoordinatesSetting encryptCoordinatesSetting)
设置坐标系加密参数- 参数:
encryptCoordinatesSetting
-
-
setIsDisposable
public static void setIsDisposable(com.supermap.data.InternalHandleDisposable obj, boolean disposable)
-
-
Copyright © 2021–2024 SuperMap. All rights reserved.