Packagesandy.events
Classpublic class Shape3DEvent
InheritanceShape3DEvent Inheritance BubbleEvent Inheritance flash.events.Event

This class represents the type of events broadcasted by shapes objects. It gives some useful information about the clicked object such as the polygon clicked, and real 3D position of the point under mouse, the UV coordinate under mouse. It allows some advanced interaction with the object and its texture.

See also

sandy.core.scenegraph.Shape3D


Public Properties
 PropertyDefined by
  event : Event
Original Flash event instance.
Shape3DEvent
  point : Vector
Real 3D position of the point under mouse click position.
Shape3DEvent
  polygon : Polygon
Polygon that has been clicked.
Shape3DEvent
  shape : Shape3D
A reference to the object which has bene clicked.
Shape3DEvent
 Inheritedtarget : Object
The event target.
BubbleEvent
  uv : UVCoord
Real UV coordinate of the point under the mouse click position.
Shape3DEvent
Public Methods
 MethodDefined by
  
Shape3DEvent(e:String, p_oShape:Shape3D, p_oPolygon:Polygon, p_oUV:UVCoord, p_oPoint3d:Vector, p_oEvent:Event)
Constructs a new Shape3DEvent instance.
Shape3DEvent
 Inherited
toString():String
Returns the string representation of the event.
BubbleEvent
Property detail
eventproperty
public var event:Event

Original Flash event instance.

pointproperty 
public var point:Vector

Real 3D position of the point under mouse click position.

See also

polygonproperty 
public var polygon:Polygon

Polygon that has been clicked.

See also

shapeproperty 
public var shape:Shape3D

A reference to the object which has bene clicked.

See also

sandy.core.scenegraph.Scene3D
uvproperty 
public var uv:UVCoord

Real UV coordinate of the point under the mouse click position.

See also

Constructor detail
Shape3DEvent()constructor
public function Shape3DEvent(e:String, p_oShape:Shape3D, p_oPolygon:Polygon, p_oUV:UVCoord, p_oPoint3d:Vector, p_oEvent:Event)

Constructs a new Shape3DEvent instance.

Example var e:Shape3DEvent = new Shape3DEvent(MyClass.onSomething, theShapeReference, thePolygonReference, theUVCoord, theReal3DIntersectionPoint); Parameters

e:String — A name for the event.
 
p_oShape:Shape3D — The Shape3D object reference
 
p_oPolygon:Polygon — The Polygon object reference
 
p_oUV:UVCoord — The UVCoord object which corresponds to the UVCoord under mouse position
 
p_oPoint3d:Vector — The Vector object which is the real 3D position under the mouse position
 
p_oEvent:Event

See also