com.supermap.ar.areffect.preset
Class ARGeoRegion2
- java.lang.Object
-
- com.supermap.ar.areffect.preset.BaseShape
-
- com.supermap.ar.areffect.preset.ARGeometry
-
- com.supermap.ar.areffect.preset.ARGeoRegion2
-
public class ARGeoRegion2 extends ARGeometry
Plane geometry object This class is used to describe planar entities, typically represented by a set of one or more ordered coordinate 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 ARGeoRegion2()
A constructorARGeoRegion2(BaseShape.MatType matType)
A constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
addPart(java.util.List<Point3D> pointList)
void
clear()
Remove the objectvoid
drawRegion(float startUpAzimuth, Location startUpLocation, GeoRegion geometry)
Draw geometric objectsvoid
drawRegion(GeoRegion geometry)
Draw geometric objectsvoid
drawRegion(java.util.List<Point3D> pointList)
tempGeoRegion
getGeoRegion()
Get face objectAREffectElement
getParentElement()
Get the parent nodePoint2Ds
getPart(int index)
Returns a child object of the specified ordinal number as a set of ordered pointsfloat
getPartArea(int partIndex)
Gets the area of the child object of the specified indexPoint3D
getPartCenterPoint(int partIndex)
Gets the geometric center of the child object of the specified indexint
getPartCount()
Returns the number of children of this objectfloat
getRenderHeight()
Get render Heightvoid
setParentNode(AREffectElement element)
Setting the parent nodevoid
setParentNode(EffectView arView)
Setting the parent nodevoid
setRenderHeight(float renderHeight)
Set render Height-
Methods inherited from class com.supermap.ar.areffect.preset.ARGeometry
addPoint3D, deletePoint3D, getPartPoint3Ds, getPartShape, getType, isEdit, resetGeometry, select, setEdit, setSelectionColor, unSelect, 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
-
ARGeoRegion2
public ARGeoRegion2()
A constructor
-
ARGeoRegion2
public ARGeoRegion2(BaseShape.MatType matType)
A constructor- Parameters:
matType
- Material Type (Transparent/opaque)
-
-
Method Detail
-
addPart
public void addPart(java.util.List<Point3D> pointList)
-
drawRegion
public void drawRegion(java.util.List<Point3D> pointList)
temp- Parameters:
pointList
- Set of points end to end
-
drawRegion
public void drawRegion(GeoRegion geometry)
Draw geometric objects- Parameters:
geometry
- Plane geometry object
-
drawRegion
public void drawRegion(float startUpAzimuth, Location startUpLocation, GeoRegion geometry)
Draw geometric objects- Parameters:
startUpAzimuth
- Azimuth of the device at startupstartUpLocation
- Position when the device is startedgeometry
- geometric objects
-
getGeoRegion
public GeoRegion getGeoRegion()
Get face object- Returns:
-
getRenderHeight
public float getRenderHeight()
Get render Height- Returns:
-
setRenderHeight
public void setRenderHeight(float renderHeight)
Set render Height- Parameters:
renderHeight
-
-
clear
public void clear()
Remove the object- Overrides:
clear
in classARGeometry
-
getPart
public Point2Ds getPart(int index)
Returns a child object of the specified ordinal number as a set of ordered points- Parameters:
index
-- Returns:
-
getPartCount
public int getPartCount()
Returns the number of children of this object- Overrides:
getPartCount
in classARGeometry
- Returns:
-
getPartArea
public float getPartArea(int partIndex)
Gets the area of the child object of the specified index- Parameters:
partIndex
-- Returns:
-
getPartCenterPoint
public Point3D getPartCenterPoint(int partIndex)
Gets the geometric center of the child object of the specified index- Parameters:
partIndex
-- 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:
-
-