com.supermap.data.processing
类 GovernanceParameters
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.data.processing.GovernanceParameters
-
- 所有已实现的接口:
- IDisposable
public class GovernanceParameters extends com.supermap.data.InternalHandleDisposable
倾斜数据检查参数倾斜数据预处理检查项包括检查数据损坏、移除损坏文件、修复包围盒异常、修复三角网异常、移除冗余纹理、限制纹理大小。
-
-
构造器概要
构造器 构造器和说明 GovernanceParameters()
默认构造一个新的 GovernanceParameters 对象。
-
方法概要
所有方法 静态方法 实例方法 具体方法 限定符和类型 方法和说明 void
dispose()
释放对象所占资源。CacheLimitTextureSize
getCacheLimitTextureSize()
获取纹理限制尺寸大小,大于这个值才会提示,默认值为8192。boolean
isCheckFileIntegrity()
获取是否检查文件的完整性,默认值为true。boolean
isRemoveErrorFile()
是否移除损坏的文件 默认值为false。boolean
isRemoveRedundantTexture()
获取是否移除冗余的纹理,默认为false。boolean
isRepairErrorBoundingBox()
获取是否修复错误的包围盒,默认值为false。boolean
isRepairErrorGeometry()
是否修复错误的几何信息,默认值为false。boolean
isScaleTexture()
是否缩放纹理,默认值为false。void
setCacheLimitTextureSize(CacheLimitTextureSize cacheLimitTextureSize)
设置纹理限制尺寸大小,大于这个值才会提示,默认值为8192。void
setCheckFileIntegrity(boolean isCheckFileIntegrity)
设置是否检查文件的完整性。static void
setIsDisposable(com.supermap.data.InternalHandleDisposable obj, boolean disposable)
void
setRemoveErrorFile(boolean isRemoveErrorFile)
设置是否移除损坏的文件void
setRemoveRedundantTexture(boolean isRemoveRedundantTexture)
设置是否移除冗余的纹理,默认为false。void
setRepairErrorBoundingBox(boolean isRepairErrorBoundingBox)
设置是否修复错误的包围盒,默认值为false。void
setRepairErrorGeometry(boolean isRepairErrorGeometry)
设置是否修复错误的几何信息void
setScaleTexture(boolean isScaleTexture)
设置是否缩放纹理void
setVaildPositionRange(double vaildPositionRange)
设置几何顶点位置有效范围。
-
-
-
方法详细资料
-
dispose
public void dispose()
释放对象所占资源。
-
isCheckFileIntegrity
public boolean isCheckFileIntegrity()
获取是否检查文件的完整性,默认值为true。- 返回:
- 一个bool值,true表示有损坏的文件,false表示没有损坏的文件。
-
setCheckFileIntegrity
public void setCheckFileIntegrity(boolean isCheckFileIntegrity)
设置是否检查文件的完整性。- 参数:
isCheckFileIntegrity
- 一个bool值,设置true表示检查文件的完整性,设置false表示不检查文件的完整性。
-
isRemoveErrorFile
public boolean isRemoveErrorFile()
是否移除损坏的文件 默认值为false。- 返回:
- 一个bool值,true表示移除损坏的文件,会将原始已损坏的osgb文件删除,
-
setRemoveErrorFile
public void setRemoveErrorFile(boolean isRemoveErrorFile)
设置是否移除损坏的文件- 参数:
isRemoveErrorFile
- 一个bool值,设置true表示移除损坏的文件,会将原始已损坏的osgb文件删除,所以需要备份下原始倾斜数据,慎用。 设置false表示不移除损坏的文件,可以根据log.txt文件里的提示信息,将损坏的数据修复后再使用。
-
isRepairErrorGeometry
public boolean isRepairErrorGeometry()
是否修复错误的几何信息,默认值为false。- 返回:
- 一个bool值,true表示修复错误的几何信息,false表示不修复。
-
setRepairErrorGeometry
public void setRepairErrorGeometry(boolean isRepairErrorGeometry)
设置是否修复错误的几何信息- 参数:
isRepairErrorGeometry
- 一个bool值,设置true表示修复错误的几何信息,设置false表示不修复。
-
isScaleTexture
public boolean isScaleTexture()
是否缩放纹理,默认值为false。- 返回:
- 一个bool值,true表示缩放纹理,false表示不缩放纹理。
-
setScaleTexture
public void setScaleTexture(boolean isScaleTexture)
设置是否缩放纹理- 参数:
isScaleTexture
- 一个bool值,设置true表示即要检查是否缩放纹理,可根据设置的纹理尺寸大小进行缩放处理;设置false表示不缩放纹理,同时也不能对纹理进行限制尺寸大小的修复。
-
getCacheLimitTextureSize
public CacheLimitTextureSize getCacheLimitTextureSize()
获取纹理限制尺寸大小,大于这个值才会提示,默认值为8192。- 返回:
- 纹理尺寸大小
-
setCacheLimitTextureSize
public void setCacheLimitTextureSize(CacheLimitTextureSize cacheLimitTextureSize)
设置纹理限制尺寸大小,大于这个值才会提示,默认值为8192。当setScaleTexture设置为true时,即会检查是否纹理尺寸的大小,也会根据限制的纹理尺寸大小进行修复处理。
- 参数:
cacheLimitTextureSize
- 纹理尺寸大小
-
isRemoveRedundantTexture
public boolean isRemoveRedundantTexture()
获取是否移除冗余的纹理,默认为false。- 返回:
- 一个bool值,true表示移除冗余纹理,false表示不移除。
-
setRemoveRedundantTexture
public void setRemoveRedundantTexture(boolean isRemoveRedundantTexture)
设置是否移除冗余的纹理,默认为false。- 参数:
isRemoveRedundantTexture
- 一个bool值,设置true表示移除冗余纹理,设置false表示不移除。
-
isRepairErrorBoundingBox
public boolean isRepairErrorBoundingBox()
获取是否修复错误的包围盒,默认值为false。- 返回:
- 一个bool值,true表示修复错误的包围盒,false表示不修复错误的包围盒。
-
setRepairErrorBoundingBox
public void setRepairErrorBoundingBox(boolean isRepairErrorBoundingBox)
设置是否修复错误的包围盒,默认值为false。- 参数:
isRepairErrorBoundingBox
- 一个bool值,设置true表示修复错误的包围盒,设置false表示不修复错误的包围盒。
-
setVaildPositionRange
public void setVaildPositionRange(double vaildPositionRange)
设置几何顶点位置有效范围。- 参数:
vaildPositionRange
- 几何顶点位置有效范围。- 从以下版本开始:
- 11.3.0
-
setIsDisposable
public static void setIsDisposable(com.supermap.data.InternalHandleDisposable obj, boolean disposable)
-
-
Copyright © 2021–2024 SuperMap. All rights reserved.