|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jartoolkit.util.ARPattern
Class encapsulate a pattern for the AR-Toolkit.
Constructor Summary | |
ARPattern(JARToolKit jar_tk)
Constructor. |
|
ARPattern(JARToolKit jar_tk,
java.lang.String filename)
Constructor. |
|
ARPattern(JARToolKit jar_tk,
java.lang.String filename,
int width,
float centerX,
float centerY)
Constructor. |
Method Summary | |
void |
activate()
Activate the pattern to be recognized by the AR-Toolkit. |
void |
deactivate()
Deactivate the pattern to be net recognized by the AR-Toolkit. |
float[] |
getCenter()
Return the center of the pattern. |
java.lang.String |
getFilename()
Return the filename of the pattern. |
int |
getId()
Return the internal id given by the AR-Toolkit. |
double[] |
getTransMatrix()
Return the transformation-matrix of the pattern as an array of 16 doubles. |
boolean |
getTransMatrix(double[] matrix)
Fills the transformation-matrix of the pattern as an array of 16 doubles. |
boolean |
getTransMatrixJava3D(double[] matrix)
Fills the transformation-matrix of the pattern as an array of 16 doubles. |
int |
getWidth()
Return the width of the pattern. |
void |
loadPattern(java.lang.String filename)
Loads a new pattern. |
void |
setCenter(float centerX,
float centerY)
Set the center of the pattern. |
void |
setWidth(int width)
Set the width of the pattern. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ARPattern(JARToolKit jar_tk) throws java.lang.InstantiationException
jar_tk
- Reference to the JARToolKit.public ARPattern(JARToolKit jar_tk, java.lang.String filename) throws java.lang.InstantiationException
jar_tk
- Reference to the JARToolKit.filename
- The filename of the pattern to load.public ARPattern(JARToolKit jar_tk, java.lang.String filename, int width, float centerX, float centerY) throws java.lang.InstantiationException
jar_tk
- Reference to the JARToolKit.filename
- The filename of the pattern to load.width
- The width of the pattern.centerX
- The center of the pattern, x component.centerY
- The center of the pattern, y component.Method Detail |
public void activate()
public void deactivate()
public float[] getCenter()
public java.lang.String getFilename()
public int getId()
public double[] getTransMatrix()
public boolean getTransMatrix(double[] matrix)
matrix
- The doublearray filled with.
public boolean getTransMatrixJava3D(double[] matrix)
matrix
- The doublearray filled with.
public int getWidth()
public void loadPattern(java.lang.String filename) throws java.lang.InstantiationException
filename
- The filename of the pattern to load.
java.lang.InstantiationException
public void setCenter(float centerX, float centerY)
centerX
- The center of the pattern, x component.centerY
- The center of the pattern, y component.public void setWidth(int width)
width
- The width of the pattern.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |