ARX  1.0
The next-generation open source augmented reality toolkit.
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
ARTrackableSquare Class Reference

Single marker type of ARTrackable. More...

#include <ARTrackableSquare.h>

Inheritance diagram for ARTrackableSquare:
[legend]
Collaboration diagram for ARTrackableSquare:
[legend]

Public Member Functions

 ARTrackableSquare ()
 
 ~ARTrackableSquare ()
 
ARdouble getConfidence ()
 
ARdouble getConfidenceCutoff ()
 
void setConfidenceCutoff (ARdouble value)
 
bool initWithPatternFile (const char *path, ARdouble width, ARPattHandle *arPattHandle)
 
bool initWithPatternFromBuffer (const char *buffer, ARdouble width, ARPattHandle *arPattHandle)
 
bool initWithBarcode (int barcodeID, ARdouble width)
 
bool updateWithDetectedMarkers (ARMarkerInfo *markerInfo, int markerNum, AR3DHandle *ar3DHandle)
 Updates the marker with new tracking info. More...
 
bool updateWithDetectedMarkersStereo (ARMarkerInfo *markerInfoL, int markerNumL, ARMarkerInfo *markerInfoR, int markerNumR, AR3DStereoHandle *handle, ARdouble transL2R[3][4])
 
- Public Member Functions inherited from ARTrackable
 ARTrackable (TrackableType type)
 Constructor takes the type of this trackable. More...
 
 ARTrackable (const ARTrackable &)=delete
 Copy construction is undefined. More...
 
ARTrackableoperator= (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...
 
ARPatterngetPattern (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 patt_id
 Unique pattern ID provided by artoolkitX. More...
 
int patt_type
 
bool useContPoseEstimation
 
- Public Attributes inherited from ARTrackable
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

bool unload ()
 
- Protected Member Functions inherited from ARTrackable
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

ARPattHandlem_arPattHandle
 
ARdouble m_width
 
ARdouble m_cf
 
ARdouble m_cfMin
 
- Protected Attributes inherited from ARTrackable
ARdouble trans [3][4]
 Transformation from camera to this trackable. If stereo, transform from left camera to this trackable. More...
 
ARdouble m_positionScaleFactor
 

Additional Inherited Members

- Public Types inherited from ARTrackable
enum  TrackableType {
  SINGLE , MULTI , NFT , TwoD ,
  MULTI_AUTO
}
 

Detailed Description

Single marker type of ARTrackable.

Constructor & Destructor Documentation

◆ ARTrackableSquare()

ARTrackableSquare::ARTrackableSquare ( )

◆ ~ARTrackableSquare()

ARTrackableSquare::~ARTrackableSquare ( )
Here is the call graph for this function:

Member Function Documentation

◆ getConfidence()

ARdouble ARTrackableSquare::getConfidence ( )

◆ getConfidenceCutoff()

ARdouble ARTrackableSquare::getConfidenceCutoff ( )

◆ initWithBarcode()

bool ARTrackableSquare::initWithBarcode ( int  barcodeID,
ARdouble  width 
)
Here is the call graph for this function:

◆ initWithPatternFile()

bool ARTrackableSquare::initWithPatternFile ( const char *  path,
ARdouble  width,
ARPattHandle arPattHandle 
)
Here is the call graph for this function:

◆ initWithPatternFromBuffer()

bool ARTrackableSquare::initWithPatternFromBuffer ( const char *  buffer,
ARdouble  width,
ARPattHandle arPattHandle 
)
Here is the call graph for this function:

◆ setConfidenceCutoff()

void ARTrackableSquare::setConfidenceCutoff ( ARdouble  value)

◆ unload()

bool ARTrackableSquare::unload ( )
protected
Here is the call graph for this function:

◆ updateWithDetectedMarkers()

bool ARTrackableSquare::updateWithDetectedMarkers ( ARMarkerInfo markerInfo,
int  markerNum,
AR3DHandle ar3DHandle 
)

Updates the marker with new tracking info.

Then calls ARTrackable::update()

Parameters
markerInfoArray containing detected marker information
markerNumNumber of items in the array
ar3DHandleAR3DHandle used to extract marker pose.
Here is the call graph for this function:

◆ updateWithDetectedMarkersStereo()

bool ARTrackableSquare::updateWithDetectedMarkersStereo ( ARMarkerInfo markerInfoL,
int  markerNumL,
ARMarkerInfo markerInfoR,
int  markerNumR,
AR3DStereoHandle handle,
ARdouble  transL2R[3][4] 
)
Here is the call graph for this function:

Member Data Documentation

◆ m_arPattHandle

ARPattHandle* ARTrackableSquare::m_arPattHandle
protected

◆ m_cf

ARdouble ARTrackableSquare::m_cf
protected

◆ m_cfMin

ARdouble ARTrackableSquare::m_cfMin
protected

◆ m_width

ARdouble ARTrackableSquare::m_width
protected

◆ patt_id

int ARTrackableSquare::patt_id

Unique pattern ID provided by artoolkitX.

◆ patt_type

int ARTrackableSquare::patt_type

◆ useContPoseEstimation

bool ARTrackableSquare::useContPoseEstimation

The documentation for this class was generated from the following files: