当前位置: 首页>>代码示例>>Java>>正文


Java PLCameraAnimationType类代码示例

本文整理汇总了Java中com.panoramagl.enumerations.PLCameraAnimationType的典型用法代码示例。如果您正苦于以下问题:Java PLCameraAnimationType类的具体用法?Java PLCameraAnimationType怎么用?Java PLCameraAnimationType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


PLCameraAnimationType类属于com.panoramagl.enumerations包,在下文中一共展示了PLCameraAnimationType类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initializeValues

import com.panoramagl.enumerations.PLCameraAnimationType; //导入依赖的package包/类
@Override
protected void initializeValues()
{
	mIsNotLocked = mIsFovEnabled = true;
	mFovRange = PLRange.PLRangeMake(PLConstants.kDefaultFovMinValue, PLConstants.kDefaultFovMaxValue);
	mFov = mInitialFov = PLMath.normalizeFov(PLConstants.kDefaultFov, mFovRange);
	this.setInternalFovSensitivity(PLConstants.kDefaultFovSensitivity);
	mMinDistanceToEnableFov = PLConstants.kDefaultMinDistanceToEnableFov;
	this.setInternalRotationSensitivity(PLConstants.kDefaultRotationSensitivity);
	mZoomLevels = PLConstants.kDefaultZoomLevels;
	mInitialLookAt = PLRotation.PLRotationMake(0.0f, 0.0f, 0.0f);
	mLookAtRotation = PLRotation.PLRotationMake(0.0f, 0.0f, 0.0f);
	mIsAnimating = false;
	mAnimationType = PLCameraAnimationType.PLCameraAnimationTypeNone;
	mAnimationTimer = null;
	super.initializeValues();
	this.setReverseRotation(true);
}
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:19,代码来源:PLCamera.java

示例2: internalStartAnimation

import com.panoramagl.enumerations.PLCameraAnimationType; //导入依赖的package包/类
/**animation methods*/

protected boolean internalStartAnimation(Object sender, NSTimer timer, PLCameraAnimationType type)
{
	if(!mIsAnimating)
	{
		mIsAnimating = true;
		mAnimationType = type;
		this.setAnimationTimer(timer);
		if(mInternalListener != null)
			mInternalListener.didBeginAnimation(sender, this, type);
		if(mListener != null)
			mListener.didBeginAnimation(sender, this, type);
		return true;
	}
	return false;
}
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:18,代码来源:PLCamera.java

示例3: didBeginAnimation

import com.panoramagl.enumerations.PLCameraAnimationType; //导入依赖的package包/类
/**PLCameraListener methods*/

@Override
public void didBeginAnimation(Object sender, PLICamera camera, PLCameraAnimationType type)
{
	switch(type)
	{
		case PLCameraAnimationTypeLookAt:
			mView.setValidForCameraAnimation(true);
			break;
		default:
			break;
	}
	PLViewListener listener = mView.getListener();
	if(listener != null)
		listener.onDidBeginCameraAnimation(mView, sender, camera, type);
}
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:18,代码来源:PLView.java

示例4: didBeginAnimation

import com.panoramagl.enumerations.PLCameraAnimationType; //导入依赖的package包/类
/**PLCameraListener methods*/

@Override
public void didBeginAnimation(Object sender, PLICamera camera, PLCameraAnimationType type) {
	switch(type)
	{
		case PLCameraAnimationTypeLookAt:
			mView.setValidForCameraAnimation(true);
			break;
		default:
			break;
	}
	PLViewListener listener = mView.getListener();
	if(listener != null)
		listener.onDidBeginCameraAnimation(mView, sender, camera, type);
}
 
开发者ID:marianmoldovan,项目名称:panoramagl,代码行数:17,代码来源:PLManager.java

示例5: internalStopAnimation

import com.panoramagl.enumerations.PLCameraAnimationType; //导入依赖的package包/类
protected boolean internalStopAnimation(Object sender)
{
	if(mIsAnimating)
	{
		mIsAnimating = false;
		this.setAnimationTimer(null);
		if(mInternalListener != null)
			mInternalListener.didEndAnimation(sender, this, mAnimationType);
		if(mListener != null)
			mListener.didEndAnimation(sender, this, mAnimationType);
		mAnimationType = PLCameraAnimationType.PLCameraAnimationTypeNone;
		return true;
	}
	return false;
}
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:16,代码来源:PLCamera.java

示例6: didEndAnimation

import com.panoramagl.enumerations.PLCameraAnimationType; //导入依赖的package包/类
@Override
public void didEndAnimation(Object sender, PLICamera camera, PLCameraAnimationType type)
{
	switch(type)
	{
		case PLCameraAnimationTypeLookAt:
			mView.setValidForCameraAnimation(false);
			break;
		default:
			break;
	}
	PLViewListener listener = mView.getListener();
	if(listener != null)
		listener.onDidEndCameraAnimation(mView, sender, camera, type);
}
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:16,代码来源:PLView.java

示例7: didEndAnimation

import com.panoramagl.enumerations.PLCameraAnimationType; //导入依赖的package包/类
@Override
public void didEndAnimation(Object sender, PLICamera camera, PLCameraAnimationType type) {
	switch(type)
	{
		case PLCameraAnimationTypeLookAt:
			mView.setValidForCameraAnimation(false);
			break;
		default:
			break;
	}
	PLViewListener listener = mView.getListener();
	if(listener != null)
		listener.onDidEndCameraAnimation(mView, sender, camera, type);
}
 
开发者ID:marianmoldovan,项目名称:panoramagl,代码行数:15,代码来源:PLManager.java

示例8: onDidBeginCameraAnimation

import com.panoramagl.enumerations.PLCameraAnimationType; //导入依赖的package包/类
/**camera methods*/

public void onDidBeginCameraAnimation(PLIView view, Object sender, PLICamera camera, PLCameraAnimationType type)
{
}
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:6,代码来源:PLViewListener.java

示例9: onDidEndCameraAnimation

import com.panoramagl.enumerations.PLCameraAnimationType; //导入依赖的package包/类
public void onDidEndCameraAnimation(PLIView view, Object sender, PLICamera camera, PLCameraAnimationType type)
{	
}
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:4,代码来源:PLViewListener.java

示例10: setFov

import com.panoramagl.enumerations.PLCameraAnimationType; //导入依赖的package包/类
@Override
public boolean setFov(Object sender, float fov, boolean animated)
{
	if(mIsNotLocked)
	{
		if(animated)
		{
			if(!mIsAnimating && mIsFovEnabled)
			{
				float newFov = PLMath.normalizeFov(fov, mFovRange);
				if(mFov != newFov)
				{
					this.internalStartAnimation
					(
						sender,
						NSTimer.scheduledTimerWithTimeInterval
						(
							PLConstants.kCameraFovAnimationTimerInterval,
							new NSTimer.Runnable()
							{
								@Override
								public void run(NSTimer target, Object[] userInfo)
								{
									PLCamera camera = (PLCamera)userInfo[0];
									PLFovAnimatedData data = (PLFovAnimatedData)userInfo[1];
									data.currentFov += data.fovStep;
									camera.setInternalFov(data.sender, data.currentFov, true, false, true);
									data.currentStep++;
									if(data.currentStep >= data.maxStep)
									{
										camera.internalStopAnimation(data.sender);
										camera.setInternalFov(data.sender, data.maxFov, true, true, true);
									}
								}
							},
							new Object[] { this, PLFovAnimatedData.PLFovAnimatedDataMake(sender, this, newFov, PLConstants.kCameraFovAnimationMaxStep) },
							true
						),
						PLCameraAnimationType.PLCameraAnimationTypeFov
					);
					return true;
				}
			}
		}
		else
			return this.setInternalFov(sender, fov, false, true, false);
	}
	return false;
}
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:50,代码来源:PLCamera.java

示例11: lookAt

import com.panoramagl.enumerations.PLCameraAnimationType; //导入依赖的package包/类
@Override
public boolean lookAt(Object sender, float pitch, float yaw, boolean animated)
{
	if(mIsNotLocked)
	{
		if(animated)
		{
			if(!mIsAnimating && this.isPitchEnabled() && this.isYawEnabled())
			{
				this.internalStartAnimation
				(
					sender,
					NSTimer.scheduledTimerWithTimeInterval
					(
						PLConstants.kCameraLookAtAnimationTimerInterval,
						new NSTimer.Runnable()
						{
							@Override
							public void run(NSTimer target, Object[] userInfo)
							{
								PLCamera camera = (PLCamera)userInfo[0];
								PLLookAtAnimatedData data = (PLLookAtAnimatedData)userInfo[1];
								data.currentPitch += data.pitchStep;
								data.currentYaw += data.yawStep;
								camera.internalLookAt(data.sender, data.currentPitch, data.currentYaw, true, false, true);
								data.currentStep++;
								if(data.currentStep >= data.maxStep)
								{
									camera.internalStopAnimation(data.sender);
									camera.internalLookAt(data.sender, data.maxPitch, data.maxYaw, true, true, true);
								}
							}
						},
						new Object[] { this, PLLookAtAnimatedData.PLLookAtAnimatedDataMake(sender, this, pitch, yaw, PLConstants.kCameraLookAtAnimationMaxStep) },
						true
					),
					PLCameraAnimationType.PLCameraAnimationTypeLookAt
				);
				return true;
			}
		}
		else
			return this.internalLookAt(sender, pitch, yaw, false, true, false);
	}
	return false;
}
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:47,代码来源:PLCamera.java

示例12: lookAtAndFov

import com.panoramagl.enumerations.PLCameraAnimationType; //导入依赖的package包/类
@Override
public boolean lookAtAndFov(Object sender, float pitch, float yaw, float fov, boolean animated)
{
	if(mIsNotLocked)
	{
		if(animated)
		{
			if(!mIsAnimating && this.isPitchEnabled() && this.isYawEnabled() && mIsFovEnabled)
			{
				this.internalStartAnimation
				(
					sender,
					NSTimer.scheduledTimerWithTimeInterval
					(
						PLConstants.kCameraLookAtAnimationTimerInterval,
						new NSTimer.Runnable()
						{
							@Override
							public void run(NSTimer target, Object[] userInfo)
							{
								PLCamera camera = (PLCamera)userInfo[0];
								PLLookAtAndFovAnimatedData data = (PLLookAtAndFovAnimatedData)userInfo[1];
								data.currentPitch += data.pitchStep;
								data.currentYaw += data.yawStep;
								data.currentFov += data.fovStep;
								camera.internalLookAt(data.sender, data.currentPitch, data.currentYaw, true, false, true);
								camera.setInternalFov(data.sender, data.currentFov, true, false, true);
								data.currentStep++;
								if(data.currentStep >= data.maxStep)
								{
									camera.internalStopAnimation(data.sender);
									camera.internalLookAt(data.sender, data.maxPitch, data.maxYaw, true, true, true);
									camera.setInternalFov(data.sender, data.maxFov, true, true, true);
								}
							}
						},
						new Object[] { this, PLLookAtAndFovAnimatedData.PLLookAtAndFovAnimatedDataMake(sender, this, pitch, yaw, fov, PLConstants.kCameraLookAtAnimationMaxStep) },
						true
					),
					PLCameraAnimationType.PLCameraAnimationTypeLookAt
				);
				return true;
			}
		}
		else
			return (this.internalLookAt(sender, pitch, yaw, false, true, false) && this.setInternalFov(sender, fov, false, true, false));
	}
	return false;
}
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:50,代码来源:PLCamera.java

示例13: didBeginAnimation

import com.panoramagl.enumerations.PLCameraAnimationType; //导入依赖的package包/类
/**event methods*/

void didBeginAnimation(Object sender, PLICamera camera, PLCameraAnimationType type);
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:4,代码来源:PLCameraListener.java

示例14: didEndAnimation

import com.panoramagl.enumerations.PLCameraAnimationType; //导入依赖的package包/类
void didEndAnimation(Object sender, PLICamera camera, PLCameraAnimationType type); 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:2,代码来源:PLCameraListener.java


注:本文中的com.panoramagl.enumerations.PLCameraAnimationType类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。