com.supermap.plot
Class AnimationWay
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.plot.AnimationGO
-
- com.supermap.plot.AnimationWay
-
public class AnimationWay extends AnimationGO
Path animation
-
-
Constructor Summary
Constructors Constructor and Description AnimationWay()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description boolean
addPathPt(Point3D vecPath)
Adds path pointsboolean
addPathPts(Point3Ds pts3D)
Adds path point groupsPoint3Ds
getAllPathPt()
Gets all path pointsint
getPathPtCount()
Gets the number of path pointsboolean
getPathTrackDir()
Gets whether to set the tangential line directionAnimationDefine.PathType
getPathType()
Gets path typesColor
getTrackLineColor()
Gets the color of path linedouble
getTrackLineWidth()
Gets the width of path lineboolean
insertPathPt(int index, Point3D vecPath)
Inserts path pointsboolean
isShowPathTrack()
Sets whether to display paths.void
removeAllPathPt()
Removes all path pointsboolean
removePathPtAt(int index)
Removes the path point with specified sequence numberboolean
setPathPt(int index, Point3D vecPath)
Sets the path point with specified sequence numbervoid
setPathTrackDir(boolean bPathTrack)
Whether to set the tangential line directionvoid
setPathType(AnimationDefine.PathType pathType)
Sets path typesvoid
setTrackLineColor(Color nColor)
Sets the color of path linevoid
setTrackLineWidth(java.lang.Double width)
Sets the width of path linevoid
showPathTrack(boolean bShowPathTrack)
Sets whether to display paths.-
Methods inherited from class com.supermap.plot.AnimationGO
dispose, fromXml, getAnimationType, getDuration, getGeometry, getLayerName, getName, getStartTime, setDuration, setGeometry, setName, setStartTime, toXml
-
-
-
-
Method Detail
-
setPathType
public void setPathType(AnimationDefine.PathType pathType)
Sets path types- Parameters:
pathType
- path types
-
getPathType
public AnimationDefine.PathType getPathType()
Gets path types- Returns:
- path types.
-
addPathPt
public boolean addPathPt(Point3D vecPath)
Adds path points- Parameters:
vecPath
- path points- Returns:
- whether the adding is successful.
-
addPathPts
public boolean addPathPts(Point3Ds pts3D)
Adds path point groups- Parameters:
pts3D
- path point groups- Returns:
- whether the adding is successful.
-
insertPathPt
public boolean insertPathPt(int index, Point3D vecPath)
Inserts path points- Parameters:
index
- Inserted positionvecPath
- path points- Returns:
- whether the inserting is successful.
-
setPathPt
public boolean setPathPt(int index, Point3D vecPath)
Sets the path point with specified sequence number- Parameters:
index
- the sequence numbervecPath
- path points- Returns:
- whether succeed
-
removePathPtAt
public boolean removePathPtAt(int index)
Removes the path point with specified sequence number- Parameters:
index
- the sequence number- Returns:
- removal was successful.
-
getPathPtCount
public int getPathPtCount()
Gets the number of path points- Returns:
- Number
-
removeAllPathPt
public void removeAllPathPt()
Removes all path points
-
showPathTrack
public void showPathTrack(boolean bShowPathTrack)
Sets whether to display paths.- Parameters:
bShowPathTrack
- display paths
-
isShowPathTrack
public boolean isShowPathTrack()
Sets whether to display paths.- Returns:
- Display paths.
-
setPathTrackDir
public void setPathTrackDir(boolean bPathTrack)
Whether to set the tangential line direction- Parameters:
bPathTrack
- the tangential line direction
-
getPathTrackDir
public boolean getPathTrackDir()
Gets whether to set the tangential line direction- Returns:
- the tangential line direction
-
setTrackLineWidth
public void setTrackLineWidth(java.lang.Double width)
Sets the width of path line- Parameters:
width
- the width of path line
-
getTrackLineWidth
public double getTrackLineWidth()
Gets the width of path line- Returns:
- the width of path line
-
setTrackLineColor
public void setTrackLineColor(Color nColor)
Sets the color of path line- Parameters:
nColor
- the color of path line
-
getTrackLineColor
public Color getTrackLineColor()
Gets the color of path line- Returns:
- the color of path line
-
getAllPathPt
public Point3Ds getAllPathPt()
Gets all path points- Returns:
- the group of path points
-
-