![]() |
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. More... | |
| ARTrackable (const ARTrackable &)=delete | |
| Copy construction is undefined. More... | |
| ARTrackable & | operator= (const ARTrackable &)=delete |
| Copy assignment is undefined. More... | |
| 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). More... | |
| ARPattern * | getPattern (int n) |
| Returns the specified pattern within this trackable. More... | |
| 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) More... | |
| TrackableType | type |
| Type of trackable: single, multi, ... More... | |
| bool | visiblePrev |
| Whether or not the trackable was visible prior to last update. More... | |
| bool | visible |
| Whether or not the trackable is visible at current time. More... | |
| ARdouble | transformationMatrix [16] |
| Transformation suitable for use in OpenGL. More... | |
| ARdouble | transformationMatrixR [16] |
| Transformation suitable for use in OpenGL. More... | |
| int | patternCount |
| If this trackable has a surface appearance, the number of patterns that it has (1 for single). More... | |
| ARPattern ** | patterns |
| Array of pointers to patterns. More... | |
Protected Member Functions | |
| void | allocatePatterns (int count) |
| Allocates space for patterns within this trackable. More... | |
| void | freePatterns () |
| Frees allocated patterns and resets the pattern count to zero. More... | |
Protected Attributes | |
| ARdouble | trans [3][4] |
| Transformation from camera to this trackable. If stereo, transform from left camera to this trackable. More... | |
| ARdouble | m_positionScaleFactor |
Base class for supported trackable types.
| ARTrackable::ARTrackable | ( | TrackableType | type | ) |
Constructor takes the type of this trackable.
|
delete |
Copy construction is undefined.
|
virtual |
|
protected |
Allocates space for patterns within this trackable.
| count | The number of patterns to allocate |
| ARdouble ARTrackable::filterCutoffFrequency | ( | ) |
| ARdouble ARTrackable::filterSampleRate | ( | ) |
|
protected |
Frees allocated patterns and resets the pattern count to zero.
| ARPattern * ARTrackable::getPattern | ( | int | n | ) |
Returns the specified pattern within this trackable.
| n | The pattern to retrieve |
| 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 |
| int ARTrackable::patternCount |
If this trackable has a surface appearance, the number of patterns that it has (1 for single).
| ARPattern** ARTrackable::patterns |
Array of pointers to patterns.
|
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.5