Camera

Inheritance: java.lang.Object, com.aspose.threed.A3DObject, com.aspose.threed.SceneObject, com.aspose.threed.Entity, com.aspose.threed.Frustum

All Implemented Interfaces: com.aspose.threed.IOrientable

public class Camera extends Frustum implements IOrientable

カメラはシーンを見る視聴者の視点(目の位置)を表します。

コンストラクタ

コンストラクタ説明
Camera()新しい Camera クラスのインスタンスを初期化します。
Camera(ProjectionType projectionType)新しい Camera クラスのインスタンスを初期化します。
Camera(String name)新しい Camera クラスのインスタンスを初期化します。
Camera(String name, ProjectionType projectionType)新しい Camera クラスのインスタンスを初期化します。

メソッド

メソッド説明
equals(Object arg0)
findProperty(String propertyName)プロパティを検索します。
getApertureMode()カメラの絞りモードを取得します。
getAspect()フラスタムのアスペクト比を取得します
getAspectRatio()ビュー平面のアスペクト比を取得します。
getBoundingBox()現在のエンティティのオブジェクト空間座標系におけるバウンディングボックスを取得します。
getClass()
getDirection()カメラが向いている方向を取得します。
getEntityRendererKey()レンダラーに登録されたエンティティレンダラーのキーを取得します
getExcluded()エクスポート時にこのエンティティを除外するかどうかを取得します。
getFarPlane()フラスタムの遠平面距離を取得します。
getFieldOfView()カメラの視野角(度)を取得します。このプロパティは、ApertureMode が ApertureMode.HORIZONTAL または ApertureMode.VERTICAL の場合にのみ使用されます。
getFieldOfViewX()カメラの水平視野角(度)を取得します。このプロパティは、ApertureMode が ApertureMode.HORIZ_AND_VERT の場合にのみ使用されます。
getFieldOfViewY()カメラの垂直視野角(度)を取得します。このプロパティは、ApertureMode が ApertureMode.HORIZ_AND_VERT の場合にのみ使用されます。
getHeight()ビュー平面の高さ(インチ)を取得します。
getLookAt()カメラが注目している位置を取得します。
getMagnification()正投影カメラで使用される倍率を取得します。
getName()名前を取得します。
getNearPlane()視錐台の近接平面距離を取得します。
getOrthoHeight()正射投影時の視錐台の高さを取得します。
getParentNode()最初の親ノードを取得します。最初の親ノードを設定すると、このエンティティは他の親ノードから切り離されます。
getParentNodes()すべての親ノードを取得します。エンティティはジオメトリインスタンシングのために複数の親ノードにアタッチできます。
getProjectionType()カメラの投影タイプを取得します。
getProperties()すべてのプロパティのコレクションを取得します。
getProperty(String property)指定されたプロパティの値を取得します
getRotationMode()視錐台の向きモードを取得します。このプロパティは getTarget が null の場合にのみ機能します。
getScene()このオブジェクトが属するシーンを取得します
getTarget()カメラが見ている対象を取得します。
getUp()カメラの上方向を取得します。
getWidth()ビュー平面の幅(インチ)を取得します。
hashCode()
moveForward(double distance)カメラを前方に移動し、方向またはターゲットに向けます。
notify()
notifyAll()
removeProperty(Property property)動的プロパティを削除します。
removeProperty(String property)名前で識別される指定されたプロパティを削除します
setApertureMode(ApertureMode value)カメラの絞りモードを設定します。
setAspect(double value)視錐台のアスペクト比を設定します。
setAspectRatio(double value)ビュー平面のアスペクト比を設定します。
setDirection(Vector3 value)カメラが向いている方向を設定します。
setExcluded(boolean value)エクスポート時にこのエンティティを除外するかどうかを設定します。
setFarPlane(double value)視錐台の遠平面距離を設定します。
setFieldOfView(double value)カメラの視野角(度)を設定します。このプロパティは、ApertureMode が ApertureMode.HORIZONTAL または ApertureMode.VERTICAL の場合にのみ使用されます。
setFieldOfViewX(double value)カメラの水平視野角(度)を設定します。このプロパティは、ApertureMode が ApertureMode.HORIZ_AND_VERT の場合にのみ使用されます。
setFieldOfViewY(double value)カメラの垂直視野角(度)を設定します。このプロパティは、ApertureMode が ApertureMode.HORIZ_AND_VERT の場合にのみ使用されます。
setHeight(double value)ビュー平面の高さ(インチ)を設定します。
setLookAt(Vector3 value)カメラが注目している位置を設定します。
setMagnification(Vector2 value)正投影カメラで使用される倍率を設定します。
setName(String value)名前を設定します。
setNearPlane(double value)フラスタムの近面距離を設定します。
setOrthoHeight(double value)フラスタムが正射投影の場合の高さを設定します。
setParentNode(Node value)最初の親ノードを設定します。最初の親ノードを設定すると、このエンティティは他の親ノードから切り離されます。
setProjectionType(ProjectionType value)カメラの投影タイプを設定します。
setProperty(String property, Object value)指定されたプロパティの値を設定します
setRotationMode(RotationMode value)フラスタムの向きモードを設定します。このプロパティは getTarget が null の場合にのみ機能します。
setTarget(Node value)カメラが注視するターゲットを設定します。
setUp(Vector3 value)カメラの上方向を設定します。
setWidth(double value)ビュー平面の幅(インチ)を設定します。
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

Camera()

public Camera()

新しい Camera クラスのインスタンスを初期化します。

Camera(ProjectionType projectionType)

public Camera(ProjectionType projectionType)

新しい Camera クラスのインスタンスを初期化します。

Parameters:

パラメーター説明
projectionTypeProjectionType投影タイプ。

Camera(String name)

public Camera(String name)

新しい Camera クラスのインスタンスを初期化します。

Parameters:

パラメーター説明
名前java.lang.String名前。

Camera(String name, ProjectionType projectionType)

public Camera(String name, ProjectionType projectionType)

新しい Camera クラスのインスタンスを初期化します。

Parameters:

パラメーター説明
名前java.lang.String名前。
projectionTypeProjectionType投影タイプ。

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

パラメーター説明
arg0java.lang.Object

Returns: boolean

findProperty(String propertyName)

public Property findProperty(String propertyName)

プロパティを検索します。動的プロパティ(CreateDynamicProperty/SetProperty により作成)またはネイティブプロパティ(名前で識別)になる可能性があります。

Parameters:

パラメーター説明
propertyNamejava.lang.Stringプロパティ名。

Returns: Property - The property.

getApertureMode()

public ApertureMode getApertureMode()

カメラの絞りモードを取得します。

Returns: ApertureMode - the camera’s aperture mode

getAspect()

public double getAspect()

フラスタムのアスペクト比を取得します

Returns: double - フラスタムのアスペクト比

getAspectRatio()

public double getAspectRatio()

ビュー平面のアスペクト比を取得します。

Returns: double - ビュー平面のアスペクト比。

getBoundingBox()

public BoundingBox getBoundingBox()

現在のエンティティのオブジェクト空間座標系におけるバウンディングボックスを取得します。

Returns: BoundingBox - the bounding box of current entity in its object space coordinate system. Example: The following code shows how to calculate the bounding box of a shape

Entity entity = new Sphere();
     entity.setRadius(10);
     var bbox = entity.getBoundingBox();
     System.out.printf("The bounding box of the entity is %s ~ %s", bbox.getMinimum(), bbox.getMaximum());

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getDirection()

public Vector3 getDirection()

カメラが注視する方向を取得します。このプロパティの変更は getLookAtgetTarget にも影響します。

Returns: Vector3 - the direction that the camera is looking at. Changes on this property will also affects the getLookAt and getTarget.

getEntityRendererKey()

public EntityRendererKey getEntityRendererKey()

レンダラーに登録されたエンティティレンダラーのキーを取得します

Returns: EntityRendererKey - the key of the entity renderer registered in the renderer

getExcluded()

public boolean getExcluded()

エクスポート時にこのエンティティを除外するかどうかを取得します。

Returns: boolean - エクスポート時にこのエンティティを除外するかどうか。

getFarPlane()

public double getFarPlane()

フラスタムの遠平面距離を取得します。

Returns: double - フラスタムの遠面距離。

getFieldOfView()

public double getFieldOfView()

カメラの視野角(度)を取得します。このプロパティは、ApertureMode が ApertureMode.HORIZONTAL または ApertureMode.VERTICAL の場合にのみ使用されます。

Returns: double - カメラの視野角(度)、このプロパティは、ApertureMode が ApertureMode.HORIZONTAL または ApertureMode.VERTICAL の場合にのみ使用されます。

getFieldOfViewX()

public double getFieldOfViewX()

カメラの水平視野角(度)を取得します。このプロパティは、ApertureMode が ApertureMode.HORIZ_AND_VERT の場合にのみ使用されます。

Returns: double - カメラの水平視野角(度)、このプロパティは、ApertureMode が ApertureMode.HORIZ_AND_VERT の場合にのみ使用されます。

getFieldOfViewY()

public double getFieldOfViewY()

カメラの垂直視野角(度)を取得します。このプロパティは、ApertureMode が ApertureMode.HORIZ_AND_VERT の場合にのみ使用されます。

Returns: double - カメラの垂直視野角(度)、このプロパティは、ApertureMode が ApertureMode.HORIZ_AND_VERT の場合にのみ使用されます。

getHeight()

public double getHeight()

ビュー平面の高さ(インチ)を取得します。

Returns: double - ビュー平面の高さ(インチ)。

getLookAt()

public Vector3 getLookAt()

カメラが注目している位置を取得します。

Returns: Vector3 - the the interested position that the camera is looking at.

getMagnification()

public Vector2 getMagnification()

正投影カメラで使用される倍率を取得します。

Returns: Vector2 - the magnification used in orthographic camera

getName()

public String getName()

名前を取得します。

Returns: java.lang.String - 名前です。

getNearPlane()

public double getNearPlane()

視錐台の近接平面距離を取得します。

Returns: double - フラスタムの近面距離。

getOrthoHeight()

public double getOrthoHeight()

正射投影時の視錐台の高さを取得します。

Returns: double - フラスタムが正射投影の場合の高さ。

getParentNode()

public Node getParentNode()

最初の親ノードを取得します。最初の親ノードを設定すると、このエンティティは他の親ノードから切り離されます。

Returns: Node - the first parent node, if set the first parent node, this entity will be detached from other parent nodes.

getParentNodes()

public ArrayList<Node> getParentNodes()

すべての親ノードを取得します。エンティティはジオメトリインスタンシングのために複数の親ノードにアタッチできます。

Returns: java.util.ArrayList<com.aspose.threed.Node> - すべての親ノード、エンティティはジオメトリ インスタンシングのために複数の親ノードにアタッチできます

getProjectionType()

public ProjectionType getProjectionType()

カメラの投影タイプを取得します。デフォルトでは透視投影が使用されます。

Returns: ProjectionType - the camera’s projection type. By default the perspective projection is used.

getProperties()

public PropertyCollection getProperties()

すべてのプロパティのコレクションを取得します。

Returns: PropertyCollection - the collection of all properties.

getProperty(String property)

public Object getProperty(String property)

指定されたプロパティの値を取得します

Parameters:

パラメーター説明
プロパティjava.lang.Stringプロパティ名

Returns: java.lang.Object - 見つかったプロパティの値

getRotationMode()

public RotationMode getRotationMode()

フラスタムの向きモードを取得します。このプロパティは getTarget が null の場合にのみ機能します。値が RotationMode.FIXED_TARGET の場合、方向は常にプロパティ getLookAt によって計算されます。それ以外の場合、getLookAt は常に getDirection によって計算されます。

Returns: RotationMode - the frustum’s orientation mode This property only works when the getTarget is null. If the value is RotationMode.FIXED_TARGET, the direction is always calculated by the property getLookAt Otherwise the getLookAt is always calculated by the getDirection

getScene()

public Scene getScene()

このオブジェクトが属するシーンを取得します

Returns: Scene - the scene that this object belongs to

getTarget()

public Node getTarget()

カメラが注視するターゲットを取得します。ユーザーがこのプロパティをサポートしている場合、getLookAt プロパティよりも先に設定すべきです。

Returns: Node - the target that the camera is looking at. If the user supports this property, it should be prior to getLookAt property.

getUp()

public Vector3 getUp()

カメラの上方向を取得します。

Returns: Vector3 - the up direction of the camera

getWidth()

public double getWidth()

ビュー平面の幅(インチ)を取得します。

Returns: double - ビュー平面の幅(インチ単位)

hashCode()

public native int hashCode()

Returns: int

moveForward(double distance)

public void moveForward(double distance)

カメラを前方に移動し、方向またはターゲットに向けます。

Parameters:

パラメーター説明
距離double前方に移動する時間

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

removeProperty(Property property)

public boolean removeProperty(Property property)

動的プロパティを削除します。

Parameters:

パラメーター説明
propertyProperty削除するプロパティ

Returns: boolean - プロパティが正常に削除された場合は true

removeProperty(String property)

public boolean removeProperty(String property)

名前で識別される指定されたプロパティを削除します

Parameters:

パラメーター説明
プロパティjava.lang.String削除するプロパティ

Returns: boolean - プロパティが正常に削除された場合は true

setApertureMode(ApertureMode value)

public void setApertureMode(ApertureMode value)

カメラの絞りモードを設定します。

Parameters:

パラメーター説明
valueApertureMode新しい値

setAspect(double value)

public void setAspect(double value)

視錐台のアスペクト比を設定します。

Parameters:

パラメーター説明
double新しい値

setAspectRatio(double value)

public void setAspectRatio(double value)

ビュー平面のアスペクト比を設定します。

Parameters:

パラメーター説明
double新しい値

setDirection(Vector3 value)

public void setDirection(Vector3 value)

カメラが注視する方向を設定します。このプロパティの変更は getLookAtgetTarget にも影響します。

Parameters:

パラメーター説明
valueVector3新しい値

setExcluded(boolean value)

public void setExcluded(boolean value)

エクスポート時にこのエンティティを除外するかどうかを設定します。

Parameters:

パラメーター説明
boolean新しい値

setFarPlane(double value)

public void setFarPlane(double value)

視錐台の遠平面距離を設定します。

Parameters:

パラメーター説明
double新しい値

setFieldOfView(double value)

public void setFieldOfView(double value)

カメラの視野角(度)を設定します。このプロパティは、ApertureMode が ApertureMode.HORIZONTAL または ApertureMode.VERTICAL の場合にのみ使用されます。

Parameters:

パラメーター説明
double新しい値

setFieldOfViewX(double value)

public void setFieldOfViewX(double value)

カメラの水平視野角(度)を設定します。このプロパティは、ApertureMode が ApertureMode.HORIZ_AND_VERT の場合にのみ使用されます。

Parameters:

パラメーター説明
double新しい値

setFieldOfViewY(double value)

public void setFieldOfViewY(double value)

カメラの垂直視野角(度)を設定します。このプロパティは、ApertureMode が ApertureMode.HORIZ_AND_VERT の場合にのみ使用されます。

Parameters:

パラメーター説明
double新しい値

setHeight(double value)

public void setHeight(double value)

ビュー平面の高さ(インチ)を設定します。

Parameters:

パラメーター説明
double新しい値

setLookAt(Vector3 value)

public void setLookAt(Vector3 value)

カメラが注目している位置を設定します。

Parameters:

パラメーター説明
valueVector3新しい値

setMagnification(Vector2 value)

public void setMagnification(Vector2 value)

正投影カメラで使用される倍率を設定します。

Parameters:

パラメーター説明
valueVector2新しい値

setName(String value)

public void setName(String value)

名前を設定します。

Parameters:

パラメーター説明
java.lang.String新しい値

setNearPlane(double value)

public void setNearPlane(double value)

フラスタムの近面距離を設定します。

Parameters:

パラメーター説明
double新しい値

setOrthoHeight(double value)

public void setOrthoHeight(double value)

フラスタムが正射投影の場合の高さを設定します。

Parameters:

パラメーター説明
double新しい値

setParentNode(Node value)

public void setParentNode(Node value)

最初の親ノードを設定します。最初の親ノードを設定すると、このエンティティは他の親ノードから切り離されます。

Parameters:

パラメーター説明
valueNode新しい値

setProjectionType(ProjectionType value)

public void setProjectionType(ProjectionType value)

カメラの投影タイプを設定します。デフォルトでは透視投影が使用されます。

Parameters:

パラメーター説明
valueProjectionType新しい値

setProperty(String property, Object value)

public void setProperty(String property, Object value)

指定されたプロパティの値を設定します

Parameters:

パラメーター説明
プロパティjava.lang.Stringプロパティ名
java.lang.Objectプロパティの値

setRotationMode(RotationMode value)

public void setRotationMode(RotationMode value)

フラスタムの向きモードを設定します。このプロパティは getTarget が null の場合にのみ機能します。値が RotationMode.FIXED_TARGET の場合、方向は常にプロパティ getLookAt によって計算されます。それ以外の場合、getLookAt は常に getDirection によって計算されます。

Parameters:

パラメーター説明
valueRotationMode新しい値

setTarget(Node value)

public void setTarget(Node value)

カメラが注視している対象を設定します。ユーザーがこのプロパティをサポートしている場合、getLookAt プロパティより前に設定すべきです。

Parameters:

パラメーター説明
valueNode新しい値

setUp(Vector3 value)

public void setUp(Vector3 value)

カメラの上方向を設定します。

Parameters:

パラメーター説明
valueVector3新しい値

setWidth(double value)

public void setWidth(double value)

ビュー平面の幅(インチ)を設定します。

Parameters:

パラメーター説明
double新しい値

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

パラメーター説明
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

パラメーター説明
arg0long
arg1int