Packageorg.papervision3d.core.geom
Classpublic class Lines3D
InheritanceLines3D Inheritance Vertices3D Inheritance DisplayObject3D Inheritance DisplayObjectContainer3D Inheritance flash.events.EventDispatcher
SubclassesUCS



Public Properties
 PropertyDefined by
 Inheritedalpha : Number = 1
指定されたオブジェクトのアルファ透明度値を示します。
DisplayObject3D
 InheritedautoCalcScreenCoords : Boolean
自動的にスクリーン座標を計算するかどうかを取得または設定します。 autoCalcScreenCoords を true にした場合には、screenX または screenY で Viewport 上の X, Y 座標を取得することができます。
DisplayObject3D
 InheritedblendMode : String = "normal"
使用するブレンドモードを指定する BlendMode クラスの値です。
DisplayObject3D
 Inheritedchildren : Object
子オブジェクトを取得します。 Returns the children object.
DisplayObjectContainer3D
 Inheritedcontainer : ViewportLayer
DisplayObject3D
 Inheritedculled : Boolean
[internal use] このオブジェクトはカメラの視錐台によってカリングされますか? Is this object culled by camera frustum?
DisplayObject3D
 InheritedcullTest : Number = 0
DisplayObject3D
 Inheritedextra : Object
ユーザーが定義したプロパティを格納するオブジェクトです。 追加した領域の全てのプロパティは新しいインスタンスにコピーされます。 追加で指定されたプロパティは public に利用できます。 An object that contains user defined properties.

All properties of the extra field are copied into the new instance.

DisplayObject3D
 InheritedfaceLevelMode : Boolean
[static] これはオブジェクトの表面がオブジェクト自体のコンテナを持つ事を可能にします。 This allows objects faces to have their own containers.
DisplayObject3D
 Inheritedfaces : Array
[internal-use]
DisplayObject3D
 Inheritedfilters : Array
表示オブジェクトに現在関連付けられている各フィルタオブジェクトが格納されているインデックス付きの配列です。
DisplayObject3D
 InheritedflipLightDirection : Boolean = false
DisplayObject3D
 InheritedfrustumTestMethod : int = 0
DisplayObject3D
 Inheritedgeometry : GeometryObject3D
このインスタンスの3D定義を格納する GeometryObject3D オブジェクトです。 異なるオブジェクトが同じジオメトリーを共有する場合、それらはインスタンスになります。 それらは同じオブジェクトなので何度も表示されます。 このオブジェクトのシェイプを替える事は、その全てのインスタンスのシェイプを替える事になります。 インスタンス化するオブジェクトはシステムメモリーを保存し、そのシェイプを維持する間、何度もオブジェクトを表示するのに役立ちます。 例えば、あなたが複製オブジェクトでいっぱいの兵隊と木々を作成するのに、実際のジオメトリーにマッチする処理にメモリーを必要としません。 各インスタンスがそれぞれトランスフォームノードを持つので、それらの位置、回転、スケールを持つ事が出来るのです。
The GeometryObject3D object that contains the 3D definition of this instance.
DisplayObject3D
 Inheritedid : int
[読み取り専用] DisplayObject3D インスタンスのユニーク ID です。 Unique id of this instance.
DisplayObject3D
  lines : Array
Lines3D
 InheritedlocalRotationX : Number
オブジェクトが持つローカル座標の X 軸に沿って表示オブジェクトを前方回転、または後方回転させます。 Papervision3D2.x では左手座標系を採用しているので、 オブジェクトが持つローカル座標の X 軸の正の方向が右側を向く時、pitch の値が正をとる事により、オブジェクトは前方に回転します。 (言いかえれば、飛行機の翼を X 軸として、pitch を上げる事により機首が下がり、尾翼が上がる様なイメージです。) Rotate the display object around its lateral or transverse axis ?an axis running from the pilot's left to right in piloted aircraft, and parallel to the wings of a winged aircraft; thus the nose pitches up and the tail down, or vice-versa.
DisplayObject3D
 InheritedlocalRotationY : Number
オブジェクトが持つローカル座標の Y 軸に沿って表示オブジェクトを左転回、または右転回させます。 Rotate the display object around about the vertical axis ?an axis drawn from top to bottom.
DisplayObject3D
 InheritedlocalRotationZ : Number
オブジェクトが持つローカル座標の Z 軸に沿って表示オブジェクトを左回転、または右回転させます。 Rotate the display object around the longitudinal axis ?an axis drawn through the body of the vehicle from tail to nose in the normal direction of flight, or the direction the object is facing.
DisplayObject3D
 Inheritedmaterial : MaterialObject3D
DisplayObject3D
 Inheritedmaterials : MaterialsList
このインスタンスのためのマテリアルのリスト The list of materials for this instance.
DisplayObject3D
 InheritedmeshSort : uint = 1
Mesh3D の render() メソッドは、三角形のソーティングのためにユーザーが選択した長さを比較します。 tells Mesh3D's render() method to compare the measurement choice of the user for a triangle's sorting
DisplayObject3D
 Inheritedname : String
DisplayObject3D のインスタンス名を示します。 An optional object name.
DisplayObject3D
 InheritednumChildren : int
オブジェクトの子の数を取得します。 Returns the number of children of this object.
DisplayObjectContainer3D
 Inheritedparent : DisplayObjectContainer3D
[読み取り専用] この表示オブジェクトを含む DisplayObjectContainer3D オブジェクトを示します。 Indicates the DisplayObjectContainer3D object that contains this display object.
DisplayObject3D
 InheritedparentContainer : DisplayObject3D
DisplayObject3D
 Inheritedposition : Number3D
DisplayObject3D の最新の x,y,z を格納する Number3D を取得または設定します。 A Number3D containing the current x, y, and z of the DisplayObject3D
DisplayObject3D
 Inheritedroot : DisplayObjectContainer3D
[読み取り専用] シーンは、ツリー構造の DisplayObjectContainer3D のトップです。 [読み取り専用] The scene, which is the top-most DisplayObjectContainer3D in the tree structure.
DisplayObjectContainer3D
 InheritedrotationX : Number
DisplayObject3D インスタンスの 3D 親コンテナを基準にした元の位置からの x 軸の回転角を度単位で示します。 Specifies the rotation around the X axis from its original orientation.
DisplayObject3D
 InheritedrotationY : Number
DisplayObject3D インスタンスの 3D 親コンテナを基準にした元の位置からの y 軸の回転角を度単位で示します。 Specifies the rotation around the Y axis from its original orientation.
DisplayObject3D
 InheritedrotationZ : Number
DisplayObject3D インスタンスの 3D 親コンテナを基準にした元の位置からの z 軸の回転角を度単位で示します。 Specifies the rotation around the Z axis from its original orientation.
DisplayObject3D
 Inheritedscale : Number
基準点から適用されるオブジェクトのスケールを示します。 Sets the 3D scale as applied from the registration point of the object.
DisplayObject3D
 InheritedscaleX : Number
基準点から適用されるオブジェクトの x 軸スケールを示します。 Sets the scale along the local X axis as applied from the registration point of the object.
DisplayObject3D
 InheritedscaleY : Number
基準点から適用されるオブジェクトの y 軸スケールを示します。 Sets the scale along the local Y axis as applied from the registration point of the object.
DisplayObject3D
 InheritedscaleZ : Number
基準点から適用されるオブジェクトの z 軸スケールを示します。 Sets the scale along the local Z axis as applied from the registration point of the object.
DisplayObject3D
 Inheritedscene : SceneObject3D
DisplayObject3D
 InheritedsceneX : Number
scene 座標系に関連付けられたオブジェクトの X 座標です。 The X coordinate of a object relative to the scene coordinate system.
DisplayObject3D
 InheritedsceneY : Number
scene 座標系に関連付けられたオブジェクトの Y 座標です。 The Y coordinate of a object relative to the scene coordinate system.
DisplayObject3D
 InheritedsceneZ : Number
scene 座標系に関連付けられたオブジェクトの Z 座標です。 The Z coordinate of a object relative to the scene coordinate system.
DisplayObject3D
 Inheritedscreen : Number3D
[読み取り専用] スクリーン上のオブジェクトの座標です。 coordinate of the object on screen.
DisplayObject3D
 InheritedscreenZ : Number
[internal-use] オブジェクトの平均深度を中央に向かせます。内部のz-ソーティングに使用されます。 The average depth of the object faces center.
DisplayObject3D
 InheritedsortedArray : Array
[static]
DisplayObject3D
 InheritedtestQuad : Boolean = true
DisplayObject3D
 Inheritedtransform : Matrix3D
Matrix3D オブジェクトはディスプレイオブジェクトのスケール,rotation,translation の値を格納します。 A Matrix3D object containing values that affect the scaling, rotation, and translation of the display object.
DisplayObject3D
 InheriteduseClipping : Boolean = true
クリッピングを使用するかを取得または設定します。
DisplayObject3D
 InheriteduseOwnContainer : Boolean
親のコンテナーを利用してプロパティ-を適用するかどうかを取得または設定します。

true の場合は alpha や filters のプロパティーを親のコンテナーを利用して適用します。

false の場合は alpha や filters のプロパティーは適用されません。

DisplayObject3D
 InheriteduserData : UserData
DisplayObject3D
 Inheritedview : Matrix3D
[internal-use] カメラを Matrix3D オブジェクトに変化させます。 [internal-use] A camera transformed Matrix3D object.
DisplayObject3D
 Inheritedvisible : Boolean
表示オブジェクトが可視かどうかを示します。 Whether or not the display object is visible. A Boolean value that indicates whether the object is projected, transformed and rendered.
DisplayObject3D
 Inheritedworld : Matrix3D
ワールド変換の行列です。 World transformation.
DisplayObject3D
 Inheritedx : Number
親 DisplayObjectContainer3D のローカル座標を基準にした DisplayObject3D インスタンスの x 座標を示します。 An Number that sets the X coordinate of a object relative to the origin of its parent.
DisplayObject3D
 Inheritedy : Number
親 DisplayObjectContainer3D のローカル座標を基準にした DisplayObject3D インスタンスの y 座標を示します。 An Number that sets the Y coordinate of a object relative to the origin of its parent.
DisplayObject3D
 Inheritedz : Number
親 DisplayObjectContainer3D のローカル座標を基準にした DisplayObject3D インスタンスの z 座標を示します。 An Number that sets the Z coordinate of a object relative to the origin of its parent.
DisplayObject3D
 InheritedZERO : DisplayObject3D
[static] 3D座標系(0,0,0)の中央に配置された空の DisplayObject3D オブジェクトを取得します。 Returns an empty DiplayObject3D object positioned in the center of the 3D coordinate system (0, 0 ,0).
DisplayObject3D
Protected Properties
 PropertyDefined by
 Inherited_scene : SceneObject3D = null
オブジェクトに所属する scene です。 The scene where the object belongs.
DisplayObject3D
Public Methods
 MethodDefined by
  
Lines3D(material:LineMaterial = null, name:String = null)
Lines3D
 Inherited
addChild(child:DisplayObject3D, name:String = null):DisplayObject3D
この DisplayObjectContainer3D インスタンスに子 DisplayObject3D インスタンスを追加します。 Adds a child DisplayObject3D instance to this DisplayObjectContainer instance. [TODO: If you add a child object that already has a different display object container as a parent, the object is removed from the child list of the other display object container.]
DisplayObject3D
 Inherited
この DisplayObjectContainer インスタンスに、全ての DisplayObject3D インスタンスの子を追加します。 Adds all the children of a DisplayObject3D instance to this DisplayObjectContainer instance.
DisplayObjectContainer3D
 Inherited
DisplayObject3D
 Inherited
addGeometry(geometry:GeometryObject3D = null):void
インスタンスにジオメトリー定義を追加します。 Adds a geometry definition to the instance. ジオメトリーが scene の中のオブジェクトのビジュアルシェイプとアピアレンスを描写します。 A geometry describes the visual shape and appearance of an object in a scene.
DisplayObject3D
  
addLine(line:Line3D):void
Line3D オブジェクトを、この Line3D コンテナに追加します。 Adds a Line3D object to this Lines3D container.
Lines3D
  
addNewLine(size:Number, x0:Number, y0:Number, z0:Number, x1:Number, y1:Number, z1:Number):Line3D
与えた引数から新しいラインを作成し、追加します。 Creates a new line from the parameters passed and adds it.
Lines3D
  
addNewSegmentedLine(size:Number, segments:Number, x0:Number, y0:Number, z0:Number, x1:Number, y1:Number, z1:Number):Array
これは addNewLine とほぼ同じですが、ラインの全てを作成するのと同時に、ラインをより短く分割する点で異なります。 z 深度のソーティングを改善する為に役立ちます。 This is identical to addNewLine, except it breaks up the line into several shorter line segments that together make up the full line.
Lines3D
 Inherited
boundingBox():Object
3D のバウンディングボックスを計算します。 Calculates 3D bounding box.
Vertices3D
 Inherited
DisplayObject3D
 Inherited
childrenList():String
オブジェクトのリストで string 値を取得します。 Returns a string value with the list of objects.
DisplayObjectContainer3D
 Inherited
このオブジェクトのクローンです。 Clones this object.
Vertices3D
 Inherited
copyPosition(reference:*):void
オブジェクトまたは Matrix3D から x,y,z 座標の位置情報をコピーします。 Copies the position information (x, y and z coordinates) from another object or Matrix3D.
DisplayObject3D
 Inherited
copyTransform(reference:*):void
オブジェクトまたは Matrix3D から位置、ローテーション、スケールの情報をコピーします。 Copies the transformation information (position, rotation and scale) from another object or Matrix3D.
DisplayObject3D
 Inherited
createViewportLayer(viewport:Viewport3D, recurse:Boolean = true):ViewportLayer
DisplayObject3D
 Inherited
引数で受け取ったオブジェクトとの距離を計測します。 Gets the distance to the position of the given object.
DisplayObject3D
 Inherited
getChildByName(name:String, recursive:Boolean = false):DisplayObject3D
指定された名前で存在する、子表示オブジェクトを取得します。 ひとつの表示オブジェクトが指定された名前をそれ以上持っているとき、このメソッドは子リストの始めのオブジェクトを取得します。 Returns the child display object that exists with the specified name.
DisplayObjectContainer3D
 Inherited
マテリアルリストで指定された名前でマテリアルを取得します。 指定された名前を持つマテリアルオブジェクトが更にあったら、マテリアルリストの最初のマテリアルオブジェクトを取得します。 Returns the material that exists with the specified name in the materials list. If more that one material object has the specified name, the method returns the first material object in the materials list.
DisplayObject3D
 Inherited
hitTestObject(obj:DisplayObject3D, multiplier:Number = 1):Boolean
表示オブジェクトの境界ボックスを評価して、obj 表示オブジェクトの境界ボックスと重複または交差するかどうかを調べます。 Evaluates the display object to see if it overlaps or intersects with the obj display object.
DisplayObject3D
 Inherited
hitTestPoint(x:Number, y:Number, z:Number):Boolean
表示オブジェクトを評価して、x, y, z パラメータで指定されたポイントと重複または交差するかどうかを調べます。 Evaluates the display object to see if it overlaps or intersects with the point specified by the x, y and z parameters.

The x, y and z parameters specify a point in the coordinate space of the instance parent object, not the scene (unless that parent object is the scene).

DisplayObject3D
 Inherited
lookAt(targetObject:DisplayObject3D, upAxis:Number3D = null):void
引数に受け取ったオブジェクトの方向を向くように回転させます。 Make the object look at a specific position.
DisplayObject3D
 Inherited
materialsList():String
マテリアルリストのマテリアル名のリストで string 値を取得します。 Returns a string value with the list of material names of the materials list.
DisplayObject3D
 Inherited
moveBackward(distance:Number):void
後ろ向きに指定した距離だけ移動します。 Translate the display object in the opposite direction it is facing, i.e.
DisplayObject3D
 Inherited
moveDown(distance:Number):void
下方向に指定した距離だけ移動します。 Translate the display object downwards, with respect to the direction it is facing, i.e.
DisplayObject3D
 Inherited
moveForward(distance:Number):void
正面に指定した距離だけ移動します。 Translate the display object in the direction it is facing, i.e.
DisplayObject3D
 Inherited
moveLeft(distance:Number):void
左向きに指定した距離だけ移動します。 Translate the display object lateraly, to the left of the direction it is facing, i.e.
DisplayObject3D
 Inherited
moveRight(distance:Number):void
右向きに指定した距離だけ移動します。。 Translate the display object lateraly, to the right of the direction it is facing, i.e.
DisplayObject3D
 Inherited
moveUp(distance:Number):void
上方向に指定した距離だけ移動します。 Translate the display object upwards, with respect to the direction it is facing, i.e.
DisplayObject3D
 Inherited
pitch(angle:Number):void
オブジェクトが持つローカル座標の X 軸に沿って表示オブジェクトを前方回転、または後方回転させます。 Rotate the display object around its lateral or transverse axis ?an axis running from the pilot's left to right in piloted aircraft, and parallel to the wings of a winged aircraft; thus the nose pitches up and the tail down, or vice-versa.
DisplayObject3D
  
project(parent:DisplayObject3D, renderSessionData:RenderSessionData):Number
3D の頂点を 2D 空間に変換し、レンダリングする為にステージ上に用意します。 Converts 3D vertices into 2D space, to prepare for rendering onto the stage.
Lines3D
 Inherited
projectEmpty(parent:DisplayObject3D, renderSessionData:RenderSessionData):Number
Vertices3D
 Inherited
projectFrustum(parent:DisplayObject3D, renderSessionData:RenderSessionData):Number
Vertices3D
  
全てのラインを削除します。
Lines3D
 Inherited
DisplayObjectContainer3D インスタンスの子リストから、指定された子 DisplayObject3D インスタンスを削除します。 ガーベージコレクターは、使用されないメモリスペースを Flash Player によって再割り当てするプロセスです。 変数またはオブジェクトが、これからどこかで参照または格納されないとき、 メモリスペースのためにそれらを削除します。 Removes the specified child DisplayObject3D instance from the child list of the DisplayObjectContainer3D instance.
DisplayObjectContainer3D
 Inherited
指定の名前に存在する DisplayObject3D オブジェクトインスタンスを、DisplayObjectContainer3D インスタンスの子リストから削除します。 ひとつの表示オブジェクトが指定された名前をそれ以上持っているとき、このメソッドは子リストの始めのオブジェクトを削除します。 ガーベージコレクターは、使用されないメモリスペースを Flash Player によって再割り当てするプロセスです。 変数またはオブジェクトが、これからどこかで参照または格納されないとき、 メモリスペースのためにそれらを削除します。 Removes the child DisplayObject3D instance that exists with the specified name, from the child list of the DisplayObjectContainer3D instance.
DisplayObjectContainer3D
  
removeLine(line:Line3D):void
ラインを削除します。
Lines3D
 Inherited
replaceMaterialByName(material:MaterialObject3D, name:String):void
マテリアルをその名前で置き換えます。 Replaces a material by its name.
DisplayObject3D
 Inherited
roll(angle:Number):void
オブジェクトが持つローカル座標の Z 軸に沿って表示オブジェクトを左回転、または右回転させます。 Rotate the display object around the longitudinal axis ?an axis drawn through the body of the vehicle from tail to nose in the normal direction of flight, or the direction the object is facing.
DisplayObject3D
 Inherited
setChildMaterial(child:DisplayObject3D, material:MaterialObject3D, existingMaterial:MaterialObject3D = null):void
子 DisplayObject3D のためにマテリアルを設定します。 Sets the material for a child DisplayObject3D.
DisplayObject3D
 Inherited
setChildMaterialByName(childName:String, material:MaterialObject3D):void
子の名前で、子 DisplayObject3D の為にマテリアルを設定します。 Sets the material for a child DisplayObject3D by the child's name.
DisplayObject3D
 Inherited
toString():String
指定されたオブジェクトのストリング表現を返します。 Returns a string value representing the three-dimensional position values of the display object instance.
DisplayObject3D
 Inherited
transformVertices(transformation:Matrix3D):void
Vertices3D
 Inherited
translate(distance:Number, axis:Number3D):void
与えられた方向に従ってオブジェクトを移動させます。 Move the object along a given direction.
DisplayObject3D
 Inherited
[internal-use] 最初のローテーション、スケール値で Matrix3D 変換を更新します。 Updates the transform Matrix3D with the current rotation and scale values.
DisplayObject3D
 Inherited
ワールド座標の中で 3D のバウンディングボックスを計算します。 Calculates 3D bounding box in world space.
Vertices3D
 Inherited
yaw(angle:Number):void
オブジェクトが持つローカル座標の Y 軸に沿って表示オブジェクトを左転回、または右転回させます。 Rotate the display object around about the vertical axis ?an axis drawn from top to bottom.
DisplayObject3D
Protected Methods
 MethodDefined by
 Inherited
setParentContainer(parent:DisplayObject3D, assign:Boolean = true):void
DisplayObject3D
Public Constants
 ConstantDefined by
 InheritedMESH_SORT_CENTER : uint = 1
[static] Mesh3D の render() メソッドを三角形の中央からソートします。 tells Mesh3D's render() method to sort by measuring from the center of a triangle
DisplayObject3D
 InheritedMESH_SORT_CLOSE : uint = 3
[static] Mesh3D の render() メソッドを三角形の最も近いポイントからソートします。 tells Mesh3D's render() method to sort by measuring from the closest point of a triangle
DisplayObject3D
 InheritedMESH_SORT_FAR : uint = 2
[static] Mesh3D の render() メソッドを三角形の最も遠いポイントからソートします。 tells Mesh3D's render() method to sort by measuring from the farthest point of a triangle
DisplayObject3D
Property detail
linesproperty
public var lines:Array
Constructor detail
Lines3D()constructor
public function Lines3D(material:LineMaterial = null, name:String = null)

Parameters
material:LineMaterial (default = null) — The default material for this Lines3D. If ommitted then the default LineMaterial3D is used.
 
name:String (default = null) — An identifier for this Lines object.
Method detail
addLine()method
public function addLine(line:Line3D):void

Line3D オブジェクトを、この Line3D コンテナに追加します。 Adds a Line3D object to this Lines3D container.

Parameters
line:Line3D — The Line3D object to add.
addNewLine()method 
public function addNewLine(size:Number, x0:Number, y0:Number, z0:Number, x1:Number, y1:Number, z1:Number):Line3D

与えた引数から新しいラインを作成し、追加します。 Creates a new line from the parameters passed and adds it.

Parameters
size:Number — The weight of the line.
 
x0:Number — The line's start x position.
 
y0:Number — The line's start y position.
 
z0:Number — The line's start z position.
 
x1:Number — The line's end x position.
 
y1:Number — The line's end y position.
 
z1:Number — The line's end z position.

Returns
Line3D — The line just created.
addNewSegmentedLine()method 
public function addNewSegmentedLine(size:Number, segments:Number, x0:Number, y0:Number, z0:Number, x1:Number, y1:Number, z1:Number):Array

これは addNewLine とほぼ同じですが、ラインの全てを作成するのと同時に、ラインをより短く分割する点で異なります。 z 深度のソーティングを改善する為に役立ちます。 This is identical to addNewLine, except it breaks up the line into several shorter line segments that together make up the full line. This would be useful for improved z-depth sorting.

Parameters
size:Number — The weight of the line.
 
segments:Number — The number of segments to break up the line into
 
x0:Number — The line's start x position.
 
y0:Number — The line's start y position.
 
z0:Number — The line's start z position.
 
x1:Number — The line's end x position.
 
y1:Number — The line's end y position.
 
z1:Number — The line's end z position.

Returns
Array — An array of the lines just created.
project()method 
public override function project(parent:DisplayObject3D, renderSessionData:RenderSessionData):Number

3D の頂点を 2D 空間に変換し、レンダリングする為にステージ上に用意します。 Converts 3D vertices into 2D space, to prepare for rendering onto the stage.

Parameters
parent:DisplayObject3D — parent The parent DisplayObject3D
 
renderSessionData:RenderSessionData — renderSessionData The renderSessionData object for this render cycle.

Returns
Number
removeAllLines()method 
public function removeAllLines():void

全てのラインを削除します。

removeLine()method 
public function removeLine(line:Line3D):void

ラインを削除します。

Parameters
line:Line3D — The line to remove.