Packagecom.transmote.flar.marker
Classpublic class FLARMarker

container for information about a detected marker, including: - pattern and session ids; - centerpoint of marker; - corners of marker outline - Vector3D instance that describes x, y, and z location, and rotation (in the z-axis) of marker; - rotation of marker around x, y, and z axes.



Public Properties
 PropertyDefined by
  _centerpoint : Point = null
FLARMarker
  centerpoint : Point
[read-only] centerpoint of marker outline; calculated as average of four corner points.
FLARMarker
  _confidence : Number
FLARMarker
  confidence : Number
[read-only] 'confidence' is a value assigned by FLARToolkit to each detected marker, that describes the algorithm's perceived accuracy of the pattern match.
FLARMarker
  corners : Vector
[read-only]
FLARMarker
  _deprecatedOutline : FLARMarkerOutline
FLARMarker
  _direction : int
FLARMarker
  direction : int
[read-only] closest orthographic orientation of detected marker.
FLARMarker
  _flarSource : IFLARSource
FLARMarker
  _flarSquare : FLARSquare
FLARMarker
  flarSquare : FLARSquare
[read-only] FLARSquare instance used to create this FLARMarkerOutline instance.
FLARMarker
  outline : FLARMarkerOutline
[read-only] FLARMarkerOutline is deprecated; its properties and methods have been incorporated into FLARMarker, eliminating the need to reference FLARMarker.outline to access transformations on a detected FLARMarker.
FLARMarker
  _patternId : int
FLARMarker
  patternId : int
[read-only] ID of this marker's pattern.
FLARMarker
  _rotationX : Number = NaN
FLARMarker
  rotationX : Number
[read-only] rotation of marker along X axis.
FLARMarker
  _rotationY : Number = NaN
FLARMarker
  rotationY : Number
[read-only] rotation of marker along Y axis.
FLARMarker
  _rotationZ : Number = NaN
FLARMarker
  rotationZ : Number
[read-only] rotation of marker along Z axis.
FLARMarker
  _sessionId : int = -1
FLARMarker
  sessionId : uint
[read-only] ID unique to this marker in this session.
FLARMarker
  targetCenterpoint : Point
[read-only] returns centerpoint at location toward which this FLARMarker is moving (target location at end of smoothing animation).
FLARMarker
  _transformMatrix : FLARDoubleMatrix34
FLARMarker
  transformMatrix : FLARDoubleMatrix34
[read-only] FLARDoubleMatrix34 matrix that describes transformation of marker relative to the camera.
FLARMarker
  _vector3D : Vector3D = null
FLARMarker
  vector3D : Vector3D
[read-only] Vector3D instance that describes x, y, and z coordinates, as well as rotationZ (stored as vector3D.w).
FLARMarker
Public Methods
 MethodDefined by
  
FLARMarker(detectorResult:FLARMultiMarkerDetectorResult, transformMatrix:FLARDoubleMatrix34, flarSource:IFLARSource, deprecatedOutline:FLARMarkerOutline)
constructor.
FLARMarker
  
applySmoothing(smoother:IFLARMatrixSmoother, numFrames:int):void
apply smoothing algorithm over a number of frames.
FLARMarker
  
copy(otherMarker:FLARMarker):void
copy the properties of a FLARMarker into this FLARMarker.
FLARMarker
  
dispose():void
free this FLARMarker instance up for garbage collection.
FLARMarker
  
setSessionId():void
called only by FLARManager, when a new FLARMarker is detected.
FLARMarker
  
toString():String
FLARMarker
Property detail
_centerpointproperty
public var _centerpoint:Point = null
centerpointproperty 
centerpoint:Point  [read-only]

centerpoint of marker outline; calculated as average of four corner points.

Implementation
    public function get centerpoint():Point
_confidenceproperty 
public var _confidence:Number
confidenceproperty 
confidence:Number  [read-only]

'confidence' is a value assigned by FLARToolkit to each detected marker, that describes the algorithm's perceived accuracy of the pattern match.

Implementation
    public function get confidence():Number
cornersproperty 
corners:Vector  [read-only]Implementation
    public function get corners():Vector
_deprecatedOutlineproperty 
public var _deprecatedOutline:FLARMarkerOutline
_directionproperty 
public var _direction:int
directionproperty 
direction:int  [read-only]

closest orthographic orientation of detected marker. value between 0 and 3, inclusive: 0: up 1: left 2: down 3: right

Implementation
    public function get direction():int
_flarSourceproperty 
public var _flarSource:IFLARSource
_flarSquareproperty 
public var _flarSquare:FLARSquare
flarSquareproperty 
flarSquare:FLARSquare  [read-only]

FLARSquare instance used to create this FLARMarkerOutline instance. can be accessed if direct access to FLARToolkit output is desired; no downsampling correction is applied.

Implementation
    public function get flarSquare():FLARSquare
outlineproperty 
outline:FLARMarkerOutline  [read-only]

FLARMarkerOutline is deprecated; its properties and methods have been incorporated into FLARMarker, eliminating the need to reference FLARMarker.outline to access transformations on a detected FLARMarker.

Implementation
    public function get outline():FLARMarkerOutline
_patternIdproperty 
public var _patternId:int
patternIdproperty 
patternId:int  [read-only]

ID of this marker's pattern. pattern IDs are zero-indexed, and are assigned to patterns in the order they were initially loaded.

Implementation
    public function get patternId():int
_rotationXproperty 
public var _rotationX:Number = NaN
rotationXproperty 
rotationX:Number  [read-only]

rotation of marker along X axis.

Implementation
    public function get rotationX():Number
_rotationYproperty 
public var _rotationY:Number = NaN
rotationYproperty 
rotationY:Number  [read-only]

rotation of marker along Y axis.

Implementation
    public function get rotationY():Number
_rotationZproperty 
public var _rotationZ:Number = NaN
rotationZproperty 
rotationZ:Number  [read-only]

rotation of marker along Z axis.

Implementation
    public function get rotationZ():Number
_sessionIdproperty 
public var _sessionId:int = -1
sessionIdproperty 
sessionId:uint  [read-only]

ID unique to this marker in this session. no two markers in a session share the same sessionId.

Implementation
    public function get sessionId():uint
targetCenterpointproperty 
targetCenterpoint:Point  [read-only]

returns centerpoint at location toward which this FLARMarker is moving (target location at end of smoothing animation).

Implementation
    public function get targetCenterpoint():Point
_transformMatrixproperty 
public var _transformMatrix:FLARDoubleMatrix34
transformMatrixproperty 
transformMatrix:FLARDoubleMatrix34  [read-only]

FLARDoubleMatrix34 matrix that describes transformation of marker relative to the camera. apply to FLARBaseNodes that should appear 'tethered' to the marker.

Implementation
    public function get transformMatrix():FLARDoubleMatrix34
_vector3Dproperty 
public var _vector3D:Vector3D = null
vector3Dproperty 
vector3D:Vector3D  [read-only]

Vector3D instance that describes x, y, and z coordinates, as well as rotationZ (stored as vector3D.w).

Implementation
    public function get vector3D():Vector3D
Constructor detail
FLARMarker()constructor
public function FLARMarker(detectorResult:FLARMultiMarkerDetectorResult, transformMatrix:FLARDoubleMatrix34, flarSource:IFLARSource, deprecatedOutline:FLARMarkerOutline)

constructor.

Parameters
detectorResult:FLARMultiMarkerDetectorResult
 
transformMatrix:FLARDoubleMatrix34
 
flarSource:IFLARSource
 
deprecatedOutline:FLARMarkerOutline
Method detail
applySmoothing()method
public function applySmoothing(smoother:IFLARMatrixSmoother, numFrames:int):void

apply smoothing algorithm over a number of frames. called by FLARManager as part of marker tracking/maintenance process.

Parameters
smoother:IFLARMatrixSmoother
 
numFrames:int
copy()method 
public function copy(otherMarker:FLARMarker):void

copy the properties of a FLARMarker into this FLARMarker.

Parameters
otherMarker:FLARMarker
dispose()method 
public function dispose():void

free this FLARMarker instance up for garbage collection.

setSessionId()method 
public function setSessionId():void

called only by FLARManager, when a new FLARMarker is detected. this method should not be called by developers. (poor OOP, i know....sorry.)

toString()method 
public function toString():String

Returns
String