|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.animation.AGAnimationUtils
public class AGAnimationUtils
Class containing common implementation of utility methods.
Constructor Summary | |
---|---|
AGAnimationUtils()
Constructs a AGAnimationUtils using ArcGIS Engine. |
|
AGAnimationUtils(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. AGAnimationUtils theAGAnimationUtils = (AGAnimationUtils) obj; |
Method Summary | |
---|---|
void |
addIAnimationEventsListener(IAnimationEvents theListener)
addIAnimationEventsListener. |
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 |
enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
enumConnectionPoints |
boolean |
equals(Object o)
Compare this object with another |
void |
findConnectionPoint(GUID riid,
IConnectionPoint[] ppCP)
findConnectionPoint |
void |
getCameraProperties(IAGAnimationContainer pContainer,
IDoubleArray[] ppCameraProps)
The camera properties. |
static String |
getClsid()
getClsid. |
void |
getOffScreenBitmapHandle(IAGAnimationContainer pContainer,
int[] phBitmap)
The bitmap handle from an offscreen rendering buffer. |
void |
getOffScreenTiledBitmapHandle(IAGAnimationContainer pContainer,
tagRECT pOutputRect,
int[] phBitmap)
The tiled bitmap handle from an offscreen rendering buffer. |
void |
getWindowBitmapHandle(IAGAnimationContainer pContainer,
int[] phBitmap)
The bitmap handle from an OpenGL or GDI rendered window. |
int |
hashCode()
the hashcode for this object |
boolean |
isBBoxNavigationMode(IAGAnimationContainer pContainer)
Indicates bounding box navigation mode. |
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 |
pauseAnimation()
Pauses the playing or recording of the animation. |
void |
playAnimation(IAGAnimationTracks pTracks,
IAGAnimationEnvironment pEnvironment,
IStatusBar pStatusBar)
Plays the animation according to the animation environment options. |
void |
recordAnimation(IAGAnimationTracks pTracks,
IAGAnimationEnvironment pEnvironment,
boolean bOverwrite)
Records a view animation. |
void |
removeIAnimationEventsListener(IAnimationEvents theListener)
removeIAnimationEventsListener. |
void |
restorePreviousContext(IAGAnimationContainer pContainer)
Restores the OpenGL rendering context after offscreen video export. |
void |
saveAnimationFile(IAGAnimationContainer pContainer,
String pFilename,
int version)
Save the animation to a file. |
void |
setBBoxNavigationMode(IAGAnimationContainer pContainer,
boolean pbBBoxMode)
Indicates bounding box navigation mode. |
void |
stopAnimation()
Stops playing or recording the animation. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public AGAnimationUtils() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic AGAnimationUtils(Object obj) throws IOException
AGAnimationUtils theAGAnimationUtils = (AGAnimationUtils) obj;
obj
to AGAnimationUtils
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void addIAnimationEventsListener(IAnimationEvents theListener) throws IOException
theListener
- An object that implements the com.esri.arcgis.animation.IAnimationEvents interface.
IOException
- If there are communications problems.public void removeIAnimationEventsListener(IAnimationEvents theListener) throws IOException
theListener
- An object that implements the com.esri.arcgis.animation.IAnimationEvents interface.
IOException
- If there are communications problems.public void playAnimation(IAGAnimationTracks pTracks, IAGAnimationEnvironment pEnvironment, IStatusBar pStatusBar) throws IOException, AutomationException
playAnimation
in interface IAGAnimationPlayer
pTracks
- A reference to a com.esri.arcgis.animation.IAGAnimationTracks (in)pEnvironment
- A reference to a com.esri.arcgis.animation.IAGAnimationEnvironment (in)pStatusBar
- A reference to a com.esri.arcgis.system.IStatusBar (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void recordAnimation(IAGAnimationTracks pTracks, IAGAnimationEnvironment pEnvironment, boolean bOverwrite) throws IOException, AutomationException
recordAnimation
in interface IAGAnimationPlayer
pTracks
- A reference to a com.esri.arcgis.animation.IAGAnimationTracks (in)pEnvironment
- A reference to a com.esri.arcgis.animation.IAGAnimationEnvironment (in)bOverwrite
- The bOverwrite (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void pauseAnimation() throws IOException, AutomationException
pauseAnimation
in interface IAGAnimationPlayer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void stopAnimation() throws IOException, AutomationException
stopAnimation
in interface IAGAnimationPlayer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
createLayerGroupAnimation
in interface IAGAnimationUtils
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.public 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.
createFlybyFromPath
in interface IAGAnimationUtils
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.public 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.
keyframeFromBookmark
in interface IAGAnimationUtils
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.public 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).
captureCurrentView
in interface IAGAnimationUtils
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.public 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.
calculateDisplayFrames
in interface IAGAnimationUtils
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.public 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.
saveAnimationFile
in interface IAGAnimationUtils
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.public void loadAnimationFile(IAGAnimationContainer pContainer, String pFilename) throws IOException, AutomationException
Load an animation file into an animation container as specified by pContainer.
loadAnimationFile
in interface IAGAnimationUtils
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.public void getCameraProperties(IAGAnimationContainer pContainer, IDoubleArray[] ppCameraProps) throws IOException, AutomationException
getCameraProperties
in interface IVideoExportUtils2
pContainer
- A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)ppCameraProps
- A reference to a com.esri.arcgis.system.IDoubleArray (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void restorePreviousContext(IAGAnimationContainer pContainer) throws IOException, AutomationException
restorePreviousContext
in interface IVideoExportUtils
pContainer
- A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getOffScreenBitmapHandle(IAGAnimationContainer pContainer, int[] phBitmap) throws IOException, AutomationException
getOffScreenBitmapHandle
in interface IVideoExportUtils
pContainer
- A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)phBitmap
- The phBitmap (A COM typedef) (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getWindowBitmapHandle(IAGAnimationContainer pContainer, int[] phBitmap) throws IOException, AutomationException
getWindowBitmapHandle
in interface IVideoExportUtils
pContainer
- A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)phBitmap
- The phBitmap (A COM typedef) (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getOffScreenTiledBitmapHandle(IAGAnimationContainer pContainer, tagRECT pOutputRect, int[] phBitmap) throws IOException, AutomationException
Using this method, you can export a custom resolution image (bitmap) from map or globe. The bitmap handle returned can be used to create a bitmap on disk. This method makes use of the offscreen rendering, which allows you to capture the bitmap even if a window is covering the main viewer. Offscreen rendering works best if your application window is maximized.
getOffScreenTiledBitmapHandle
in interface IVideoExportUtils
pContainer
- A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)pOutputRect
- A Structure: com.esri.arcgis.system.tagRECT (in)phBitmap
- The phBitmap (A COM typedef) (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isBBoxNavigationMode(IAGAnimationContainer pContainer) throws IOException, AutomationException
isBBoxNavigationMode
in interface IVideoExportUtils
pContainer
- A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setBBoxNavigationMode(IAGAnimationContainer pContainer, boolean pbBBoxMode) throws IOException, AutomationException
setBBoxNavigationMode
in interface IVideoExportUtils
pContainer
- A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)pbBBoxMode
- The pbBBoxMode (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void enumConnectionPoints(IEnumConnectionPoints[] ppEnum) throws IOException, AutomationException
IConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.
enumConnectionPoints
in interface IConnectionPointContainer
ppEnum
- A reference to a com.esri.arcgis.display.IEnumConnectionPoints (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void findConnectionPoint(GUID riid, IConnectionPoint[] ppCP) throws IOException, AutomationException
IConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.
findConnectionPoint
in interface IConnectionPointContainer
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)ppCP
- A reference to a com.esri.arcgis.display.IConnectionPoint (out: use single element array)
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 |