bool DiHdfImporter::execute(PlugInArgList* pInArgList, PlugInArgList* pOutArgList) { if (!RasterElementImporterShell::execute(pInArgList, pOutArgList)) { return false; } SpatialDataView* pView = (pOutArgList == NULL) ? NULL : pOutArgList->getPlugInArgValue<SpatialDataView>("View"); if (pView != NULL) { if (pView->createDefaultAnimation() == NULL) { return false; } AnimationController* pController = Service<AnimationServices>()->getAnimationController(pView->getName()); if (pController == NULL) { return false; } pController->setAnimationCycle(REPEAT); pController->setCanDropFrames(false); pController->setIntervalMultiplier(2); AnimationToolBar* pToolbar = static_cast<AnimationToolBar*>(Service<DesktopServices>()->getWindow("Animation", TOOLBAR)); VERIFY(pToolbar); pToolbar->setAnimationController(pController); } return true; }