本文整理匯總了Java中com.panoramagl.PLCamera類的典型用法代碼示例。如果您正苦於以下問題:Java PLCamera類的具體用法?Java PLCamera怎麽用?Java PLCamera使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
PLCamera類屬於com.panoramagl包,在下文中一共展示了PLCamera類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: start
import com.panoramagl.PLCamera; //導入依賴的package包/類
@Override
public boolean start(PLIView view, PLIPanorama newPanorama)
{
if(mIsRunning || view == null || view.getPanorama() == null || newPanorama == null)
return false;
mIsRunning = true;
mView = view;
mCurrentPanorama = view.getPanorama();
mCurrentPanoramaCamera = new PLCamera(mCurrentPanorama.getCamera());
mIsPanoramaLocked = mCurrentPanorama.isLocked();
mNewPanorama = newPanorama;
mNewPanoramaCamera = new PLCamera(mNewPanorama.getCamera());
mProgressPercentage = 0;
if(!mIsPanoramaLocked)
mCurrentPanorama.setLocked(true);
this.beforeStarting(mView, mCurrentPanorama, mNewPanorama, mCurrentPanoramaCamera, mNewPanoramaCamera);
this.setTimer
(
NSTimer.scheduledTimerWithTimeInterval
(
1.0f / this.iterationsPerSecond(),
new NSTimer.Runnable()
{
@Override
public void run(NSTimer target, Object[] userInfo)
{
process();
}
},
null,
true
)
);
return true;
}