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 int
addPart(GeoPoint geoPoint, float height)
Add the objectint
addPart(Point2D wgsPoint, float height)
Add the objectint
addPart(Point3D arPoint)
void
clear()
clearvoid
drawPoint(GeoPoint geometry)
Draw geometric objectsjava.util.List<GeoPoint>
getGeoPoint()
Gets a set of geographic pointsAREffectElement
getParentElement()
Get the parent nodeint
getPartCount()
Gets the number of child objectsPoint2Ds
getPartPoint2Ds(int index)
Gets the geographic coordinate point collection object of the child object of the specified indexPoint3D
getPartPoint3D(int index)
void
reDrawByArPoint()
Redrawvoid
reDrawByGeoPoint()
Redraw (height does not change)void
removeLastPoint3D()
boolean
removePart(int index)
Removes the specified ordinal child object from a point setvoid
setParentNode(AREffectElement element)
Setting the parent nodevoid
setParentNode(EffectView arView)
Setting the parent nodevoid
updatePoint3D(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:ARGeometry
clear- Overrides:
clear
in 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:ARGeometry
Gets the number of child objects- Overrides:
getPartCount
in 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:ARGeometry
Gets 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:
updatePoint3D
in 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:
-
-