com.supermap.ar.areffect.preset
Class ARGeometry
- java.lang.Object
-
- com.supermap.ar.areffect.preset.BaseShape
-
- com.supermap.ar.areffect.preset.ARGeometry
-
- Direct Known Subclasses:
- ARGeoHorizontalRegion, ARGeoLine, ARGeoPoint, ARGeoPrism, ARGeoRegion2, ARGeoVerticalRegion
public abstract class ARGeometry extends BaseShape
AR geometry object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
ARGeometry.ARGeometryType
type-
Nested classes/interfaces inherited from class com.supermap.ar.areffect.preset.BaseShape
BaseShape.MatType, BaseShape.Mode
-
-
Constructor Summary
Constructors Constructor and Description ARGeometry()
constructor Transparent materials are used by defaultARGeometry(BaseShape.MatType matType)
constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
addPoint3D(int part, int index, Point3D point3D)
void
clear()
clearvoid
deletePoint3D(int part, int index)
AREffectElement
getParentElement()
Get the parent nodeint
getPartCount()
Gets the number of child objectsjava.util.List<Point3D>
getPartPoint3Ds(int index)
Gets the AR coordinate point set for the child object of the specified indexBaseShape
getPartShape(int index)
Gets the AR Shape object for the child of the specified indexARGeometry.ARGeometryType
getType()
Returns the type of the AR geometry objectboolean
isEdit()
void
resetGeometry()
Resetting geometry objectsvoid
select()
Selectedvoid
setEdit(boolean edit)
void
setParentNode(AREffectElement element)
Setting the parent nodevoid
setParentNode(EffectView arView)
Setting the parent nodevoid
setSelectionColor(Color color)
Sets the color of the rendering object under the selection statusvoid
unSelect()
Cancel the selected statusvoid
updatePoint3D(int part, int index, Point3D point3D)
-
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
-
ARGeometry
public ARGeometry(BaseShape.MatType matType)
constructor- Parameters:
matType
- Material Type (Transparent/opaque)
-
ARGeometry
public ARGeometry()
constructor Transparent materials are used by default
-
-
Method Detail
-
getType
public ARGeometry.ARGeometryType getType()
Returns the type of the AR geometry object- Returns:
-
getPartShape
public BaseShape getPartShape(int index)
Gets the AR Shape object for the child of the specified index- Parameters:
index
-- Returns:
-
getPartPoint3Ds
public java.util.List<Point3D> getPartPoint3Ds(int index)
Gets the AR coordinate point set for the child object of the specified index- Parameters:
index
-- Returns:
-
getPartCount
public int getPartCount()
Gets the number of child objects- Returns:
-
setSelectionColor
public void setSelectionColor(Color color)
Description copied from class:BaseShape
Sets the color of the rendering object under the selection status- Overrides:
setSelectionColor
in classBaseShape
-
select
public void select()
Description copied from class:BaseShape
Selected
-
unSelect
public void unSelect()
Description copied from class:BaseShape
Cancel the selected status
-
updatePoint3D
public void updatePoint3D(int part, int index, Point3D point3D)
-
deletePoint3D
public void deletePoint3D(int part, int index)
-
addPoint3D
public void addPoint3D(int part, int index, Point3D point3D)
-
resetGeometry
public void resetGeometry()
Resetting geometry objects
-
isEdit
public boolean isEdit()
-
setEdit
public void setEdit(boolean edit)
-
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:
-
-