ARWrapper
Provides a C++ wrapper around ARToolKit and exposes a C and JNI API
 All Classes Files Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
ARMarkerMulti Class Reference

Multiple marker type of ARMarker. More...

#include <ARMarkerMulti.h>

Inheritance diagram for ARMarkerMulti:
ARMarker

Public Member Functions

 ARMarkerMulti ()
 
 ~ARMarkerMulti ()
 
bool load (const char *multiConfig, ARPattHandle *arPattHandle)
 
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 ARMarker
 ARMarker (MarkerType type)
 Constructor takes the type of this marker. More...
 
virtual ~ARMarker ()
 
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 marker. More...
 
void setFiltered (bool flag)
 
bool isFiltered ()
 
ARdouble filterSampleRate ()
 
void setFilterSampleRate (ARdouble rate)
 
ARdouble filterCutoffFrequency ()
 
void setFilterCutoffFrequency (ARdouble freq)
 

Public Attributes

ARMultiMarkerInfoT * config
 Structure holding information about the multimarker patterns. More...
 
bool robustFlag
 Flag specifying which pose estimation approach to use. More...
 
- Public Attributes inherited from ARMarker
int UID
 Internal unique ID (note: not the same as ARToolKit pattern ID) More...
 
MarkerType type
 Type of marker: single, multi, ... More...
 
bool visiblePrev
 Whether or not the marker was visible prior to last update. More...
 
bool visible
 Whether or not the marker 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
 Number of patterns in this marker (1 for single) More...
 
ARPattern ** patterns
 Array of pointers to patterns. More...
 

Protected Member Functions

bool unload ()
 
- Protected Member Functions inherited from ARMarker
void allocatePatterns (int count)
 Allocates space for patterns within this marker. More...
 
void freePatterns ()
 Frees allocated patterns and resets the pattern count to zero. More...
 

Additional Inherited Members

- Public Types inherited from ARMarker
enum  MarkerType { SINGLE, MULTI, NFT }
 
- Static Public Member Functions inherited from ARMarker
static std::vector< ARMarker * > newFromConfigDataFile (const char *markersConfigDataFilePath, ARPattHandle *arPattHandle, int *patternDetectionMode_out)
 
static ARMarkernewWithConfig (const char *cfg, ARPattHandle *arPattHandle)
 
- Protected Attributes inherited from ARMarker
ARdouble trans [3][4]
 Transformation from camera to this marker. If stereo, transform from left camera to this marker. More...
 
ARdouble m_positionScaleFactor
 

Detailed Description

Multiple marker type of ARMarker.

Constructor & Destructor Documentation

ARMarkerMulti::ARMarkerMulti ( )
ARMarkerMulti::~ARMarkerMulti ( )

Member Function Documentation

bool ARMarkerMulti::load ( const char *  multiConfig,
ARPattHandle *  arPattHandle 
)
bool ARMarkerMulti::unload ( )
protected
bool ARMarkerMulti::updateWithDetectedMarkers ( ARMarkerInfo *  markerInfo,
int  markerNum,
AR3DHandle *  ar3DHandle 
)

Updates the marker with new tracking info.

Then calls ARMarker::update()

Parameters
markerInfoArray containing detected marker information
markerNumNumber of items in the array
ar3DHandleAR3DHandle used to extract marker pose.
bool ARMarkerMulti::updateWithDetectedMarkersStereo ( ARMarkerInfo *  markerInfoL,
int  markerNumL,
ARMarkerInfo *  markerInfoR,
int  markerNumR,
AR3DStereoHandle *  handle,
ARdouble  transL2R[3][4] 
)

Member Data Documentation

ARMultiMarkerInfoT* ARMarkerMulti::config

Structure holding information about the multimarker patterns.

bool ARMarkerMulti::robustFlag

Flag specifying which pose estimation approach to use.


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