Packagecom.transmote.flar.source
Classpublic class FLARProxy
InheritanceFLARProxy Inheritance flash.display.Sprite
Implements IFLARSource

FLARProxy provides a way to test FLARToolkit applications with a mouse and keyboard. To use, add useProxy='true' to the flarSourceSettings node in your configuration XML file. Since FLARProxy responds to mouse interaction, it must be added to the display list in order to capture mouse interaction and dispatch FLARMarkerEvents.

Clicking the mouse sends a MARKER_ADDED event, dragging the mouse sends a MARKER_UPDATED event, and releasing the mouse sends a MARKER_REMOVED event. These events can be handled exactly as if they were dispatched by FLARManager.

Press keys 0-9 to specify a patternId. FLARProxy only supports patternIds 0 through 9.



Public Properties
 PropertyDefined By
  inited : Boolean
[read-only] Returns true if initialization is complete.
FLARProxy
  mirrored : Boolean
FLARProxy cannot be mirrored; method is here only for compliance with IFLARSource.
FLARProxy
  source : BitmapData
[read-only] FLARProxy has no BitmapData source; method is here only for compliance with IFLARSource.
FLARProxy
  sourceDirty : Boolean
[read-only] FLARProxy always returns true, to ensure tracking happens every frame.
FLARProxy
  sourceSize : Rectangle
[read-only] Size of BitmapData source used for analysis.
FLARProxy
  trackerToDisplayRatio : Number
[read-only] Ratio of area of tracker's reported results to display size.
FLARProxy
Public Methods
 MethodDefined By
  
FLARProxy(displayWidth:Number, displayHeight:Number)
Constructor.
FLARProxy
  
activate():void
Activate marker simulation.
FLARProxy
  
deactivate():void
Deactivate marker simulation.
FLARProxy
  
dispose():void
Halts all processes and frees this instance for garbage collection.
FLARProxy
  
update():void
FLARProxy updates on mouse interaction; method is here only for compliance with IFLARSource.
FLARProxy
Property Detail
initedproperty
inited:Boolean  [read-only]

Returns true if initialization is complete. FLARProxy is inited automatically in constructor.


Implementation
    public function get inited():Boolean
mirroredproperty 
mirrored:Boolean

FLARProxy cannot be mirrored; method is here only for compliance with IFLARSource.


Implementation
    public function get mirrored():Boolean
    public function set mirrored(value:Boolean):void
sourceproperty 
source:BitmapData  [read-only]

FLARProxy has no BitmapData source; method is here only for compliance with IFLARSource.


Implementation
    public function get source():BitmapData
sourceDirtyproperty 
sourceDirty:Boolean  [read-only]

FLARProxy always returns true, to ensure tracking happens every frame.


Implementation
    public function get sourceDirty():Boolean
sourceSizeproperty 
sourceSize:Rectangle  [read-only]

Size of BitmapData source used for analysis.


Implementation
    public function get sourceSize():Rectangle
trackerToDisplayRatioproperty 
trackerToDisplayRatio:Number  [read-only]

Ratio of area of tracker's reported results to display size. Use to scale (multiply) results of tracker analysis to correctly fit display area. FLARProxy always uses the whole screen size, so this method returns 1.0.


Implementation
    public function get trackerToDisplayRatio():Number
Constructor Detail
FLARProxy()Constructor
public function FLARProxy(displayWidth:Number, displayHeight:Number)

Constructor.

Parameters
displayWidth:Number — Width of active area.
 
displayHeight:Number — Height of active area.
Method Detail
activate()method
public function activate():void

Activate marker simulation.

deactivate()method 
public function deactivate():void

Deactivate marker simulation.

dispose()method 
public function dispose():void

Halts all processes and frees this instance for garbage collection.

update()method 
public function update():void

FLARProxy updates on mouse interaction; method is here only for compliance with IFLARSource.