edu.dhbw.andar.pub
Class CustomObject

java.lang.Object
  extended by edu.dhbw.andar.ARObject
      extended by edu.dhbw.andar.pub.CustomObject

public class CustomObject
extends ARObject

An example of an AR object being drawn on a marker.

Author:
tobi

Constructor Summary
CustomObject(java.lang.String name, java.lang.String patternName, double markerWidth, double[] markerCenter)
           
CustomObject(java.lang.String name, java.lang.String patternName, double markerWidth, double[] markerCenter, float[] customColor)
           
 
Method Summary
 void draw(GL10 gl)
          Everything drawn here will be drawn directly onto the marker, as the corresponding translation matrix will already be applied.
 void init(GL10 gl)
           
 
Methods inherited from class edu.dhbw.andar.ARObject
getCenter, getId, getMarkerWidth, getPatternName, getTransMatrix, isVisible
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomObject

public CustomObject(java.lang.String name,
                    java.lang.String patternName,
                    double markerWidth,
                    double[] markerCenter)

CustomObject

public CustomObject(java.lang.String name,
                    java.lang.String patternName,
                    double markerWidth,
                    double[] markerCenter,
                    float[] customColor)
Method Detail

draw

public final void draw(GL10 gl)
Everything drawn here will be drawn directly onto the marker, as the corresponding translation matrix will already be applied.

Overrides:
draw in class ARObject

init

public void init(GL10 gl)
Specified by:
init in class ARObject