Packagecom.transmote.flar.utils
Classpublic class FLARProxy
InheritanceFLARProxy Inheritance flash.display.Sprite
ImplementsIFLARSource

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
  resultsToDisplayRatio : Number
[read-only] ratio of area of reported results to display size.
FLARProxy
  source : BitmapData
[read-only] FLARProxy has no BitmapData source; method is here only for compliance with IFLARSource.
FLARProxy
  sourceSize : Rectangle
[read-only] size of BitmapData source used for analysis.
FLARProxy
Public Methods
 MethodDefined by
  
FLARProxy(displayWidth:Number, displayHeight:Number)
constructor.
FLARProxy
  
activate():void
begin marker simulation.
FLARProxy
  
deactivate():void
stop 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  [read-write]

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
resultsToDisplayRatioproperty 
resultsToDisplayRatio:Number  [read-only]

ratio of area of reported results to display size. use to scale (multiply) results of FLARToolkit analysis to correctly fit display area. FLARProxy always uses the whole screen size, so this method returns 1.0.

Implementation
    public function get resultsToDisplayRatio():Number
sourceproperty 
source:BitmapData  [read-only]

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

Implementation
    public function get source():BitmapData
sourceSizeproperty 
sourceSize:Rectangle  [read-only]

size of BitmapData source used for analysis.

Implementation
    public function get sourceSize():Rectangle
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

begin marker simulation.

deactivate()method 
public function deactivate():void

stop 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.