| Package | alternativa.engine3d.core |
| Class | public class Sprite3D |
| Inheritance | Sprite3D Object3D |
| Property | Defined by | ||
|---|---|---|---|
![]() | children : Set
A set of child objects.
| Object3D | |
![]() | coords : Point3D
Object coordinates.
| Object3D | |
| material : SpriteMaterial
A material to visualize the sprite object.
| Sprite3D | ||
![]() | mobility : int Mobility level.
| Object3D | |
![]() | mouseEnabled : Boolean = true Specifies whether this object receives mouse messages.
| Object3D | |
![]() | name : String Object name.
| Object3D | |
![]() | parent : Object3D
Parent object.
| Object3D | |
![]() | rotationX : Number X-axis rotation angle in radians.
| Object3D | |
![]() | rotationY : Number Y-axis rotation angle in radians.
| Object3D | |
![]() | rotationZ : Number Z-axis rotation angle in radians.
| Object3D | |
![]() | scaleX : Number X-axis scale coefficient.
| Object3D | |
![]() | scaleY : Number Y-axis scale coefficient.
| Object3D | |
![]() | scaleZ : Number Z-axis scale coefficient.
| Object3D | |
![]() | scene : Scene3D
Scene containing given object.
| Object3D | |
![]() | transformation : Matrix3D
Full (global) transformation matrix of an object.
| Object3D | |
![]() | x : Number X coordinate.
| Object3D | |
![]() | y : Number Y coordinate.
| Object3D | |
![]() | z : Number Z coordinate.
| Object3D | |
| Method | Defined by | ||
|---|---|---|---|
|
Sprite3D(name:String = null)
Creates a new instance.
| Sprite3D | ||
![]() |
Adds a child object.
| Object3D | |
![]() |
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener.
| Object3D | |
![]() |
Clones object.
| Object3D | |
![]() |
dispatchEvent(event:Event):Boolean
Dispatches an event.
| Object3D | |
![]() |
forEach(func:Function):void
Calls the specified function for the object an all its children, passing the current object as an argument.
| Object3D | |
![]() |
getChildByName(name:String, deep:Boolean = false):Object3D
Gets a child object with the given name.
| Object3D | |
![]() |
Transforms a point form global coordinate system to an object's coordinate system
| Object3D | |
![]() |
hasEventListener(type:String):Boolean
Checks if there are registered event listeners for events of the specified type.
| Object3D | |
![]() |
Transforms a point from local coordinate system of an object to global coordinate system.
| Object3D | |
![]() |
Delete child object.
| Object3D | |
![]() |
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes an event listener.
| Object3D | |
![]() |
toString():String
Get string representation of object.
| Object3D | |
![]() |
willTrigger(type:String):Boolean
| Object3D | |
| Method | Defined by | ||
|---|---|---|---|
|
addToScene(scene:Scene3D):void
Method is being called when adding object to scene.
| Sprite3D | ||
|
clonePropertiesFrom(source:Object3D):void
Copy source object properties.
| Sprite3D | ||
|
Create empty object without inner structure.
| Sprite3D | ||
|
defaultName():String
Default object name.
| Sprite3D | ||
|
removeFromScene(scene:Scene3D):void
Method is being called whed deleting object from a scene.
| Sprite3D | ||
| material | property |
material:SpriteMaterial [read-write]A material to visualize the sprite object.
Implementation public function get material():SpriteMaterial
public function set material(value:SpriteMaterial):void
| Sprite3D | () | constructor |
public function Sprite3D(name:String = null)Creates a new instance.
Parametersname:String (default = null) — name of the instance |
| addToScene | () | method |
protected override function addToScene(scene:Scene3D):voidMethod is being called when adding object to scene. Descendants may redefine method for making specific actions.
Parametersscene:Scene3D — scene, which object is being added to |
| clonePropertiesFrom | () | method |
protected override function clonePropertiesFrom(source:Object3D):voidCopy source object properties. This method is being used in clone() method and must be redefined in it's descendants to get a right object. Every descendant must copy only properties that were added to base class in this exact method. Inherited properties copying is made by calling super.clonePropertiesFrom(source).
Parameterssource:Object3D — object, which properties are being copied |
| createEmptyObject | () | method |
protected override function createEmptyObject():Object3DCreate empty object without inner structure. For example, if geometrical primitive, when added, forms a bunch of vertices, faces and surfaces, this method don't create them. This method is being used in clone() and has to be redefined in descendants in order to get the right object.
ReturnsObject3D — a new empty object |
| defaultName | () | method |
protected override function defaultName():StringDefault object name.
ReturnsString — default object name |
| removeFromScene | () | method |
protected override function removeFromScene(scene:Scene3D):voidMethod is being called whed deleting object from a scene.Descendants may redefine method for making specific actions.
Parametersscene:Scene3D — scena, from which the object is being deleted from |