com.supermap.ar.areffect
Class OcclusionHelper
- java.lang.Object
-
- com.supermap.ar.areffect.OcclusionHelper
-
public class OcclusionHelper extends java.lang.ObjectOcclusion assistantMostly used for local rendering of the picture, showing the rendering effect of virtual and real occlusion
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classOcclusionHelper.RenderModeRendering mode
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description OcclusionHelperaddPointList(java.util.ArrayList<int[]> screenPoint)Adds a screen coordinate point collection A collection of points that are not joined at the beginning and endOcclusionHelperclearPointList()Clears the screen coordinate point collectionOcclusionHelper.RenderModegetRenderMode()Get occlusion modefloatgetReSampleSize()Gets the resampling size Value range[0.001,1]OcclusionHelperinit()InitializeOcclusionHelperinit(float reSampleSize)InitializebooleanisEnabled()Checking whether to EnablebooleanisLocked()Get lock statusisEnabled()is true, and setLocked(true) returns truevoidrefresh()refreshOcclusionHelpersetEnabled(boolean enabled)Setting the Enable StatusbooleansetLocked(boolean locked)Set lock status It only works if#setEnabled(Boolean)is trueOcclusionHelpersetRenderMode(OcclusionHelper.RenderMode renderMode)Set occlusion rendering modeOcclusionHelpersetUniquePointList(java.util.ArrayList<int[]> screenPoint)Sets a unique set of screen coordinate points
-
-
-
Method Detail
-
init
public OcclusionHelper init()
Initialize
-
init
public OcclusionHelper init(float reSampleSize)
Initialize- Parameters:
reSampleSize- Resampling coefficient
-
getRenderMode
public OcclusionHelper.RenderMode getRenderMode()
Get occlusion mode- Returns:
-
setRenderMode
public OcclusionHelper setRenderMode(OcclusionHelper.RenderMode renderMode)
Set occlusion rendering mode- Parameters:
renderMode-
-
getReSampleSize
public float getReSampleSize()
Gets the resampling sizeValue range[0.001,1]
- Returns:
-
isEnabled
public boolean isEnabled()
Checking whether to Enable- Returns:
- Status value
-
setEnabled
public OcclusionHelper setEnabled(boolean enabled)
Setting the Enable Status- Parameters:
enabled- Status value
-
addPointList
public OcclusionHelper addPointList(java.util.ArrayList<int[]> screenPoint)
Adds a screen coordinate point collectionA collection of points that are not joined at the beginning and end
- Parameters:
screenPoint-
-
clearPointList
public OcclusionHelper clearPointList()
Clears the screen coordinate point collection
-
setUniquePointList
public OcclusionHelper setUniquePointList(java.util.ArrayList<int[]> screenPoint)
Sets a unique set of screen coordinate points- Parameters:
screenPoint-
-
refresh
public void refresh()
refresh
-
isLocked
public boolean isLocked()
Get lock statusisEnabled()is true, and setLocked(true) returns true- Returns:
-
setLocked
public boolean setLocked(boolean locked)
Set lock statusIt only works if
#setEnabled(Boolean)is true- Parameters:
locked-- Returns:
- Return true on success
-
-