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 booleanaddPathPt(Point3D vecPath)Adds path pointsbooleanaddPathPts(Point3Ds pts3D)Adds path point groupsPoint3DsgetAllPathPt()Gets all path pointsintgetPathPtCount()Gets the number of path pointsbooleangetPathTrackDir()Gets whether to set the tangential line directionAnimationDefine.PathTypegetPathType()Gets path typesColorgetTrackLineColor()Gets the color of path linedoublegetTrackLineWidth()Gets the width of path linebooleaninsertPathPt(int index, Point3D vecPath)Inserts path pointsbooleanisShowPathTrack()Sets whether to display paths.voidremoveAllPathPt()Removes all path pointsbooleanremovePathPtAt(int index)Removes the path point with specified sequence numberbooleansetPathPt(int index, Point3D vecPath)Sets the path point with specified sequence numbervoidsetPathTrackDir(boolean bPathTrack)Whether to set the tangential line directionvoidsetPathType(AnimationDefine.PathType pathType)Sets path typesvoidsetTrackLineColor(Color nColor)Sets the color of path linevoidsetTrackLineWidth(java.lang.Double width)Sets the width of path linevoidshowPathTrack(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
-
-