|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.arcgis.animation.AGAnimationUtils
Class containing common implementation of utility methods.
| Constructor Summary | |
AGAnimationUtils()
Constructs a AGAnimationUtils using ArcGIS Engine. |
|
AGAnimationUtils(java.lang.Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. |
|
| Method Summary | |
void |
addIAnimationEventsListener(IAnimationEvents theListener)
|
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)
Supported Platforms |
boolean |
equals(java.lang.Object o)
Compare this object with another |
void |
findConnectionPoint(GUID riid,
IConnectionPoint[] ppCP)
Supported Platforms |
IAGAnimationPlayer |
getAsIAGAnimationPlayer()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IAGAnimationUtils |
getAsIAGAnimationUtils()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IConnectionPointContainer |
getAsIConnectionPointContainer()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IVideoExportUtils |
getAsIVideoExportUtils()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
static java.lang.String |
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)
The bounding box navigation mode. |
void |
keyframeFromBookmark(IAGAnimationContainer pContainer,
ISpatialBookmark pBookmark,
IAGKeyframe[] ppKeyframe)
Create a view keyframe from a spatial bookmark. |
void |
loadAnimationFile(IAGAnimationContainer pContainer,
java.lang.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)
|
void |
restorePreviousContext(IAGAnimationContainer pContainer)
Restores the OpenGL rendering context after offscreen video export. |
void |
saveAnimationFile(IAGAnimationContainer pContainer,
java.lang.String pFilename,
int version)
Save the animation to a file. |
void |
setBBoxNavigationMode(IAGAnimationContainer pContainer,
boolean pbBBoxMode)
The 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 |
| Constructor Detail |
public AGAnimationUtils()
throws java.io.IOException,
java.net.UnknownHostException
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems
public AGAnimationUtils(java.lang.Object obj)
throws java.io.IOException
obj to AGAnimationUtils. AGAnimationUtils theAGAnimationUtils = (AGAnimationUtils) obj;
obj - an object returned from ArcGIS Engine or Server
java.io.IOException - if there are interop problems| Method Detail |
public static java.lang.String getClsid()
public IAGAnimationPlayer getAsIAGAnimationPlayer()
public IAGAnimationUtils getAsIAGAnimationUtils()
public IVideoExportUtils getAsIVideoExportUtils()
public IConnectionPointContainer getAsIConnectionPointContainer()
public boolean equals(java.lang.Object o)
public int hashCode()
public void addIAnimationEventsListener(IAnimationEvents theListener)
throws java.io.IOException
java.io.IOException
public void removeIAnimationEventsListener(IAnimationEvents theListener)
throws java.io.IOException
java.io.IOException
public void playAnimation(IAGAnimationTracks pTracks,
IAGAnimationEnvironment pEnvironment,
IStatusBar pStatusBar)
throws java.io.IOException,
AutomationException
IAGAnimationPlayer
playAnimation in interface IAGAnimationPlayerpTracks - 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)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void recordAnimation(IAGAnimationTracks pTracks,
IAGAnimationEnvironment pEnvironment,
boolean bOverwrite)
throws java.io.IOException,
AutomationException
IAGAnimationPlayer
recordAnimation in interface IAGAnimationPlayerpTracks - 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)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void pauseAnimation()
throws java.io.IOException,
AutomationException
IAGAnimationPlayer
pauseAnimation in interface IAGAnimationPlayerAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void stopAnimation()
throws java.io.IOException,
AutomationException
IAGAnimationPlayer
stopAnimation in interface IAGAnimationPlayerAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void createLayerGroupAnimation(IAGAnimationContainer pContainer,
IAGGroupAnimationOptions pOptions)
throws java.io.IOException,
AutomationException
IAGAnimationUtilsThis 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 IAGAnimationUtilspContainer - A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)pOptions - A reference to a com.esri.arcgis.animation.IAGGroupAnimationOptions (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void createFlybyFromPath(IAGAnimationContainer pContainer,
IAGImportPathOptions pOptions)
throws java.io.IOException,
AutomationException
IAGAnimationUtilsThis 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 IAGAnimationUtilspContainer - A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)pOptions - A reference to a com.esri.arcgis.animation.IAGImportPathOptions (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void keyframeFromBookmark(IAGAnimationContainer pContainer,
ISpatialBookmark pBookmark,
IAGKeyframe[] ppKeyframe)
throws java.io.IOException,
AutomationException
IAGAnimationUtilsThis utility function converts spatial bookmarks to keyframes. The input bookmark is specified by pBookmark. The output keyframe is specified by ppKeyframe.
keyframeFromBookmark in interface IAGAnimationUtilspContainer - 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)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void captureCurrentView(IAGAnimationTracks pTracks,
IAGAnimationEnvironment pEnvironment)
throws java.io.IOException,
AutomationException
IAGAnimationUtilsThis utility function captures a current view extent into a map view keyframe and add it to the animation track container (pTracks).
captureCurrentView in interface IAGAnimationUtilspTracks - A reference to a com.esri.arcgis.animation.IAGAnimationTracks (in)pEnvironment - A reference to a com.esri.arcgis.animation.IAGAnimationEnvironment (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void calculateDisplayFrames(IAGAnimationTracks pTracks,
int[] pFrames)
throws java.io.IOException,
AutomationException
IAGAnimationUtilsThis 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 IAGAnimationUtilspTracks - A reference to a com.esri.arcgis.animation.IAGAnimationTracks (in)pFrames - The pFrames (out: use single element array)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void saveAnimationFile(IAGAnimationContainer pContainer,
java.lang.String pFilename,
int version)
throws java.io.IOException,
AutomationException
IAGAnimationUtilsThis 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 IAGAnimationUtilspContainer - A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)pFilename - The pFilename (in)version - A com.esri.arcgis.system.esriArcGISVersion constant (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void loadAnimationFile(IAGAnimationContainer pContainer,
java.lang.String pFilename)
throws java.io.IOException,
AutomationException
IAGAnimationUtilsLoad an animation file into an animation container as specified by pContainer.
loadAnimationFile in interface IAGAnimationUtilspContainer - A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)pFilename - The pFilename (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void restorePreviousContext(IAGAnimationContainer pContainer)
throws java.io.IOException,
AutomationException
IVideoExportUtils
restorePreviousContext in interface IVideoExportUtilspContainer - A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getOffScreenBitmapHandle(IAGAnimationContainer pContainer,
int[] phBitmap)
throws java.io.IOException,
AutomationException
IVideoExportUtils
getOffScreenBitmapHandle in interface IVideoExportUtilspContainer - A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)phBitmap - The phBitmap (A COM typedef) (out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getWindowBitmapHandle(IAGAnimationContainer pContainer,
int[] phBitmap)
throws java.io.IOException,
AutomationException
IVideoExportUtils
getWindowBitmapHandle in interface IVideoExportUtilspContainer - A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)phBitmap - The phBitmap (A COM typedef) (out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getOffScreenTiledBitmapHandle(IAGAnimationContainer pContainer,
tagRECT pOutputRect,
int[] phBitmap)
throws java.io.IOException,
AutomationException
IVideoExportUtilsUsing 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 IVideoExportUtilspContainer - A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)pOutputRect - A Structure: com.esri.arcgis.display.tagRECT (in)phBitmap - The phBitmap (A COM typedef) (out: use single element array)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public boolean isBBoxNavigationMode(IAGAnimationContainer pContainer)
throws java.io.IOException,
AutomationException
IVideoExportUtils
isBBoxNavigationMode in interface IVideoExportUtilspContainer - A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setBBoxNavigationMode(IAGAnimationContainer pContainer,
boolean pbBBoxMode)
throws java.io.IOException,
AutomationException
IVideoExportUtils
setBBoxNavigationMode in interface IVideoExportUtilspContainer - A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)pbBBoxMode - The pbBBoxMode (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
throws java.io.IOException,
AutomationException
IConnectionPointContainerIConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.
enumConnectionPoints in interface IConnectionPointContainerppEnum - A reference to a com.esri.arcgis.display.IEnumConnectionPoints (out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void findConnectionPoint(GUID riid,
IConnectionPoint[] ppCP)
throws java.io.IOException,
AutomationException
IConnectionPointContainerIConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.
findConnectionPoint in interface IConnectionPointContainerriid - 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)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||