Description
The DisplayObject3D class is at the root of the Papervision3D object class hierarchy.
DisplayObject3DクラスはPapervision3Dのオブジェクトクラス階層のルートです。
The DisplayObject3D class is the base class for all objects, not only those that can be rendered, but also the camera and its target. The Papervision3D class manages all objects displayed.
DisplayObject3Dクラスはすべてのオブジェクトの素となるクラスです。
レンダリングできるその全てのオブジェクト、カメラクラスもターゲットになります。
Papervision3Dクラスは表示したすべてのオブジェクトを管理します。
The DisplayObject3D class supports basic functionality like the x, y and z position of an object, as well as rotationX, rotationY, rotationZ. It also supports more advanced properties of the object such as visible, and scaleX, scaleY and scaleZ. [TODO: transformation matrix.]
DisplayObject3Dクラスはオブジェクトのx、y、およびz座標のような基本機能をサポートします。同様に、rotationX,rotationY,rotationZ。 また、scaleX、scaleY、およびscaleZといったより(3Dとして)説明的なオブジェクトとして見え方もサポートしています。。
DisplayObject3D is not an abstract base class; therefore, you can call DisplayObject3D directly. Invoking new DisplayObject() creates a new empty object in 3D space, like when you createEmptyMovieClip(). All 3D display objects inherit from the DisplayObject class. You can create a custom subclass of the DisplayObject class, or also extend a subclass of the DisplayObject class.
DisplayObject3Dは抽象的な基底クラスではありません。
したがって、あなたは、直接DisplayObject3Dと呼ぶことができます。
new DisplayObject()として呼び出すと、createEmptyMovieClip()作成したときのように、3D情報を持った新しい空のオブジェクトを作成します。 すべての3DディスプレイオブジェクトがDisplayObjectのクラスを継承してます。
DisplayObjectのクラスのカスタムサブクラスを作成するか、または、DisplayObjectのクラスのサブクラスを継承することができます。
Some properties previously used in the ActionScript 1.0 and 2.0 MovieClip classes (such as _x, _y, _xscale, _yscale and others) have equivalents in the DisplayObject3D class that are renamed as in ActionScript 3.0, so that they no longer begin with the underscore (_) character.
It serves as the prototype for classes that extend the DisplayObject3D class. These classes are in org.papervision3D.objects package.
DisplayObject3Dのクラスを継承クラスのためのプロトタイプとして役立ちます。 org.papervision3D.objectsパッケージの中にこれらのクラスがあります。
Field Detail
DEGREES
static public DEGREES:Boolean
Indicates if the angles are expressed in degrees (true) or radians (false). The default value is true, degrees.
角度はdegree(true)かラジアン(false)であらわされる。
デフォルトはfalse。
PERCENT
static public PERCENT:Boolean
Indicates if the scales are expressed in percent (true) or from zero to one (false). The default value is false, i.e. units.
スケール(拡大率)はパーセント(true)か0~1(false)で表される。
x
public x:Number
An Number that sets the X coordinate of a object relative to the scene coordinate system.
システムで調整されたシーンに関連したオブジェクトのX座標を設定する値(オブジェクトのx座標)
y
public y:Number
An Number that sets the Y coordinate of a object relative to the scene coordinates.
システムで調整されたシーンに関連したオブジェクトのY座標を設定する値(オブジェクトのy座標)
z
public z:Number
An Number that sets the Z coordinate of a object relative to the scene coordinates.
システムで調整されたシーンに関連したオブジェクトのZ座標を設定する値(オブジェクトのZ座標)
rotationX
public rotationX:Number
Specifies the rotation around the X axis from its original orientation.
(x座標の回転値)X軸の周りで最初の方位から回転を指定します
rotationY
public rotationY:Number
Specifies the rotation around the Y axis from its original orientation.
(y座標の回転値)Y軸の周りで最初の方位から回転を指定します
rotationZ
public rotationZ:Number
Specifies the rotation around the Z axis from its original orientation.
(Z座標の回転値)Z軸の周りで最初の方位から回転を指定します
scaleX
public scaleX:Number
Sets the scale along the local X axis as applied from the registration point of the object.
(Xの拡大率)オブジェクトの登録先から適用されるようにローカルのX軸に沿ってスケールを設定します。
scaleY
public scaleY:Number
Sets the scale along the local Y axis as applied from the registration point of the object.
(Yの拡大率)オブジェクトの登録先から適用されるようにローカルのY軸に沿ってスケールを設定します。
scaleZ
public scaleZ:Number
Sets the scale along the local Z axis as applied from the registration point of the object.
(Zの拡大率)オブジェクトの登録先から適用されるようにローカルのZ軸に沿ってスケールを設定します。
visible
public visible:Boolean
Whether or not the display object is visible.
表示したオブジェクトが目に見えるかどうか。
A Boolean value that indicates whether the object is projected, transformed and rendered. A value of false will effectively ignore the object. The default value is true.
オブジェクトが映し出されていて、変えられて、レンダリングされるかどうかを示すブール値。 事実上、false値はオブジェクトを無視するでしょう。
デフォルト値はtrueです。
extra
public extra:Object
An object that contains user defined properties.
All properties of the extra field are copied into the new instance. The properties specified with extra are publicly available.
container
public container:MovieClip
The MovieClip that you draw into when rendering. Use only when the object is rendered in its own unique MovieClip.
scene
ZERO
static public ZERO:DisplayObject3D [Read Only]
Returns a DiplayObject3D object positioned in the center of the 3D coordinate system (0, 0 ,0).
screenZ
public screenZ:Number
[internal-use] The depth (z coordinate) of the transformed object's center. Also known as the distance from the camera. Used internally for z-sorting.