![]() |
ARX
1.0
The next-generation open source augmented reality toolkit.
|
Base class for supported trackable types. More...
#include <ARTrackable.h>
Public Types | |
| enum | TrackableType { SINGLE , MULTI , NFT , TwoD , MULTI_AUTO } |
Public Member Functions | |
| ARTrackable (TrackableType type) | |
| Constructor takes the type of this trackable. | |
| ARTrackable (const ARTrackable &)=delete | |
| Copy construction is undefined. | |
| ARTrackable & | operator= (const ARTrackable &)=delete |
| Copy assignment is undefined. | |
| virtual | ~ARTrackable () |
| void | setPositionScalefactor (ARdouble scale) |
| ARdouble | positionScalefactor () |
| virtual bool | update (const ARdouble transL2R[3][4]=NULL) |
| Completes an update begun in the parent class, performing filtering, generating OpenGL view matrix and notifying listeners (just a log message at the moment). | |
| virtual int | getPatternCount ()=0 |
| virtual std::pair< float, float > | getPatternSize (int patternIndex)=0 |
| virtual std::pair< int, int > | getPatternImageSize (int patternIndex, AR_MATRIX_CODE_TYPE matrixCodeType)=0 |
| virtual bool | getPatternTransform (int patternIndex, ARdouble T[16])=0 |
| Get the transform, relative to this trackable's origin, of this pattern. | |
| virtual bool | getPatternImage (int patternIndex, uint32_t *pattImageBuffer, AR_MATRIX_CODE_TYPE matrixCodeType)=0 |
| void | setFiltered (bool flag) |
| bool | isFiltered () |
| ARdouble | filterSampleRate () |
| void | setFilterSampleRate (ARdouble rate) |
| ARdouble | filterCutoffFrequency () |
| void | setFilterCutoffFrequency (ARdouble freq) |
Public Attributes | |
| int | UID |
| Internal unique ID (note: not the same as artoolkitX pattern ID) | |
| TrackableType | type |
| Type of trackable: single, multi, ... | |
| bool | visiblePrev |
| Whether or not the trackable was visible prior to last update. | |
| bool | visible |
| Whether or not the trackable is visible at current time. | |
| ARdouble | transformationMatrix [16] |
| Transformation suitable for use in OpenGL. | |
| ARdouble | transformationMatrixR [16] |
| Transformation suitable for use in OpenGL. | |
Static Public Attributes | |
| static const int | NO_ID = -1 |
| Value of UID that indicates no ID. | |
Protected Attributes | |
| ARdouble | trans [3][4] |
| Transformation from camera to this trackable. If stereo, transform from left camera to this trackable. | |
| ARdouble | m_positionScaleFactor |
Static Protected Attributes | |
| static std::atomic< int > | nextUID {0} |
Base class for supported trackable types.
| ARTrackable::ARTrackable | ( | TrackableType | type | ) |
Constructor takes the type of this trackable.
|
delete |
Copy construction is undefined.
|
virtual |
| ARdouble ARTrackable::filterCutoffFrequency | ( | ) |
| ARdouble ARTrackable::filterSampleRate | ( | ) |
|
pure virtual |
Implemented in ARTrackableMultiSquare, ARTrackableMultiSquareAuto, and ARTrackableSquare.
|
pure virtual |
Implemented in ARTrackableMultiSquare, ARTrackableMultiSquareAuto, and ARTrackableSquare.
|
pure virtual |
Implemented in ARTrackableMultiSquare, ARTrackableMultiSquareAuto, and ARTrackableSquare.
|
pure virtual |
Implemented in ARTrackableMultiSquare, ARTrackableMultiSquareAuto, and ARTrackableSquare.
|
pure virtual |
Get the transform, relative to this trackable's origin, of this pattern.
Fills T with the transform in column-major (OpenGL) order.
Implemented in ARTrackableMultiSquare, ARTrackableMultiSquareAuto, and ARTrackableSquare.
| bool ARTrackable::isFiltered | ( | ) |
|
delete |
Copy assignment is undefined.
| ARdouble ARTrackable::positionScalefactor | ( | ) |
| void ARTrackable::setFilterCutoffFrequency | ( | ARdouble | freq | ) |
| void ARTrackable::setFiltered | ( | bool | flag | ) |
| void ARTrackable::setFilterSampleRate | ( | ARdouble | rate | ) |
| void ARTrackable::setPositionScalefactor | ( | ARdouble | scale | ) |
|
virtual |
Completes an update begun in the parent class, performing filtering, generating OpenGL view matrix and notifying listeners (just a log message at the moment).
Subclasses should first do their required updates, set visible, visiblePrev, and trans[3][4] then call ARTrackable::update().
|
protected |
|
staticprotected |
|
static |
Value of UID that indicates no ID.
|
protected |
Transformation from camera to this trackable. If stereo, transform from left camera to this trackable.
| ARdouble ARTrackable::transformationMatrix[16] |
Transformation suitable for use in OpenGL.
| ARdouble ARTrackable::transformationMatrixR[16] |
Transformation suitable for use in OpenGL.
| TrackableType ARTrackable::type |
Type of trackable: single, multi, ...
| int ARTrackable::UID |
Internal unique ID (note: not the same as artoolkitX pattern ID)
| bool ARTrackable::visible |
Whether or not the trackable is visible at current time.
| bool ARTrackable::visiblePrev |
Whether or not the trackable was visible prior to last update.
1.9.6