| Package | alternativa.engine3d.core |
| Class | public class Object3D |
| Implements | flash.events.IEventDispatcher |
| Subclasses | BSP, Camera3D, Joint, Mesh, Object3DContainer, Occluder, Sprite3D |
| Property | Defined by | ||
|---|---|---|---|
| alpha : Number = 1 Alpha transparency value.
| Object3D | ||
| blendMode : String = "normal" A value from the
flash. | Object3D | ||
| boundMaxX : Number = 1e+22 Right bound of object in its space.
| Object3D | ||
| boundMaxY : Number = 1e+22 Front bound of object in its space.
| Object3D | ||
| boundMaxZ : Number = 1e+22 Top bound of object in its space.
| Object3D | ||
| boundMinX : Number = -1e+22 Left bound of object in its space.
| Object3D | ||
| boundMinY : Number = -1e+22 Back bound of object in its space.
| Object3D | ||
| boundMinZ : Number = -1e+22 Bottom bound of object in its space.
| Object3D | ||
| colorTransform : ColorTransform = null A ColorTransform object containing values that universally adjust the colors in the display object.
| Object3D | ||
| concatenatedMatrix : Matrix3D [read-only] A
Matrix3D object which is the combined result of transformation matrices of object and all its parens. | Object3D | ||
| doubleClickEnabled : Boolean = false Specifies whether the object receives
doubleClick events. | Object3D | ||
| filters : Array = null An indexed array that contains each filter object currently associated with the display object.
| Object3D | ||
matrix : Matrix3DMatrix3D object. | Object3D | ||
| mouseEnabled : Boolean = true Specifies whether this object receives mouse messages.
| Object3D | ||
| name : String Object name.
| Object3D | ||
| parent : Object3DContainer
[read-only] Indicates the Object3DContainer object that contains this display object.
| Object3D | ||
| rotationX : Number = 0 Rotation angle by X axis (in radians).
| Object3D | ||
| rotationY : Number = 0 Rotation angle by Y axis (in radians).
| Object3D | ||
| rotationZ : Number = 0 Rotation angle by Z axis (in radians).
| Object3D | ||
| scaleX : Number = 1 Scale by X axis.
| Object3D | ||
| scaleY : Number = 1 Scale by Y axis.
| Object3D | ||
| scaleZ : Number = 1 Scale by Z axis.
| Object3D | ||
| useHandCursor : Boolean = false Set this property to
true to show "hand" mouse cursor while hovering the object, false otherwise. | Object3D | ||
| visible : Boolean = true Whether or not the display object is visible.
| Object3D | ||
| x : Number = 0 X coordinate.
| Object3D | ||
| y : Number = 0 Y coordinate.
| Object3D | ||
| z : Number = 0 Z coordinate.
| Object3D | ||
| Method | Defined by | ||
|---|---|---|---|
|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
| Object3D | ||
|
calculateBounds():void
Calculates object bounds in its space.
| Object3D | ||
|
calculateResolution(textureWidth:int, textureHeight:int, type:int = 1, matrix:Matrix3D = null):Number
Calculates how many units of 3D space correspond to one pixel of texture.
| Object3D | ||
|
Returns an object that is an exact copy of the original object.
| Object3D | ||
|
dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow.
| Object3D | ||
|
globalToLocal(point:Vector3D):Vector3D
Transforms a point from global space to local spce of the object.
| Object3D | ||
|
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
| Object3D | ||
|
intersectRay(origin:Vector3D, direction:Vector3D, excludedObjects:Dictionary = null, camera:Camera3D = null):RayIntersectionData
Searches for the ray intersection.
| Object3D | ||
|
localToGlobal(point:Vector3D):Vector3D
Transforms a point from local space of object to global spce.
| Object3D | ||
|
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
| Object3D | ||
|
toString():String
Returns the string presentation of the specified object.
| Object3D | ||
|
willTrigger(type:String):Boolean
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
| Object3D | ||
| Method | Defined by | ||
|---|---|---|---|
|
clonePropertiesFrom(source:Object3D):void
Copies the base properties.
| Object3D | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched when a user presses and releases the main button of the user's pointing device over the same object. | Object3D | |||
| Dispatched when a user presses and releases the main button of a pointing device twice in rapid succession over the same object when that object's doubleClickEnabled flag is set to true. | Object3D | |||
| Dispatched when a user presses the pointing device button over an object. | Object3D | |||
| Dispatched when a user moves the pointing device while it is over an object. | Object3D | |||
| Dispatched when the user moves a pointing device away from an object. | Object3D | |||
| Dispatched when the user moves a pointing device over an object. | Object3D | |||
| Dispatched when a user releases the pointing device button over an object. | Object3D | |||
| Dispatched when a mouse wheel is spun over an object. | Object3D | |||
| Dispatched when the user moves a pointing device away from an object. | Object3D | |||
| Dispatched when the user moves a pointing device over an object. | Object3D | |||
| alpha | property |
public var alpha:Number = 1Alpha transparency value. Valid values are 0 to1. Default value is 1.
| blendMode | property |
public var blendMode:String = "normal"A value from the flash.display.BlendMode class that specifies which blend mode to use.
| boundMaxX | property |
public var boundMaxX:Number = 1e+22Right bound of object in its space.
| boundMaxY | property |
public var boundMaxY:Number = 1e+22Front bound of object in its space.
| boundMaxZ | property |
public var boundMaxZ:Number = 1e+22Top bound of object in its space.
| boundMinX | property |
public var boundMinX:Number = -1e+22Left bound of object in its space.
| boundMinY | property |
public var boundMinY:Number = -1e+22Back bound of object in its space.
| boundMinZ | property |
public var boundMinZ:Number = -1e+22Bottom bound of object in its space.
| colorTransform | property |
public var colorTransform:ColorTransform = nullA ColorTransform object containing values that universally adjust the colors in the display object.
| concatenatedMatrix | property |
concatenatedMatrix:Matrix3D [read-only]A Matrix3D object which is the combined result of transformation matrices of object and all its parens.
public function get concatenatedMatrix():Matrix3D
| doubleClickEnabled | property |
public var doubleClickEnabled:Boolean = falseSpecifies whether the object receives doubleClick events. Note: it is necessary for mouse events to set interactive property of View object to true.
| filters | property |
public var filters:Array = nullAn indexed array that contains each filter object currently associated with the display object.
| matrix | property |
matrix:Matrix3D [read-write]Matrix3D object.
public function get matrix():Matrix3D
public function set matrix(value:Matrix3D):void
| mouseEnabled | property |
public var mouseEnabled:Boolean = trueSpecifies whether this object receives mouse messages. The default value is true. Note: it is necessary for mouse events to set interactive property of View object to true.
| name | property |
public var name:StringObject name.
| parent | property |
parent:Object3DContainer [read-only]Indicates the Object3DContainer object that contains this display object.
Implementation public function get parent():Object3DContainer
| rotationX | property |
public var rotationX:Number = 0Rotation angle by X axis (in radians).
| rotationY | property |
public var rotationY:Number = 0Rotation angle by Y axis (in radians).
| rotationZ | property |
public var rotationZ:Number = 0Rotation angle by Z axis (in radians).
| scaleX | property |
public var scaleX:Number = 1Scale by X axis.
| scaleY | property |
public var scaleY:Number = 1Scale by Y axis.
| scaleZ | property |
public var scaleZ:Number = 1Scale by Z axis.
| useHandCursor | property |
public var useHandCursor:Boolean = falseSet this property to true to show "hand" mouse cursor while hovering the object, false otherwise.
| visible | property |
public var visible:Boolean = trueWhether or not the display object is visible.
| x | property |
public var x:Number = 0X coordinate.
| y | property |
public var y:Number = 0Y coordinate.
| z | property |
public var z:Number = 0Z coordinate.
| addEventListener | () | method |
public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):voidRegisters an event listener object with an EventDispatcher object so that the listener receives notification of an event. Note: it is necessary for mouse events to set interactive property of View object to true.
type:String — Event type. |
|
listener:Function — Event listener. |
|
useCapture:Boolean (default = false) — Specifies whether the listener was registered for the capture phase or the target and bubbling phases. |
|
priority:int (default = 0) — The priority level of the event listener. |
|
useWeakReference:Boolean (default = false) — Determines whether the reference to the listener is strong or weak. |
| calculateBounds | () | method |
public function calculateBounds():voidCalculates object bounds in its space.
| calculateResolution | () | method |
public function calculateResolution(textureWidth:int, textureHeight:int, type:int = 1, matrix:Matrix3D = null):NumberCalculates how many units of 3D space correspond to one pixel of texture. It is useful for mipmapping.
ParameterstextureWidth:int — Texture width. |
|
textureHeight:int — Texture height. |
|
type:int (default = 1) — Calculation method: 0 - by first edge, 1 - average value, 2 - max value, 3 - min value. |
|
matrix:Matrix3D (default = null) — Transformation matrix. |
Number — Resolution. |
See also
| clone | () | method |
public function clone():Object3DReturns an object that is an exact copy of the original object.
ReturnsObject3D — Original object clone. |
| clonePropertiesFrom | () | method |
protected function clonePropertiesFrom(source:Object3D):voidCopies the base properties.
Parameterssource:Object3D — Source object. |
| dispatchEvent | () | method |
public function dispatchEvent(event:Event):BooleanDispatches an event into the event flow.
Parametersevent:Event — The Event object that is dispatched into the event flow. |
Boolean — A value of true if the event was successfully dispatched. |
| globalToLocal | () | method |
public function globalToLocal(point:Vector3D):Vector3DTransforms a point from global space to local spce of the object.
Parameterspoint:Vector3D — Point in global space. |
Vector3D — Point in localspace of object. |
| hasEventListener | () | method |
public function hasEventListener(type:String):BooleanChecks whether the EventDispatcher object has any listeners registered for a specific type of event.
Parameterstype:String — Event type. |
Boolean — A value of true if a listener of the specified type is registered; false otherwise. |
| intersectRay | () | method |
public function intersectRay(origin:Vector3D, direction:Vector3D, excludedObjects:Dictionary = null, camera:Camera3D = null):RayIntersectionDataSearches for the ray intersection.
Parametersorigin:Vector3D — Ray origin. |
|
direction:Vector3D — Ray direction. |
|
excludedObjects:Dictionary (default = null) — The objects that are keys of this dictionary will be excluded from intersection test. |
|
camera:Camera3D (default = null) — The camera for Sprite3D objects intersection test. |
RayIntersectionData — Intersection test result - RayIntersectionData object. If there is no intersection the value of null will be returned. |
See also
| localToGlobal | () | method |
public function localToGlobal(point:Vector3D):Vector3DTransforms a point from local space of object to global spce.
Parameterspoint:Vector3D — Point in local space of object. |
Vector3D — Point in global space. |
| removeEventListener | () | method |
public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):voidRemoves a listener from the EventDispatcher object.
Parameterstype:String — Event type. |
|
listener:Function — The listener object to remove. |
|
useCapture:Boolean (default = false) — Specifies whether the listener was registered for the capture phase or the target and bubbling phases. |
| toString | () | method |
public function toString():StringReturns the string presentation of the specified object.
ReturnsString — String presentation. |
| willTrigger | () | method |
public function willTrigger(type:String):BooleanChecks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
Parameterstype:String — Event type. |
Boolean — A value of true if a listener of the specified type will be triggered; false otherwise. |
| click | event |
alternativa.engine3d.core.MouseEvent3D
Dispatched when a user presses and releases the main button of the user's pointing device over the same object.
| doubleClick | event |
alternativa.engine3d.core.MouseEvent3D
Dispatched when a user presses and releases the main button of a pointing device twice in rapid succession over the same object when that object's doubleClickEnabled flag is set to true.
| mouseDown | event |
alternativa.engine3d.core.MouseEvent3D
Dispatched when a user presses the pointing device button over an object.
| mouseMove | event |
alternativa.engine3d.core.MouseEvent3D
Dispatched when a user moves the pointing device while it is over an object.
| mouseOut | event |
alternativa.engine3d.core.MouseEvent3D
Dispatched when the user moves a pointing device away from an object.
| mouseOver | event |
alternativa.engine3d.core.MouseEvent3D
Dispatched when the user moves a pointing device over an object.
| mouseUp | event |
alternativa.engine3d.core.MouseEvent3D
Dispatched when a user releases the pointing device button over an object.
| mouseWheel | event |
alternativa.engine3d.core.MouseEvent3D
Dispatched when a mouse wheel is spun over an object.
| rollOut | event |
alternativa.engine3d.core.MouseEvent3D
Dispatched when the user moves a pointing device away from an object.
| rollOver | event |
alternativa.engine3d.core.MouseEvent3D
Dispatched when the user moves a pointing device over an object.