|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAGAnimationUtils
Provides access to animation utility methods.
This interface provides utility functions for creating group animation, creating flyby-from-path animation, converting bookmark to a map view keyframe, capturing current view into a map view keyframe, calculating minimum number of frames for an animation, and save/load animation.
Method Summary | |
---|---|
void |
calculateDisplayFrames(IAGAnimationTracks pTracks,
int[] pFrames)
Calculate the number of frames to display based on the minimum animation interval. |
void |
captureCurrentView(IAGAnimationTracks pTracks,
IAGAnimationEnvironment pEnvironment)
Creates a keyframe to capture the current view and adds it to the current animation. |
void |
createFlybyFromPath(IAGAnimationContainer pContainer,
IAGImportPathOptions pOptions)
Create a flyby animation from a path. |
void |
createLayerGroupAnimation(IAGAnimationContainer pContainer,
IAGGroupAnimationOptions pOptions)
Create a layer group animation. |
void |
keyframeFromBookmark(IAGAnimationContainer pContainer,
ISpatialBookmark pBookmark,
IAGKeyframe[] ppKeyframe)
Create a view keyframe from a spatial bookmark. |
void |
loadAnimationFile(IAGAnimationContainer pContainer,
String pFilename)
Load the animation from a file. |
void |
saveAnimationFile(IAGAnimationContainer pContainer,
String pFilename,
int version)
Save the animation to a file. |
Method Detail |
---|
void createLayerGroupAnimation(IAGAnimationContainer pContainer, IAGGroupAnimationOptions pOptions) throws IOException, AutomationException
This utility function creates a group animation for the animation container specified by pContainer. Other options, such as the input layers, are specified by pOptions.
pContainer
- A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)pOptions
- A reference to a com.esri.arcgis.animation.IAGGroupAnimationOptions (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void createFlybyFromPath(IAGAnimationContainer pContainer, IAGImportPathOptions pOptions) throws IOException, AutomationException
This utility function creates a flyby-from-path animation track for the animation container specified by pContainer. Other options, such as the flyby path, are specified in pOptions.
pContainer
- A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)pOptions
- A reference to a com.esri.arcgis.animation.IAGImportPathOptions (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void keyframeFromBookmark(IAGAnimationContainer pContainer, ISpatialBookmark pBookmark, IAGKeyframe[] ppKeyframe) throws IOException, AutomationException
This utility function converts spatial bookmarks to keyframes. The input bookmark is specified by pBookmark. The output keyframe is specified by ppKeyframe.
pContainer
- A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)pBookmark
- A reference to a com.esri.arcgis.carto.ISpatialBookmark (in)ppKeyframe
- A reference to a com.esri.arcgis.animation.IAGKeyframe (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void captureCurrentView(IAGAnimationTracks pTracks, IAGAnimationEnvironment pEnvironment) throws IOException, AutomationException
This utility function captures a current view extent into a map view keyframe and add it to the animation track container (pTracks).
pTracks
- A reference to a com.esri.arcgis.animation.IAGAnimationTracks (in)pEnvironment
- A reference to a com.esri.arcgis.animation.IAGAnimationEnvironment (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void calculateDisplayFrames(IAGAnimationTracks pTracks, int[] pFrames) throws IOException, AutomationException
This utility function calculates the minimum number of frames required by a time animation to show every detail in the data. The calculation is based on the minimum time interval and the span of the time tracks. The input animation tracks are specified by pTracks, and the output number is stored in pFrames.
pTracks
- A reference to a com.esri.arcgis.animation.IAGAnimationTracks (in)pFrames
- The pFrames (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void saveAnimationFile(IAGAnimationContainer pContainer, String pFilename, int version) throws IOException, AutomationException
This is the utility function to save an animation as a file. When an animation is saved as a file, all the animation environment settings, keyframe and track properties from the animation container (specified by pContainer) are persisted.
pContainer
- A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)pFilename
- The pFilename (in)version
- A com.esri.arcgis.system.esriArcGISVersion constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void loadAnimationFile(IAGAnimationContainer pContainer, String pFilename) throws IOException, AutomationException
Load an animation file into an animation container as specified by pContainer.
pContainer
- A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)pFilename
- The pFilename (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |