com.supermap.ar.areffect.preset
Class ARGeoVerticalRegion
- java.lang.Object
-
- com.supermap.ar.areffect.preset.BaseShape
-
- com.supermap.ar.areffect.preset.ARGeometry
-
- com.supermap.ar.areffect.preset.ARGeoVerticalRegion
-
public class ARGeoVerticalRegion extends ARGeometry
AR vertical plane. Note: each point of the bottom (top) of the object locates its own level.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.supermap.ar.areffect.preset.ARGeometry
ARGeometry.ARGeometryType
-
Nested classes/interfaces inherited from class com.supermap.ar.areffect.preset.BaseShape
BaseShape.MatType, BaseShape.Mode
-
-
Constructor Summary
Constructors Constructor and Description ARGeoVerticalRegion()
Construction method Transparent texture is by default.ARGeoVerticalRegion(BaseShape.MatType matType)
Construction method
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description int[]
addParts(GeoRegion geoRegion, java.util.List<java.util.List<java.lang.Float>> heightsList, float prismHeight)
Adds the sub object groupint
addParts(java.util.List<Point3D> pointList, float height)
Adds sub objectsint
addParts(Point2Ds point2Ds, java.util.List<java.lang.Float> heightList, float prismHeight)
Adds sub objectsvoid
clear()
Clears all objectsGeoLine
getGeoLine()
Gets geographic regional objectsBaseShape
getOutLine()
Gets outlinesAREffectElement
getParentElement()
Get the parent nodefloat
getPartArea(int partIndex)
Gets the area related to the index of the specified objectPoint3D
getPartCenterPoint(int partIndex)
Gets the center of the specified sub object.Point2Ds
getPartPoint2Ds(int index)
Gets the geographic coordinate point collection object of the child object of the specified indexboolean
removePart(int index)
Removes the specified objectvoid
select()
Selectedvoid
setOutLine(BaseShape outLine)
Sets outlinesvoid
setParentNode(AREffectElement element)
Setting the parent nodevoid
setParentNode(EffectView arView)
Setting the parent nodevoid
setRenderInnerShape(boolean renderInnerShape)
Whether to draw region For setOutLine(...)void
setSelectionColor(Color color)
Sets the color of the rendering object under the selection statusvoid
unSelect()
Cancel the selected status-
Methods inherited from class com.supermap.ar.areffect.preset.ARGeometry
addPoint3D, deletePoint3D, getPartCount, getPartPoint3Ds, getPartShape, getType, isEdit, resetGeometry, setEdit, updatePoint3D
-
Methods inherited from class com.supermap.ar.areffect.preset.BaseShape
getColor, getColorRGBA, getMetallic, getRadius, getReflectance, getRoughness, getSelectionColor, getShapeMaterial, getShapeStyle, getTextureMap, isRenderable, isSelected, isShadowCaster, isShadowReceiver, setColor, setColor, setColor, setMetallic, setRadius, setReflectance, setRenderable, setRoughness, setShadowCaster, setShadowReceiver, setShapeStyle, setTextureMap, updateMaterial
-
-
-
-
Constructor Detail
-
ARGeoVerticalRegion
public ARGeoVerticalRegion()
Construction method Transparent texture is by default.
-
ARGeoVerticalRegion
public ARGeoVerticalRegion(BaseShape.MatType matType)
Construction method- Parameters:
matType
- texture type (transparent/opaque)
-
-
Method Detail
-
addParts
public int addParts(java.util.List<Point3D> pointList, float height)
Adds sub objects- Parameters:
pointList
- if you want to construct prism, please connect in order.height
- prism height.- Returns:
-
addParts
public int addParts(Point2Ds point2Ds, java.util.List<java.lang.Float> heightList, float prismHeight)
Adds sub objects- Parameters:
point2Ds
-heightList
-prismHeight
- the prism height- Returns:
-
addParts
public int[] addParts(GeoRegion geoRegion, java.util.List<java.util.List<java.lang.Float>> heightsList, float prismHeight)
Adds the sub object group- Parameters:
geoRegion
-heightsList
-prismHeight
- the prism height- Returns:
- Returns the index array that adds sub objects.
-
removePart
public boolean removePart(int index)
Removes the specified object- Parameters:
index
-- Returns:
-
clear
public void clear()
Clears all objects- Overrides:
clear
in classARGeometry
-
getGeoLine
public GeoLine getGeoLine()
Gets geographic regional objects- Returns:
-
getPartPoint2Ds
public Point2Ds getPartPoint2Ds(int index)
Description copied from class:ARGeometry
Gets the geographic coordinate point collection object of the child object of the specified index- Returns:
-
getOutLine
public BaseShape getOutLine()
Gets outlines- Returns:
-
setOutLine
public void setOutLine(BaseShape outLine)
Sets outlines- Parameters:
outLine
-
-
setSelectionColor
public void setSelectionColor(Color color)
Description copied from class:BaseShape
Sets the color of the rendering object under the selection status- Overrides:
setSelectionColor
in classARGeometry
-
select
public void select()
Description copied from class:BaseShape
Selected- Overrides:
select
in classARGeometry
-
unSelect
public void unSelect()
Description copied from class:BaseShape
Cancel the selected status- Overrides:
unSelect
in classARGeometry
-
getPartArea
public float getPartArea(int partIndex)
Gets the area related to the index of the specified object- Parameters:
partIndex
-- Returns:
-
getPartCenterPoint
public Point3D getPartCenterPoint(int partIndex)
Gets the center of the specified sub object.- Parameters:
partIndex
-- Returns:
-
setRenderInnerShape
public void setRenderInnerShape(boolean renderInnerShape)
Whether to draw regionFor setOutLine(...),setRenderInnerShape(false, only the outline will be visible.
- Parameters:
renderInnerShape
-
-
setParentNode
public void setParentNode(AREffectElement element)
Setting the parent node- Parameters:
element
-
-
setParentNode
public void setParentNode(EffectView arView)
Setting the parent node- Parameters:
arView
-
-
getParentElement
public AREffectElement getParentElement()
Get the parent node- Returns:
-
-