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

Encapsulates information about a sub-component of a marker useful for presentation to a user. More...

#include <ARPattern.h>

Public Types

enum  PATTERN_TYPE { PATTERN_TYPE_NONE = 0 , PATTERN_TYPE_TEMPLATE , PATTERN_TYPE_MATRIX , PATTERN_TYPE_ISET }
 

Public Member Functions

 ARPattern ()
 
 ~ARPattern ()
 
bool loadTemplate (int patternID, const ARPattHandle *arPattHandle, float width)
 
bool loadMatrix (int barcodeID, AR_MATRIX_CODE_TYPE type, float width)
 

Public Attributes

ARdouble m_matrix [16]
 Transform of the pattern from origin. More...
 
float m_width
 Width of the pattern in mm. More...
 
float m_height
 Height of the pattern in mm. More...
 
int m_imageSizeX
 
int m_imageSizeY
 
uint32_t * m_image
 RGBA32 image of the pattern. More...
 

Detailed Description

Encapsulates information about a sub-component of a marker useful for presentation to a user.

For a single square marker, there will be one pattern per marker. For a multimarker (multiple square markers), there will be one or more patterns per marker.

Currently, the encapsulated information is the pose relative to the marker origin, and (for template markers only) the visual appearance of the pattern.

Member Enumeration Documentation

◆ PATTERN_TYPE

Enumerator
PATTERN_TYPE_NONE 
PATTERN_TYPE_TEMPLATE 
PATTERN_TYPE_MATRIX 
PATTERN_TYPE_ISET 

Constructor & Destructor Documentation

◆ ARPattern()

ARPattern::ARPattern ( )

◆ ~ARPattern()

ARPattern::~ARPattern ( )

Member Function Documentation

◆ loadMatrix()

bool ARPattern::loadMatrix ( int  barcodeID,
AR_MATRIX_CODE_TYPE  type,
float  width 
)

◆ loadTemplate()

bool ARPattern::loadTemplate ( int  patternID,
const ARPattHandle arPattHandle,
float  width 
)

Member Data Documentation

◆ m_height

float ARPattern::m_height

Height of the pattern in mm.

◆ m_image

uint32_t* ARPattern::m_image

RGBA32 image of the pattern.

◆ m_imageSizeX

int ARPattern::m_imageSizeX

◆ m_imageSizeY

int ARPattern::m_imageSizeY

◆ m_matrix

ARdouble ARPattern::m_matrix[16]

Transform of the pattern from origin.

◆ m_width

float ARPattern::m_width

Width of the pattern in mm.


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