protected var _viewportObjectFilter:ViewportObjectFilter;
/** @private */
protected var _containerSprite:ViewportBaseLayer;
/** @private */
protected var _layerInstances:Dictionary;
/**
* sizeRectangle stores the width and the height of the Viewport3D sprite
* @see #viewportWidth
* @see #viewportHeight
*/
public var sizeRectangle:Rectangle;
/**
* cullingRectangle stores the width, height, x, y of the culling rectangle. It's used to determine the bounds in which the triangles are drawn.
* @see #autoCulling
*/
public var cullingRectangle:Rectangle;
/**
* triangleCuller uses the cullingRectangle to determine which triangles will not be rendered in BasicRenderEngine
* @see #autoCulling
*/
public var triangleCuller:ITriangleCuller;
/**
* particleCuller uses the cullingRectangle to determine which particles will not be rendered in BasicRenderEngine
* @see #autoCulling
*/
public var particleCuller:IParticleCuller;
/**
* lineCuller uses the culling Rectangle to determine which particles will not be rendered in BasicRenderEngine
* @see #autoCulling
*/
public var lineCuller:ILineCuller;
/**
* lastRenderList stores RenderableListItems (Triangles, Lines, Pixels, Particles, Fog) of everything that was rendered in the last pass. This list is used to determine hitTests in hitTestPoint2D.
* @see #hitTestPoint2D()
*/
public var lastRenderList:Array;
/**
* interactiveSceneManager manages the interaction between the user's mouse and the Papervision3D scene. This is done by checking the mouse against renderHitData. renderHitData is generated from hitTestPoint2D and passed into the interactiveSceneManager to check agains the various mouse actions.
public var interactiveSceneManager:InteractiveSceneManager;
/** @private */
protected var renderHitData:RenderHitData;
private var stageScaleModeSet :Boolean = false;
/**
* @param viewportWidth Width of the viewport
* @param viewportHeight Height of the viewport
* @param autoScaleToStage Determines whether the viewport should resize when the stage resizes
* @param interactive Determines whether the viewport should listen for Mouse events by creating an <code>InteractiveSceneManager</code>
* @param autoClipping Determines whether DisplayObject3Ds outside the rectangle of the viewport should be rendered
* @param autoCulling Detemines whether only the objects in front of the camera should be rendered. In other words, if a triangle is hidden by another triangle from the camera, it will not be rendered.
*/
public function Viewport3D(viewportWidth:Number = 640, viewportHeight:Number = 480, autoScaleToStage:Boolean = false, interactive:Boolean = false, autoClipping:Boolean = true, autoCulling:Boolean = true)