com.supermap.ar.areffect.preset
Class ARGeoPoint
- java.lang.Object
-
- com.supermap.ar.areffect.preset.BaseShape
-
- com.supermap.ar.areffect.preset.ARGeometry
-
- com.supermap.ar.areffect.preset.ARGeoPoint
-
public class ARGeoPoint extends ARGeometry
AR point object
-
-
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 ARGeoPoint()A constructor Transparent materials are used by defaultARGeoPoint(BaseShape.MatType matType)A constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intaddPart(GeoPoint geoPoint, float height)Add the objectintaddPart(Point2D wgsPoint, float height)Add the objectintaddPart(Point3D arPoint)voidclear()clearvoiddrawPoint(GeoPoint geometry)Draw geometric objectsjava.util.List<GeoPoint>getGeoPoint()Gets a set of geographic pointsAREffectElementgetParentElement()Get the parent nodeintgetPartCount()Gets the number of child objectsPoint2DsgetPartPoint2Ds(int index)Gets the geographic coordinate point collection object of the child object of the specified indexPoint3DgetPartPoint3D(int index)voidreDrawByArPoint()RedrawvoidreDrawByGeoPoint()Redraw (height does not change)voidremoveLastPoint3D()booleanremovePart(int index)Removes the specified ordinal child object from a point setvoidsetParentNode(AREffectElement element)Setting the parent nodevoidsetParentNode(EffectView arView)Setting the parent nodevoidupdatePoint3D(int part, int index, Point3D point3D)-
Methods inherited from class com.supermap.ar.areffect.preset.ARGeometry
addPoint3D, deletePoint3D, getPartPoint3Ds, getPartShape, getType, isEdit, resetGeometry, 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
-
ARGeoPoint
public ARGeoPoint()
A constructor Transparent materials are used by default
-
ARGeoPoint
public ARGeoPoint(BaseShape.MatType matType)
A constructor- Parameters:
matType- Material Type (Transparent/opaque)
-
-
Method Detail
-
addPart
public int addPart(Point3D arPoint)
- Parameters:
arPoint-- Returns:
- Returns the serial number of the object
-
addPart
public int addPart(Point2D wgsPoint, float height)
Add the object- Parameters:
wgsPoint-height- Note, if it is a point on the ground, the height of the phone is usually set to positive (e.g. 1.3F), and this method is 0.0F- Returns:
-
addPart
public int addPart(GeoPoint geoPoint, float height)
Add the object- Parameters:
geoPoint-height-- Returns:
-
removePart
public boolean removePart(int index)
Removes the specified ordinal child object from a point set- Parameters:
index-- Returns:
-
reDrawByArPoint
public void reDrawByArPoint()
Redraw
-
reDrawByGeoPoint
public void reDrawByGeoPoint()
Redraw (height does not change)
-
clear
public void clear()
Description copied from class:ARGeometryclear- Overrides:
clearin classARGeometry
-
getPartPoint3D
public Point3D getPartPoint3D(int index)
-
removeLastPoint3D
public void removeLastPoint3D()
-
getGeoPoint
public java.util.List<GeoPoint> getGeoPoint()
Gets a set of geographic points- Returns:
-
getPartCount
public int getPartCount()
Description copied from class:ARGeometryGets the number of child objects- Overrides:
getPartCountin classARGeometry- Returns:
-
drawPoint
public void drawPoint(GeoPoint geometry)
Draw geometric objects- Parameters:
GeoPoint- Plane geometry object
-
getPartPoint2Ds
public Point2Ds getPartPoint2Ds(int index)
Description copied from class:ARGeometryGets the geographic coordinate point collection object of the child object of the specified index- Returns:
-
updatePoint3D
public void updatePoint3D(int part, int index, Point3D point3D)- Overrides:
updatePoint3Din classARGeometry
-
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:
-
-