com.supermap.ar.areffect.preset
Class ARGeoPrism
- java.lang.Object
-
- com.supermap.ar.areffect.preset.BaseShape
-
- com.supermap.ar.areffect.preset.ARGeometry
-
- com.supermap.ar.areffect.preset.ARGeoPrism
-
public class ARGeoPrism extends ARGeometry
AR prism geometry
-
-
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 ARGeoPrism()
The constructorARGeoPrism(BaseShape.MatType matType)
The constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description int[]
addPart(GeoRegion geoRegion, java.util.List<java.util.List<java.lang.Float>> heightsList, float prismHeight)
Add Partint
addPart(java.util.List<Point3D> pointList, float prismHeight)
Add Partint
addPart(Point2Ds point2Ds, java.util.List<java.lang.Float> heightList, float prismHeight)
Add Partvoid
clear()
Clear allGeoRegion
getGeoRegion()
Gets GeoRegionBaseShape
getOutLine()
Gets OutLineAREffectElement
getParentElement()
Get the parent nodePoint3D
getPartCenterPoint(int partIndex)
Gets The Part of CenterPointPoint2Ds
getPartPoint2Ds(int index)
Gets the geographic coordinate point collection object of the child object of the specified indexfloat
getPartVolume(int partIndex)
Gets PartVolumejava.util.List<java.lang.Float>
getPrismHeightList()
Gets Prism Heigh tListvoid
reDrawByArPoint()
ReDrawvoid
reDrawByGeoPoint()
ReDrawvoid
reDrawByNewHeight(java.util.List<java.lang.Float> prismHeightList)
ReDrawboolean
removePart(int index)
Remove Partvoid
setOutLine(BaseShape outLine)
Sets OutLinevoid
setParentNode(AREffectElement element)
Setting the parent nodevoid
setParentNode(EffectView arView)
Setting the parent node-
Methods inherited from class com.supermap.ar.areffect.preset.ARGeometry
addPoint3D, deletePoint3D, getPartCount, 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
-
ARGeoPrism
public ARGeoPrism()
The constructor
-
ARGeoPrism
public ARGeoPrism(BaseShape.MatType matType)
The constructor- Parameters:
matType
-
-
-
Method Detail
-
addPart
public int addPart(java.util.List<Point3D> pointList, float prismHeight)
Add Part- Parameters:
pointList
-prismHeight
-- Returns:
-
addPart
public int addPart(Point2Ds point2Ds, java.util.List<java.lang.Float> heightList, float prismHeight)
Add Part- Parameters:
point2Ds
-heightList
-prismHeight
-- Returns:
-
addPart
public int[] addPart(GeoRegion geoRegion, java.util.List<java.util.List<java.lang.Float>> heightsList, float prismHeight)
Add Part- Parameters:
geoRegion
-heightsList
-prismHeight
-- Returns:
-
reDrawByArPoint
public void reDrawByArPoint()
ReDraw
-
reDrawByGeoPoint
public void reDrawByGeoPoint()
ReDraw
-
reDrawByNewHeight
public void reDrawByNewHeight(java.util.List<java.lang.Float> prismHeightList)
ReDraw
-
removePart
public boolean removePart(int index)
Remove Part- Parameters:
index
-- Returns:
-
clear
public void clear()
Clear all- Overrides:
clear
in classARGeometry
-
getOutLine
public BaseShape getOutLine()
Gets OutLine- Returns:
-
setOutLine
public void setOutLine(BaseShape outLine)
Sets OutLine- Parameters:
outLine
-
-
getGeoRegion
public GeoRegion getGeoRegion()
Gets GeoRegion- Returns:
-
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:
-
getPartVolume
public float getPartVolume(int partIndex)
Gets PartVolume- Returns:
-
getPartCenterPoint
public Point3D getPartCenterPoint(int partIndex)
Gets The Part of CenterPoint- Parameters:
partIndex
-- Returns:
-
getPrismHeightList
public java.util.List<java.lang.Float> getPrismHeightList()
Gets Prism Heigh tList- 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:
-
-