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 voidaddPart(java.util.List<Point3D> pointList)voidclear()Remove the objectvoiddrawRegion(float startUpAzimuth, Location startUpLocation, GeoRegion geometry)Draw geometric objectsvoiddrawRegion(GeoRegion geometry)Draw geometric objectsvoiddrawRegion(java.util.List<Point3D> pointList)tempGeoRegiongetGeoRegion()Get face objectAREffectElementgetParentElement()Get the parent nodePoint2DsgetPart(int index)Returns a child object of the specified ordinal number as a set of ordered pointsfloatgetPartArea(int partIndex)Gets the area of the child object of the specified indexPoint3DgetPartCenterPoint(int partIndex)Gets the geometric center of the child object of the specified indexintgetPartCount()Returns the number of children of this objectfloatgetRenderHeight()Get render HeightvoidsetParentNode(AREffectElement element)Setting the parent nodevoidsetParentNode(EffectView arView)Setting the parent nodevoidsetRenderHeight(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:
clearin 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:
getPartCountin 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:
-
-