| Package | org.papervision3d.objects |
| Class | public class Stars |
| Inheritance | Stars Vertices3D DisplayObject3D DisplayObjectContainer3D flash.events.EventDispatcher |
| Property | Defined by | ||
|---|---|---|---|
![]() | children : Object
Returns the children object.
| DisplayObjectContainer3D | |
![]() | container : Sprite
The Sprite that you draw into when rendering in a MovieScene3D.
| DisplayObject3D | |
| DEFAULT_SIZE : Number = 1000 [static]
Default size of Plane if not texture is defined.
| Stars | ||
| DEFAULT_STAGE_HEIGHT : Number = 2048 [static]
| Stars | ||
| DEFAULT_STAGE_WIDTH : Number = 2048 [static]
Default size of Plane if not texture is defined.
| Stars | ||
| depth : Number
Depth
| Stars | ||
![]() | extra : Object
An object that contains user defined properties.
| DisplayObject3D | |
![]() | faces : Array
[internal-use]
| DisplayObject3D | |
![]() | geometry : GeometryObject3D
The GeometryObject3D object that contains the 3D definition of this instance.
| DisplayObject3D | |
| height : Number
Height
| Stars | ||
![]() | id : int
[read-only] Unique id of this instance.
| DisplayObject3D | |
![]() | material : MaterialObject3D
The default material for the object instance.
| DisplayObject3D | |
![]() | materials : MaterialsList
The list of materials for this instance.
| DisplayObject3D | |
![]() | name : String
An optional object name.
| DisplayObject3D | |
![]() | numChildren : int
Returns the number of children of this object.
| DisplayObjectContainer3D | |
![]() | parent : DisplayObjectContainer3D
[read-only] Indicates the DisplayObjectContainer3D object that contains this display object.
| DisplayObject3D | |
![]() | projected : Dictionary
[internal-use]
| DisplayObject3D | |
| quantity : Number
A BitmapMaterial object that contains the material properties of the triangle.
| Stars | ||
| quantity : Number
The number of stars.
| Stars | ||
![]() | root : DisplayObjectContainer3D
[read-only] [read-only] The scene, which is the top-most displayObjectContainer3D in the tree structure.
| DisplayObjectContainer3D | |
![]() | rotationX : Number
Specifies the rotation around the X axis from its original orientation.
| DisplayObject3D | |
![]() | rotationY : Number
Specifies the rotation around the Y axis from its original orientation.
| DisplayObject3D | |
![]() | rotationZ : Number
Specifies the rotation around the Z axis from its original orientation.
| DisplayObject3D | |
![]() | scale : Number
Sets the 3D scale as applied from the registration point of the object.
| DisplayObject3D | |
![]() | scaleX : Number
Sets the scale along the local X axis as applied from the registration point of the object.
| DisplayObject3D | |
![]() | scaleY : Number
Sets the scale along the local Y axis as applied from the registration point of the object.
| DisplayObject3D | |
![]() | scaleZ : Number
Sets the scale along the local Z axis as applied from the registration point of the object.
| DisplayObject3D | |
![]() | scene : SceneObject3D
The scene where the object belongs.
| DisplayObject3D | |
![]() | screenZ : Number
[internal-use] The depth (z coordinate) of the transformed object's center.
| DisplayObject3D | |
| stageHeight : Number
Size of the stage.
| Stars | ||
| stageWidth : Number
Size of the stage.
| Stars | ||
| target : Sprite | Stars | ||
![]() | transform : Matrix3D
A Matrix3D object containing values that affect the scaling, rotation, and translation of the display object.
| DisplayObject3D | |
![]() | view : Matrix3D
[internal-use] A camera transformed Matrix3D object.
| DisplayObject3D | |
![]() | visible : Boolean
Whether or not the display object is visible.
| DisplayObject3D | |
| width : Number
The width.
| Stars | ||
![]() | x : Number
An Number that sets the X coordinate of a object relative to the scene coordinate system.
| DisplayObject3D | |
![]() | y : Number
An Number that sets the Y coordinate of a object relative to the scene coordinates.
| DisplayObject3D | |
![]() | z : Number
An Number that sets the Z coordinate of a object relative to the scene coordinates.
| DisplayObject3D | |
![]() | ZERO : DisplayObject3D
[static]
Returns an empty DiplayObject3D object positioned in the center of the 3D coordinate system (0, 0 ,0).
| DisplayObject3D | |
| Method | Defined by | ||
|---|---|---|---|
|
Stars(material:ColorMaterial, target:Sprite, quantity:Number = 900, width:Number = 1000, height:Number = 1000, depth:Number = 1000, initObject:Object = null)
Create new Stars object.
| Stars | ||
![]() |
Adds a child DisplayObject3D instance to this DisplayObjectContainer instance.
| DisplayObjectContainer3D | |
![]() |
Adds all the children of a DisplayObject3D instance to this DisplayObjectContainer instance.
| DisplayObjectContainer3D | |
![]() |
addCollada(filename:String, materials:MaterialsList = null, scale:Number = 1):void
This method has been deprecated.
| DisplayObjectContainer3D | |
![]() |
addGeometry(geometry:GeometryObject3D = null):void
Adds a geometry definition to the instance.
| DisplayObject3D | |
![]() |
boundingBox():Object
Calculates 3D bounding box.
| Vertices3D | |
![]() |
childrenList():String
Returns a string value with the list of objects.
| DisplayObjectContainer3D | |
![]() |
copyPosition(reference:*):void
Copies the position information (x, y and z coordinates) from another object or Matrix3D.
| DisplayObject3D | |
![]() |
copyTransform(reference:*):void
Copies the transformation information (position, rotation and scale) from another object or Matrix3D.
| DisplayObject3D | |
![]() |
distanceTo(obj:DisplayObject3D):Number
Gets the distance to the position of the given object.
| DisplayObject3D | |
![]() |
getChildByName(name:String):DisplayObject3D
Returns the child display object that exists with the specified name.
| DisplayObjectContainer3D | |
![]() |
getMaterialByName(name:String):MaterialObject3D
Returns the material that exists with the specified name in the materials list.
| DisplayObject3D | |
![]() |
hitTestObject(obj:DisplayObject3D, multiplier:Number = 1):Boolean
Evaluates the display object to see if it overlaps or intersects with the obj display object.
| DisplayObject3D | |
![]() |
hitTestPoint(x:Number, y:Number, z:Number):Boolean
Evaluates the display object to see if it overlaps or intersects with the point specified by the x, y and z parameters.
| DisplayObject3D | |
![]() |
Make the object look at a specific position.
| DisplayObject3D | |
![]() |
materialsList():String
Returns a string value with the list of material names of the materials list.
| DisplayObject3D | |
![]() |
moveBackward(distance:Number):void
Translate the display object in the opposite direction it is facing, i.e.
| DisplayObject3D | |
![]() |
moveDown(distance:Number):void
Translate the display object downwards, with respect to the direction it is facing, i.e.
| DisplayObject3D | |
![]() |
moveForward(distance:Number):void
Translate the display object in the direction it is facing, i.e.
| DisplayObject3D | |
![]() |
moveLeft(distance:Number):void
Translate the display object lateraly, to the left of the direction it is facing, i.e.
| DisplayObject3D | |
![]() |
moveRight(distance:Number):void
Translate the display object lateraly, to the right of the direction it is facing, i.e.
| DisplayObject3D | |
![]() |
moveUp(distance:Number):void
Translate the display object upwards, with respect to the direction it is facing, i.e.
| DisplayObject3D | |
![]() |
pitch(angle:Number):void
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 | |
![]() |
Projects three dimensional coordinates onto a two dimensional plane to simulate the relationship of the camera to subject.
| Vertices3D | |
![]() |
Removes the specified child DisplayObject3D instance from the child list of the DisplayObjectContainer3D instance.
| DisplayObjectContainer3D | |
![]() |
removeChildByName(name:String):DisplayObject3D
Removes the child DisplayObject3D instance that exists with the specified name, from the child list of the DisplayObjectContainer3D instance.
| DisplayObjectContainer3D | |
|
render(scene:SceneObject3D):void
| Stars | ||
![]() |
roll(angle:Number):void
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 | |
![]() |
toString():String
Returns a string value representing the three-dimensional position values of the display object instance.
| DisplayObject3D | |
![]() |
transformVertices(transformation:Matrix3D):void
| Vertices3D | |
![]() |
Move the object along a given direction.
| DisplayObject3D | |
![]() |
yaw(angle:Number):void
Rotate the display object around about the vertical axis —an axis drawn from top to bottom.
| DisplayObject3D | |
| DEFAULT_SIZE | property |
public static var DEFAULT_SIZE:Number = 1000Default size of Plane if not texture is defined.
| DEFAULT_STAGE_HEIGHT | property |
public static var DEFAULT_STAGE_HEIGHT:Number = 2048
| DEFAULT_STAGE_WIDTH | property |
public static var DEFAULT_STAGE_WIDTH:Number = 2048Default size of Plane if not texture is defined.
| depth | property |
public var depth:NumberDepth
| height | property |
public var height:NumberHeight
| quantity | property |
public var quantity:NumberA BitmapMaterial object that contains the material properties of the triangle.
| quantity | property |
public var quantity:NumberThe number of stars.
| stageHeight | property |
public var stageHeight:NumberSize of the stage.
| stageWidth | property |
public var stageWidth:NumberSize of the stage.
| target | property |
public var target:Sprite
| width | property |
public var width:NumberThe width.
| Stars | () | constructor |
public function Stars(material:ColorMaterial, target:Sprite, quantity:Number = 900, width:Number = 1000, height:Number = 1000, depth:Number = 1000, initObject:Object = null)Create new Stars object.
Parametersmaterial:ColorMaterial — A BitmapMaterial object that contains the material properties of the object.
|
|
target:Sprite — Width.
|
|
quantity:Number (default = 900) — Height.
|
|
width:Number (default = 1000) — Depth.
|
|
height:Number (default = 1000) — [optional] - An object that contains user defined properties with which to populate the newly created GeometryObject3D.
It includes x, y, z, rotationX, rotationY, rotationZ, scaleX, scaleY scaleZ and a user defined data object.
If data is not an object, it is ignored. All properties of the data field are copied into the new instance. The properties specified with data are publicly available.
|
|
depth:Number (default = 1000) |
|
initObject:Object (default = null) |
| render | () | method |