Package | com.transmote.flar.marker |
Class | public class FLARMarker |
Property | Defined 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 |
Method | Defined 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 |
_centerpoint | property |
public var _centerpoint:Point = null
centerpoint | property |
centerpoint:Point
[read-only]centerpoint of marker outline; calculated as average of four corner points.
Implementation public function get centerpoint():Point
_confidence | property |
public var _confidence:Number
confidence | property |
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
corners | property |
corners:Vector
[read-only]Implementation
public function get corners():Vector
_deprecatedOutline | property |
public var _deprecatedOutline:FLARMarkerOutline
_direction | property |
public var _direction:int
direction | property |
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
_flarSource | property |
public var _flarSource:IFLARSource
_flarSquare | property |
public var _flarSquare:FLARSquare
flarSquare | property |
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
outline | property |
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
_patternId | property |
public var _patternId:int
patternId | property |
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
_rotationX | property |
public var _rotationX:Number = NaN
rotationX | property |
rotationX:Number
[read-only]rotation of marker along X axis.
Implementation public function get rotationX():Number
_rotationY | property |
public var _rotationY:Number = NaN
rotationY | property |
rotationY:Number
[read-only]rotation of marker along Y axis.
Implementation public function get rotationY():Number
_rotationZ | property |
public var _rotationZ:Number = NaN
rotationZ | property |
rotationZ:Number
[read-only]rotation of marker along Z axis.
Implementation public function get rotationZ():Number
_sessionId | property |
public var _sessionId:int = -1
sessionId | property |
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
targetCenterpoint | property |
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
_transformMatrix | property |
public var _transformMatrix:FLARDoubleMatrix34
transformMatrix | property |
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
_vector3D | property |
public var _vector3D:Vector3D = null
vector3D | property |
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
FLARMarker | () | constructor |
public function FLARMarker(detectorResult:FLARMultiMarkerDetectorResult, transformMatrix:FLARDoubleMatrix34, flarSource:IFLARSource, deprecatedOutline:FLARMarkerOutline)
constructor.
ParametersdetectorResult:FLARMultiMarkerDetectorResult |
|
transformMatrix:FLARDoubleMatrix34 |
|
flarSource:IFLARSource |
|
deprecatedOutline:FLARMarkerOutline |
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.
Parameterssmoother:IFLARMatrixSmoother |
|
numFrames:int |
copy | () | method |
public function copy(otherMarker:FLARMarker):void
copy the properties of a FLARMarker into this FLARMarker.
ParametersotherMarker: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 |