Package | com.transmote.flar.source |
Class | public class FLARLoaderSource |
Inheritance | FLARLoaderSource flash.display.Sprite |
Implements | IFLARSource |
Property | Defined by | ||
---|---|---|---|
inited : Boolean [read-only]
returns true if initialization is complete.
| FLARLoaderSource | ||
mirrored : Boolean
FLARLoaderSource cannot be mirrored;
method is here only for compliance with IFLARSource.
| FLARLoaderSource | ||
resultsToDisplayRatio : Number [read-only]
ratio of area of reported results to display size.
| FLARLoaderSource | ||
source : BitmapData [read-only]
retrieve the BitmapData source used for analysis.
| FLARLoaderSource | ||
sourceSize : Rectangle [read-only]
size of BitmapData source used for analysis.
| FLARLoaderSource |
Method | Defined by | ||
---|---|---|---|
FLARLoaderSource(contentPath:String, displayWidth:Number, displayHeight:Number, downsampleRatio:Number = 0.5)
constructor.
| FLARLoaderSource | ||
dispose():void
halts all processes and frees this instance for garbage collection.
| FLARLoaderSource | ||
update():void
update the BitmapData source used for analysis.
| FLARLoaderSource |
inited | property |
inited:Boolean
[read-only]returns true if initialization is complete. FLARLoaderSource is inited automatically in constructor.
Implementation public function get inited():Boolean
mirrored | property |
mirrored:Boolean
[read-write]FLARLoaderSource cannot be mirrored; method is here only for compliance with IFLARSource.
Implementation public function get mirrored():Boolean
public function set mirrored(value:Boolean):void
resultsToDisplayRatio | property |
resultsToDisplayRatio:Number
[read-only]ratio of area of reported results to display size. used to scale results of FLARToolkit analysis to correctly fit display area.
Implementation public function get resultsToDisplayRatio():Number
source | property |
source:BitmapData
[read-only]retrieve the BitmapData source used for analysis. NOTE: returns the actual BitmapData object, not a clone.
Implementation public function get source():BitmapData
sourceSize | property |
sourceSize:Rectangle
[read-only]size of BitmapData source used for analysis.
Implementation public function get sourceSize():Rectangle
FLARLoaderSource | () | constructor |
public function FLARLoaderSource(contentPath:String, displayWidth:Number, displayHeight:Number, downsampleRatio:Number = 0.5)
constructor.
ParameterscontentPath:String — filename to load.
|
|
displayWidth:Number — width of source file.
|
|
displayHeight:Number — height of source file.
|
|
downsampleRatio:Number (default = 0.5 ) — amount to downsample camera input.
adjust to balance between image quality and marker tracking performance.
a value of 1.0 results in no downsampling;
a value of 0.5 (the default) downsamples the camera input by half.
|
dispose | () | method |
public function dispose():void
halts all processes and frees this instance for garbage collection.
update | () | method |
public function update():void
update the BitmapData source used for analysis.