File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
mode/libraries/ar/src/processing/ar Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ public class ARGraphics extends PGraphics3D {
57
57
static protected final int PLANE_CEILING = 1 ;
58
58
static protected final int PLANE_WALL = 2 ;
59
59
static protected final int POINT = 3 ;
60
+ static protected final int IMAGE = 4 ;
60
61
61
62
static protected final int TRACKING = 0 ;
62
63
static protected final int PAUSED = 1 ;
Original file line number Diff line number Diff line change @@ -115,6 +115,11 @@ public boolean isFloorPlane() {
115
115
return g .trackableType (idx ) == ARGraphics .PLANE_FLOOR ;
116
116
}
117
117
118
+ public boolean isImage (){
119
+ int idx = g .trackableIndex (id );
120
+ return g .trackableType (idx )== ARGraphics .IMAGE ;
121
+ }
122
+
118
123
public boolean isCeilingPlane () {
119
124
int idx = g .trackableIndex (id );
120
125
return g .trackableType (idx ) == ARGraphics .PLANE_CEILING ;
Original file line number Diff line number Diff line change 40
40
41
41
public class ARTracker {
42
42
protected PApplet p ;
43
- protected ARGraphics g ;
43
+ protected ARGraphics g , arg ;
44
44
protected AugmentedImageDatabase imgDB ;
45
45
46
46
private HashMap <String , ARTrackable > trackables = new HashMap <String , ARTrackable >();
@@ -52,8 +52,8 @@ public ARTracker(PApplet parent) {
52
52
this .p = parent ;
53
53
this .g = (ARGraphics ) p .g ;
54
54
setEventHandler ();
55
- ARGraphics arg = (ARGraphics )parent .g ;
56
- imgDB = new AugmentedImageDatabase (arg .surfar .session ); //A new Database has been created.
55
+ this . arg = (ARGraphics )parent .g ;
56
+ this . imgDB = new AugmentedImageDatabase (arg .surfar .session ); //A new Database has been created.
57
57
}
58
58
59
59
public void addImage (String name , PImage img ) {
You can’t perform that action at this time.
0 commit comments