com.supermap.mobjects.animation
类 BaseAnimationWay
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.mobjects.animation.AnimationGO
-
- com.supermap.mobjects.animation.BaseAnimationWay
-
- 所有已实现的接口:
- IDisposable
public class BaseAnimationWay extends AnimationGO
路径动画类(旧):该类提供了路径动画的一系列属性。
-
-
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 boolean
addPathPt(Point3D vecPath)
添加路径点boolean
addPathPts(Point3Ds pts3D)
添加路径点Point3Ds
getAllPathPt()
获取所有路径点int
getPathPtCount()
获取路径点的总数boolean
getPathTrackDir()
获取动画对象是否沿路径的切线方向AnimationDefine.PathType
getPathType()
获取路径类型Color
getTrackLineColor()
获取跟踪线的颜色double
getTrackLineWidth()
获取路径跟踪线的宽度boolean
insertPathPt(int index, Point3D vecPath)
插入路径点boolean
isShowPathTrack()
获取是否显示跟踪线void
removeAllPathPt()
移除所有的路径点boolean
removePathPtAt(int index)
移除指定索引位置的路径点boolean
setPathPt(int index, Point3D vecPath)
设置路径点void
setPathTrackDir(boolean bPathTrack)
设置动画对象是否沿路径的切线方向void
setPathType(AnimationDefine.PathType pathType)
设置路径的类型void
setTrackLineColor(Color nColor)
设置跟踪线的颜色void
setTrackLineWidth(Double width)
设置路径跟踪线的宽度void
showPathTrack(boolean bShowPathTrack)
设置是否显示跟踪线-
从类继承的方法 com.supermap.mobjects.animation.AnimationGO
dispose, getAnimation2DGeometry, getAnimation3DGeometry, getAnimationType, getCaption, getComplete, getDuration, getGeometryUuID, getName, getPlayType, getStartTime, setCaption, setDuration, setPlayType, setStartTime
-
-
-
-
方法详细资料
-
setPathType
public void setPathType(AnimationDefine.PathType pathType)
设置路径的类型- 参数:
pathType
- 路径类型
-
getPathType
public AnimationDefine.PathType getPathType()
获取路径类型- 返回:
- 路径类型
-
addPathPt
public boolean addPathPt(Point3D vecPath)
添加路径点- 参数:
vecPath
- 路径点- 返回:
- 成功返回TRUE,失败返回FALSE。
-
addPathPts
public boolean addPathPts(Point3Ds pts3D)
添加路径点- 参数:
pts3D
- 路径点串- 返回:
- 添加成功返回true,否则返回false
-
insertPathPt
public boolean insertPathPt(int index, Point3D vecPath)
插入路径点- 参数:
index
- 索引vecPath
- 路径点- 返回:
- 添加成功返回true,否则返回false
-
setPathPt
public boolean setPathPt(int index, Point3D vecPath)
设置路径点- 参数:
index
- 索引vecPath
- 路径点- 返回:
- 设置成功返回true,否则返回false
-
removePathPtAt
public boolean removePathPtAt(int index)
移除指定索引位置的路径点- 参数:
index
- 索引- 返回:
- 删除成功返回true,否则返回false
-
getPathPtCount
public int getPathPtCount()
获取路径点的总数- 返回:
- 路径点的总数
-
removeAllPathPt
public void removeAllPathPt()
移除所有的路径点
-
showPathTrack
public void showPathTrack(boolean bShowPathTrack)
设置是否显示跟踪线- 参数:
bShowPathTrack
- 是否显示跟踪线
-
isShowPathTrack
public boolean isShowPathTrack()
获取是否显示跟踪线- 返回:
- 是否显示跟踪线
-
setPathTrackDir
public void setPathTrackDir(boolean bPathTrack)
设置动画对象是否沿路径的切线方向- 参数:
bPathTrack
- 是否沿切线方向
-
getPathTrackDir
public boolean getPathTrackDir()
获取动画对象是否沿路径的切线方向- 返回:
- 是否沿切线方向
-
setTrackLineWidth
public void setTrackLineWidth(Double width)
设置路径跟踪线的宽度- 参数:
width
- 跟踪线的宽度
-
getTrackLineWidth
public double getTrackLineWidth()
获取路径跟踪线的宽度- 返回:
- 跟踪线的宽度
-
setTrackLineColor
public void setTrackLineColor(Color nColor)
设置跟踪线的颜色- 参数:
nColor
- 跟踪线的颜色
-
getTrackLineColor
public Color getTrackLineColor()
获取跟踪线的颜色- 返回:
- 跟踪线的颜色
-
getAllPathPt
public Point3Ds getAllPathPt()
获取所有路径点- 返回:
- 路径点集
-
-
Copyright © 2021–2024 SuperMap. All rights reserved.