com.supermap.ar.areffect.preset
Class ARGeoHorizontalRegion
- java.lang.Object
-
- com.supermap.ar.areffect.preset.BaseShape
-
- com.supermap.ar.areffect.preset.ARGeometry
-
- com.supermap.ar.areffect.preset.ARGeoHorizontalRegion
-
public class ARGeoHorizontalRegion extends ARGeometry
The plane geometry object. The class describes the regional entity using one or multiple ordered points.
-
-
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 ARGeoHorizontalRegion()
Construction methodARGeoHorizontalRegion(BaseShape.MatType matType)
Construction method
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
addPart(java.util.List<Point3D> pointList)
void
addPoint3D(int part, int index, Point3D point3D)
void
clear()
Clears objectsvoid
deletePoint3D(int part, int index)
void
drawRegion(float startUpAzimuth, Location startUpLocation, GeoRegion geometry)
Draws geometric objectsvoid
drawRegion(GeoRegion geometry)
Draws geometric objectsvoid
drawRegion(java.util.List<Point3D> pointList)
Draws AR polygons (on horizontal plane)GeoRegion
getGeoRegion()
Gets regional objects.AREffectElement
getParentElement()
Get the parent nodePoint2Ds
getPart(int index)
Returns the sub object with the specified index in the object in the form of an ordered point collection.float
getPartArea(int partIndex)
Gets the area of the specified sub object.Point3D
getPartCenterPoint(int partIndex)
Gets the geometric center of the specified sub object.int
getPartCount()
Returns the number of the sub objects of the objectsPoint2Ds
getPartPoint2Ds(int index)
Gets the geographic coordinate point collection object of the child object of the specified indexfloat
getRenderHeight()
Gets the rendering heightvoid
resetGeometry()
Resetting geometry objectsvoid
setParentNode(AREffectElement element)
Setting the parent nodevoid
setParentNode(EffectView arView)
Setting the parent nodevoid
setRenderHeight(float renderHeight)
Sets the rendering heightvoid
updatePoint3D(int part, int index, Point3D point3D)
-
Methods inherited from class com.supermap.ar.areffect.preset.ARGeometry
getPartPoint3Ds, getPartShape, getType, isEdit, select, setEdit, setSelectionColor, unSelect
-
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
-
ARGeoHorizontalRegion
public ARGeoHorizontalRegion()
Construction method
-
ARGeoHorizontalRegion
public ARGeoHorizontalRegion(BaseShape.MatType matType)
Construction method- Parameters:
matType
- texture type (transparent/opaque)
-
-
Method Detail
-
addPart
public void addPart(java.util.List<Point3D> pointList)
-
drawRegion
public void drawRegion(java.util.List<Point3D> pointList)
Draws AR polygons (on horizontal plane)- Parameters:
pointList
- End-to-end point set
-
drawRegion
public void drawRegion(GeoRegion geometry)
Draws geometric objects- Parameters:
geometry
- The plane geometry object.
-
drawRegion
public void drawRegion(float startUpAzimuth, Location startUpLocation, GeoRegion geometry)
Draws geometric objects- Parameters:
startUpAzimuth
- the start azimuthstartUpLocation
- the start positiongeometry
- The plane geometry object.
-
getGeoRegion
public GeoRegion getGeoRegion()
Gets regional objects.- Returns:
-
getRenderHeight
public float getRenderHeight()
Gets the rendering height- Returns:
-
setRenderHeight
public void setRenderHeight(float renderHeight)
Sets the rendering height- Parameters:
renderHeight
-
-
clear
public void clear()
Clears objects- Overrides:
clear
in classARGeometry
-
getPart
public Point2Ds getPart(int index)
Returns the sub object with the specified index in the object in the form of an ordered point collection.- Parameters:
index
-- Returns:
-
getPartCount
public int getPartCount()
Returns the number of the sub objects of the objects- Overrides:
getPartCount
in classARGeometry
- Returns:
-
getPartArea
public float getPartArea(int partIndex)
Gets the area of the specified sub object.- Parameters:
partIndex
-- Returns:
-
getPartCenterPoint
public Point3D getPartCenterPoint(int partIndex)
Gets the geometric center of the specified sub object.- Parameters:
partIndex
-- Returns:
-
resetGeometry
public void resetGeometry()
Description copied from class:ARGeometry
Resetting geometry objects- Overrides:
resetGeometry
in classARGeometry
-
updatePoint3D
public void updatePoint3D(int part, int index, Point3D point3D)
- Overrides:
updatePoint3D
in classARGeometry
-
addPoint3D
public void addPoint3D(int part, int index, Point3D point3D)
- Overrides:
addPoint3D
in classARGeometry
-
deletePoint3D
public void deletePoint3D(int part, int index)
- Overrides:
deletePoint3D
in classARGeometry
-
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:
-
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:
-
-