com.supermap.ar.areffect.preset
Class ARGeoLine
- java.lang.Object
-
- com.supermap.ar.areffect.preset.BaseShape
-
- com.supermap.ar.areffect.preset.ARGeometry
-
- com.supermap.ar.areffect.preset.ARGeoLine
-
- Direct Known Subclasses:
- ARGeoDottedLine
public class ARGeoLine extends ARGeometry
AR line 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 ARGeoLine()
A constructor Transparent materials are used by defaultARGeoLine(BaseShape.MatType matType)
A constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description int[]
addPart(GeoLine geoLine, java.util.List<java.util.List<java.lang.Float>> heightsList)
Add child Objectsint
addPart(java.util.List<Point3D> pointList)
Add child Objectsint
addPart(Point2Ds point2Ds, java.util.List<java.lang.Float> heightList)
Add child Objectsvoid
addPoint3D(int part, int index, Point3D point3D)
void
addPoint3D(int part, Point3D point3D)
void
clear()
Clear all objectsvoid
clearDraw()
void
deletePoint3D(int part, int index)
void
drawLine(GeoLine geometry)
Draw geometric objectsGeoLine
getGeoLine()
Gets the geographic line objectAREffectElement
getParentElement()
Get the parent nodePoint3D
getPartCenterPoint(int partIndex)
Gets the center of the specified child object (not the center of a line segment)Point3D
getPartCenterPoint(int partIndex, int index)
Gets the midpoint of the line between the index point of the child object of the specified index and the next pointfloat
getPartLength(int partIndex)
Gets the total length of the specified child objectfloat
getPartLength(int partIndex, int index)
Gets the total length of the specified child objectPoint2Ds
getPartPoint2Ds(int index)
Gets the geographic coordinate point collection object of the child object of the specified indexfloat
getStripeLineRadius()
Get strip fillet radiusfloat
getStripeLineWidth()
Gets strip line widthvoid
reDrawByArPoint()
redrawvoid
reDrawByGeoPoint()
redrawboolean
removePart(int index)
Removes the child object of the corresponding indexvoid
resetGeometry()
Resetting geometry objectsvoid
setParentNode(AREffectElement element)
Setting the parent nodevoid
setParentNode(EffectView arView)
Setting the parent nodevoid
setStripeLineRadius(float radius)
Set strip fillet radiusvoid
setStripeLineWidth(float width)
Sets strip line widthvoid
updatePoint3D(int part, int index, Point3D point3D)
void
useStripeLine(boolean status)
Replace the original style with a striped style Note: Strip styles only work when parallel to the XOY plane-
Methods inherited from class com.supermap.ar.areffect.preset.ARGeometry
getPartCount, getPartPoint3Ds, getPartShape, getType, isEdit, 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
-
ARGeoLine
public ARGeoLine()
A constructor Transparent materials are used by default
-
ARGeoLine
public ARGeoLine(BaseShape.MatType matType)
A constructor- Parameters:
matType
- Material Type (Transparent/opaque)
-
-
Method Detail
-
addPart
public int addPart(java.util.List<Point3D> pointList)
Add child Objects- Parameters:
pointList
-- Returns:
-
addPart
public int addPart(Point2Ds point2Ds, java.util.List<java.lang.Float> heightList)
Add child Objects- Parameters:
point2Ds
-heightList
-- Returns:
-
addPart
public int[] addPart(GeoLine geoLine, java.util.List<java.util.List<java.lang.Float>> heightsList)
Add child Objects- Parameters:
geoLine
-heightsList
-- Returns:
- Adds an index array of subobjects back
-
drawLine
public void drawLine(GeoLine geometry)
Draw geometric objects- Parameters:
geometry
- Plane geometry object
-
reDrawByArPoint
public void reDrawByArPoint()
redraw
-
reDrawByGeoPoint
public void reDrawByGeoPoint()
redraw
-
removePart
public boolean removePart(int index)
Removes the child object of the corresponding index- Parameters:
index
-- Returns:
-
clearDraw
public void clearDraw()
-
clear
public void clear()
Clear all objects- Overrides:
clear
in classARGeometry
-
resetGeometry
public void resetGeometry()
Description copied from class:ARGeometry
Resetting geometry objects- Overrides:
resetGeometry
in classARGeometry
-
getGeoLine
public GeoLine getGeoLine()
Gets the geographic line object- Returns:
-
getPartLength
public float getPartLength(int partIndex)
Gets the total length of the specified child object- Parameters:
partIndex
-- Returns:
-
getPartLength
public float getPartLength(int partIndex, int index)
Gets the total length of the specified child object- Parameters:
partIndex
-index
-- Returns:
-
getPartCenterPoint
public Point3D getPartCenterPoint(int partIndex)
Gets the center of the specified child object (not the center of a line segment)- Parameters:
partIndex
-- Returns:
-
getPartCenterPoint
public Point3D getPartCenterPoint(int partIndex, int index)
Gets the midpoint of the line between the index point of the child object of the specified index and the next point- Parameters:
partIndex
-index
-- Returns:
-
useStripeLine
public void useStripeLine(boolean status)
Replace the original style with a striped style Note: Strip styles only work when parallel to the XOY plane- Parameters:
status
-
-
getStripeLineRadius
public float getStripeLineRadius()
Get strip fillet radius- Returns:
-
setStripeLineRadius
public void setStripeLineRadius(float radius)
Set strip fillet radius- Parameters:
radius
-
-
getStripeLineWidth
public float getStripeLineWidth()
Gets strip line width- Returns:
-
setStripeLineWidth
public void setStripeLineWidth(float width)
Sets strip line width- Parameters:
width
-
-
updatePoint3D
public void updatePoint3D(int part, int index, Point3D point3D)
- Overrides:
updatePoint3D
in classARGeometry
-
addPoint3D
public void addPoint3D(int part, int index, Point3D point3D)
- Overrides:
addPoint3D
in classARGeometry
-
addPoint3D
public void addPoint3D(int part, Point3D point3D)
-
deletePoint3D
public void deletePoint3D(int part, int index)
- Overrides:
deletePoint3D
in classARGeometry
-
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:
-
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:
-
-