package away3d.events
{
import away3d.core.base.*;
import flash.events.Event;
/**
* Passed as a parameter when a geometry event occurs
*/
public class GeometryEvent extends Event
{
/**
* Defines the value of the type property of a dimensionsChanged event object.
*/
public static const DIMENSIONS_CHANGED:String = "dimensionsChanged";
/**
* A reference to the 3d object that is relevant to the event.
*/
public var geometry:Geometry;
/**
* Creates a new MaterialEvent object.
*
* @param type The type of the event. Possible values are: Object3DEvent.TRANSFORM_CHANGED, Object3DEvent.SCENETRANSFORM_CHANGED, Object3DEvent.SCENE_CHANGED, Object3DEvent.RADIUS_CHANGED and Object3DEvent.DIMENSIONS_CHANGED.
* @param object A reference to the 3d object that is relevant to the event.
*/
public function GeometryEvent(type:String, geometry:Geometry)
{
super(type);
this.geometry = geometry;
}
/**
* Creates a copy of the Object3DEvent object and sets the value of each property to match that of the original.
*/
public override function clone():Event
{
return new GeometryEvent(type, geometry);
}
}
}