Packagecom.panosalado.model
Classpublic class ViewData
InheritanceViewData Inheritance flash.display.Sprite
SubclassesDependentViewData, PanoSalado

Model class. Uses a getter/setter + public underlying property style implementation to allow fast access to properties. The properties should NEVER be set directly using the "_" prefixed property. The setters for all of the properties invalidate the stage, (which causes a RENDER dispatch to redraw the panorama), in addition to setting the invalid properties of this class itself (invalid, invalidTransform, invalidPerspective), and setting of properties must happen via the setter function for the change to be reflected in the rendered panorama.



Public Properties
 PropertyDefined by
  _boundsHeight : Number
Height of panorama.
ViewData
  boundsHeight : Number
Height of rendered panorama.
ViewData
  _boundsWidth : Number
Width of panorama.
ViewData
  boundsWidth : Number
Width of rendered panorama.
ViewData
  _fieldOfView : Number
Field of view.
ViewData
  fieldOfView : Number
Field of view.
ViewData
  frustumBottom : Vector3D
Bottom frustum plane as determined by field of view.
ViewData
  frustumLeft : Vector3D
Left frustum plane as determined by field of view.
ViewData
  frustumRight : Vector3D
Right frustum plane as determined by field of view.
ViewData
  frustumTop : Vector3D
Top frustum plane as determined by field of view.
ViewData
  invalid : Boolean
Invalidation flag for all properties.
ViewData
  invalidPerspective : Boolean
Invalidation flag for field of view, boundsWidth and boundsHeight, which determine perspectiveProjection and perspectiveMatrix3D
ViewData
  invalidTransform : Boolean
Invalidation flag for pan and tilt, which determine the transformMatrix3D
ViewData
  _maximumFieldOfView : Number
Maximum field of view.
ViewData
  maximumFieldOfView : Number
maximumFieldOfView
ViewData
  _maximumPan : Number
Maximum pan.
ViewData
  maximumPan : Number
maximumPan
ViewData
  _maximumTilt : Number
Maximum tilt.
ViewData
  maximumTilt : Number
maximumTilt
ViewData
  _minimumFieldOfView : Number
Minimum field of view.
ViewData
  minimumFieldOfView : Number
minimumFieldOfView
ViewData
  _minimumPan : Number
Minimum pan.
ViewData
  minimumPan : Number
minimumPan
ViewData
  _minimumTilt : Number
Minimum tilt.
ViewData
  minimumTilt : Number
minimumTilt
ViewData
  _pan : Number
Pan angle.
ViewData
  pan : Number
Pan angle.
ViewData
  _path : String
Path for panorama.
ViewData
  path : String
Path.
ViewData
  perspectiveMatrix3D : Matrix3D
Matrix3D from perspectiveProjection.toMatrix3d().
ViewData
  perspectiveProjection : PerspectiveProjection
PerspectiveProjection set from field of view, boundsWidth and boundsHeight.
ViewData
  pixelsPerDegree : Number
Pixels per degree as determined from field of view, boundsWidth and boundsHeight.
ViewData
  secondaryViewData : DependentViewData
Secondary ViewData, which is used for the secondary (outgoing) panorama.
ViewData
  _tierThreshold : Number
Tier threshold.
ViewData
  tierThreshold : Number
Tier Threshold.
ViewData
  _tile : Tile
Tile.
ViewData
  tile : Tile
[read-only] The root tile in the tile linked list data structure.
ViewData
  _tilt : Number
Tilt angle.
ViewData
  tilt : Number
Tilt angle.
ViewData
  transformMatrix3D : Matrix3D
Matrix3D recomposed from pan and tilt angles.
ViewData
Protected Properties
 PropertyDefined by
  constructed : Boolean
ViewData
Public Methods
 MethodDefined by
  
ViewData(constructSecondaryViewData:Boolean = true)
Constructor.
ViewData
  
clone(into:ViewData = null):ViewData
Clones the properties of this view data object into another.
ViewData
Public Constants
 ConstantDefined by
  MAXIMUM_FOV : Number = 179.999999999999999999999
[static] Maximum renderable field of view
ViewData
  MINIMUM_FOV : Number = 0.000000000000000000001
[static] Minimum renderable field of view
ViewData
Property detail
_boundsHeightproperty
public var _boundsHeight:Number

Height of panorama. Can be used in place of getter for faster access. Do NOT use in place of setter.

See also

boundsHeight
boundsHeightproperty 
boundsHeight:Number  [read-write]

Height of rendered panorama.

The default value is 375.

Implementation
    public function get boundsHeight():Number
    public function set boundsHeight(value:Number):void
_boundsWidthproperty 
public var _boundsWidth:Number

Width of panorama. Can be used in place of getter for faster access. Do NOT use in place of setter.

See also

boundsWidth
boundsWidthproperty 
boundsWidth:Number  [read-write]

Width of rendered panorama.

The default value is 500.

Implementation
    public function get boundsWidth():Number
    public function set boundsWidth(value:Number):void
constructedproperty 
protected var constructed:Boolean
_fieldOfViewproperty 
public var _fieldOfView:Number

Field of view. Can be used in place of getter for faster access. Do NOT use in place of setter.

See also

fieldOfView
fieldOfViewproperty 
fieldOfView:Number  [read-write]

Field of view.

The default value is 90.

Implementation
    public function get fieldOfView():Number
    public function set fieldOfView(value:Number):void
frustumBottomproperty 
public var frustumBottom:Vector3D

Bottom frustum plane as determined by field of view. For internal use.

frustumLeftproperty 
public var frustumLeft:Vector3D

Left frustum plane as determined by field of view. For internal use.

frustumRightproperty 
public var frustumRight:Vector3D

Right frustum plane as determined by field of view. For internal use.

frustumTopproperty 
public var frustumTop:Vector3D

Top frustum plane as determined by field of view. For internal use.

invalidproperty 
public var invalid:Boolean

Invalidation flag for all properties. i.e. if one of them is invalid, this must be invalid as well.

invalidPerspectiveproperty 
public var invalidPerspective:Boolean

Invalidation flag for field of view, boundsWidth and boundsHeight, which determine perspectiveProjection and perspectiveMatrix3D

invalidTransformproperty 
public var invalidTransform:Boolean

Invalidation flag for pan and tilt, which determine the transformMatrix3D

_maximumFieldOfViewproperty 
public var _maximumFieldOfView:Number

Maximum field of view. Can be used in place of getter for faster access. Do NOT use in place of setter.

See also

maximumFieldOfView
maximumFieldOfViewproperty 
maximumFieldOfView:Number  [read-write]

maximumFieldOfView

The default value is 179.999999999999999999999.

Implementation
    public function get maximumFieldOfView():Number
    public function set maximumFieldOfView(value:Number):void
_maximumPanproperty 
public var _maximumPan:Number

Maximum pan. Can be used in place of getter for faster access. Do NOT use in place of setter.

See also

maximumPan
maximumPanproperty 
maximumPan:Number  [read-write]

maximumPan

The default value is Number.POSITIVE_INFINITY.

Implementation
    public function get maximumPan():Number
    public function set maximumPan(value:Number):void
_maximumTiltproperty 
public var _maximumTilt:Number

Maximum tilt. Can be used in place of getter for faster access. Do NOT use in place of setter.

See also

maximumTilt
maximumTiltproperty 
maximumTilt:Number  [read-write]

maximumTilt

The default value is Number.POSITIVE_INFINITY.

Implementation
    public function get maximumTilt():Number
    public function set maximumTilt(value:Number):void
_minimumFieldOfViewproperty 
public var _minimumFieldOfView:Number

Minimum field of view. Can be used in place of getter for faster access. Do NOT use in place of setter.

See also

minimumFieldOfView
minimumFieldOfViewproperty 
minimumFieldOfView:Number  [read-write]

minimumFieldOfView

The default value is 0.000000000000000000001.

Implementation
    public function get minimumFieldOfView():Number
    public function set minimumFieldOfView(value:Number):void
_minimumPanproperty 
public var _minimumPan:Number

Minimum pan. Can be used in place of getter for faster access. Do NOT use in place of setter.

See also

minimumPan
minimumPanproperty 
minimumPan:Number  [read-write]

minimumPan

The default value is Number.NEGATIVE_INFINITY.

Implementation
    public function get minimumPan():Number
    public function set minimumPan(value:Number):void
_minimumTiltproperty 
public var _minimumTilt:Number

Minimum tilt. Can be used in place of getter for faster access. Do NOT use in place of setter.

See also

minimumTilt
minimumTiltproperty 
minimumTilt:Number  [read-write]

minimumTilt

The default value is Number.NEGATIVE_INFINITY.

Implementation
    public function get minimumTilt():Number
    public function set minimumTilt(value:Number):void
_panproperty 
public var _pan:Number

Pan angle. Can be used in place of getter for faster access. Do NOT use in place of setter.

See also

pan
panproperty 
pan:Number  [read-write]

Pan angle.

The default value is 0.

Implementation
    public function get pan():Number
    public function set pan(value:Number):void
_pathproperty 
public var _path:String

Path for panorama. Can be used in place of getter for faster access. Do NOT use in place of setter.

See also

path
pathproperty 
path:String  [read-write]

Path. Depending on the type of panorama images (tiled, QTVR, etc) the path will differ. Note that this property changes asynchronously. In other words, after you set it, accessing the value will return the previous value until the new panorama has loaded sufficiently to display. DeepZoom Style cubic: front face xml descriptor file Zoomify cubic: front face xml descriptor file cubic: front face image file QTVR: .mov file

The default value is null.

Implementation
    public function get path():String
    public function set path(value:String):void
perspectiveMatrix3Dproperty 
public var perspectiveMatrix3D:Matrix3D

Matrix3D from perspectiveProjection.toMatrix3d(). For internal use.

perspectiveProjectionproperty 
public var perspectiveProjection:PerspectiveProjection

PerspectiveProjection set from field of view, boundsWidth and boundsHeight. For internal use.

pixelsPerDegreeproperty 
public var pixelsPerDegree:Number

Pixels per degree as determined from field of view, boundsWidth and boundsHeight. For internal use.

secondaryViewDataproperty 
public var secondaryViewData:DependentViewData

Secondary ViewData, which is used for the secondary (outgoing) panorama.

See also

_tierThresholdproperty 
public var _tierThreshold:Number

Tier threshold. Can be used in place of getter for faster access. Do NOT use in place of setter.

See also

tierThreshold
tierThresholdproperty 
tierThreshold:Number  [read-write]

Tier Threshold. Specifies multiplier on pixels per degree which is used in the rendering cycle to determine which tier of tiles to display/load. Can be used to blur or sharpen the rendering by forcing use of higher or lower resolution tiles. E.g a value of 1.5 will blur the panorama.

The default value is 1.

Implementation
    public function get tierThreshold():Number
    public function set tierThreshold(value:Number):void
_tileproperty 
public var _tile:Tile

Tile. Can be used in place of getter for faster access. Do NOT use in place of setter.

See also

tile
tileproperty 
tile:Tile  [read-only]

The root tile in the tile linked list data structure. Read-only. It is dependent on the path.

Implementation
    public function get tile():Tile
_tiltproperty 
public var _tilt:Number

Tilt angle. Can be used in place of getter for faster access. Do NOT use in place of setter.

See also

tilt
tiltproperty 
tilt:Number  [read-write]

Tilt angle.

The default value is 0.

Implementation
    public function get tilt():Number
    public function set tilt(value:Number):void
transformMatrix3Dproperty 
public var transformMatrix3D:Matrix3D

Matrix3D recomposed from pan and tilt angles. For internal use.

Constructor detail
ViewData()constructor
public function ViewData(constructSecondaryViewData:Boolean = true)

Constructor.

Parameters
constructSecondaryViewData:Boolean (default = true) — Boolean true. When a DependentViewData object is constructed it will pass false so that the DendentViewData object does not create its own DependentViewData into an infinite loop.
Method detail
clone()method
public function clone(into:ViewData = null):ViewData

Clones the properties of this view data object into another. If into arg is not null it will clone into that ViewData object, otherwise it will clone into a new ViewData

Parameters
into:ViewData (default = null) — ViewData to clone into (optional, will create new if null)

Returns
ViewData
Constant detail
MAXIMUM_FOVconstant
public static const MAXIMUM_FOV:Number = 179.999999999999999999999

Maximum renderable field of view

The default value is 179.999999999999999999999.

MINIMUM_FOVconstant 
public static const MINIMUM_FOV:Number = 0.000000000000000000001

Minimum renderable field of view

The default value is 0.000000000000000000001.