|
Stage3D API version 0.12 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.ObjectStage3D.Actor
Stage3D.CameraMan
Stage3D.utils.SimpleCameraMan
CameraManクラスの派生クラスであり、独自Actingをもつことで カメラワークの自由度を高めた物である。 カメラの位置と方向はオーバーライドされた doActingメソッド内によって更新される。この処理は ActingのActMove、ActTurn、ActSetDirection、ActSetPositionと 競合するため、これらのActingはSimpleCameraManでは 使用できなくなっている。代わりにActCamSetCamTargetActor、 ActCamSetCamTargetPoint、ActCamSetCamTargetLock、 ActCamSetCamViewActor、ActCamSetCamViewPoint、 ActCamSetLockが使用可能になっている。
フィールドの概要 | |
Actor |
camViewActor
撮影視点の基準となるActorを表す。 |
boolean |
camViewLock
camViewActorが回転したときにCamViewPointも それにあわせて回転するかどうか。 |
javax.vecmath.Vector3d |
camViewPoint
撮影視点の点への相対座標 nullのときは(0,0,0) を使用する。 |
static int |
NONE
カメラの動作方法としてこれを指定した場合は カメラは何も行わない。 |
static int |
PURSUITTARGET
撮影対象となるActorとActorまでの最大距離から カメラの動作を決定します。 |
static int |
VIEWTARGET
撮影対象点、撮影視点を2つを決定することで カメラ位置と方向を決定します。 |
コンストラクタの概要 | |
SimpleCameraMan()
|
メソッドの概要 | |
void |
doActing()
SimpleCameraManクラスのこのメソッドは 移動・回転の動作が追加されているため。 |
int |
getCameraMode()
setCameraModeメソッドで指定した値を取得します。 |
Actor |
getCamTargetActor()
setCamTargetActorメソッドで設定した値を取得します。 |
boolean |
getCamTargetLock()
setCamTargetLockメソッドで設定した値を取得します。 |
javax.vecmath.Vector3d |
getCamTargetPoint()
setCamTargetPointメソッドで設定した値を取得します。 |
Actor |
getCamViewActor()
setCamViewActorメソッドで設定した値を取得します。 |
boolean |
getCamViewLock()
CamViewActorが回転したときにCamViewPointも それにあわせて回転するかどうかを指定します。 |
javax.vecmath.Vector3d |
getCamViewPoint()
setCamViewPointメソッドで設定した値を取得します。 |
double |
getPursuitDistance()
setPursuitDistanceメソッドで指定した値を取得します。 |
void |
setCameraMode(int mode)
このカメラの動作を設定します。 |
void |
setCamTargetActor(Actor actor)
撮影対象点の基準となるCamTargetActorを設定します。 |
void |
setCamTargetLock(boolean lock)
CamTargetActorが回転したときにCamTargetPointも それにあわせて回転するかどうかを指定します。 |
void |
setCamTargetPoint(javax.vecmath.Vector3d vec)
撮影対象点への相対座標、もしくは絶対座標を設定します。 |
void |
setCamViewActor(Actor actor)
撮影視点の基準となるCamViewActorを設定します。 |
void |
setCamViewLock(boolean lock)
setCamViewLockメソッドで設定した値を取得します。 |
void |
setCamViewPoint(javax.vecmath.Vector3d vec)
撮影視点の相対座標、もしくは絶対座標を設定します。 |
void |
setPursuitDistance(double dist)
撮影対象点までの最大距離を指定します。 |
クラス Stage3D.CameraMan から継承したメソッド |
catchEvent, getView, getViewPlatform |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
public static final int NONE
public static final int VIEWTARGET
public static final int PURSUITTARGET
public Actor camViewActor
public javax.vecmath.Vector3d camViewPoint
public boolean camViewLock
コンストラクタの詳細 |
public SimpleCameraMan()
メソッドの詳細 |
public int getCameraMode()
public void setCameraMode(int mode)
NONE
,
VIEWTARGET
,
PURSUITTARGET
public double getPursuitDistance()
public void setPursuitDistance(double dist)
public Actor getCamTargetActor()
public void setCamTargetActor(Actor actor)
public javax.vecmath.Vector3d getCamTargetPoint()
public void setCamTargetPoint(javax.vecmath.Vector3d vec)
public boolean getCamTargetLock()
public void setCamTargetLock(boolean lock)
public Actor getCamViewActor()
public void setCamViewActor(Actor actor)
public javax.vecmath.Vector3d getCamViewPoint()
public void setCamViewPoint(javax.vecmath.Vector3d vec)
public boolean getCamViewLock()
public void setCamViewLock(boolean lock)
public void doActing()
Actor
内の doActing
|
author Takao Sumitomo | |||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |