本文整理汇总了Java中com.panoramagl.enumerations.PLTransitionProcessingType类的典型用法代码示例。如果您正苦于以下问题:Java PLTransitionProcessingType类的具体用法?Java PLTransitionProcessingType怎么用?Java PLTransitionProcessingType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PLTransitionProcessingType类属于com.panoramagl.enumerations包,在下文中一共展示了PLTransitionProcessingType类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: internalProcess
import com.panoramagl.enumerations.PLTransitionProcessingType; //导入依赖的package包/类
@Override
protected PLTransitionProcessingType internalProcess(PLIView view, PLIPanorama currentPanorama, PLIPanorama newPanorama, PLICamera currentPanoramaCamera, PLICamera newPanoramaCamera)
{
if(currentPanorama.getCamera().isAnimating() || currentPanoramaCamera.isAnimating())
return PLTransitionProcessingType.PLTransitionProcessingTypeWaiting;
else if(mIsFirstTime)
{
mIsFirstTime = false;
return PLTransitionProcessingType.PLTransitionProcessingTypeBegin;
}
return this.processPanorama(newPanorama, mNewPanoramaBlendStep);
}
示例2: processPanorama
import com.panoramagl.enumerations.PLTransitionProcessingType; //导入依赖的package包/类
protected PLTransitionProcessingType processPanorama(PLIPanorama panorama, float blendStep)
{
float alpha = panorama.getAlpha() + blendStep, defaultAlpha = panorama.getDefaultAlpha();
panorama.setAlpha(alpha);
this.setProgressPercentage(Math.min((int)(alpha * 100.0f / defaultAlpha), 100));
return (alpha >= defaultAlpha ? PLTransitionProcessingType.PLTransitionProcessingTypeEnd : PLTransitionProcessingType.PLTransitionProcessingTypeRunning);
}
示例3: internalProcess
import com.panoramagl.enumerations.PLTransitionProcessingType; //导入依赖的package包/类
protected abstract PLTransitionProcessingType internalProcess(PLIView view, PLIPanorama currentPanorama, PLIPanorama newPanorama, PLICamera currentPanoramaCamera, PLICamera newPanoramaCamera);