public class Picker extends Object
Modifier and Type | Field and Description |
---|---|
Buffer |
buffer
Main picking buffer Direct access to the buffer is allowed so you can
draw shapes that you wouldn't like to draw on the main screen (like
bounding boxes).
|
static String |
VERSION |
Constructor and Description |
---|
Picker(processing.core.PApplet parent) |
Modifier and Type | Method and Description |
---|---|
void |
draw() |
int |
get(int x,
int y)
Reads the ID of the object at point (x, y) -1 means there is no object at
this point
|
processing.core.PGraphics |
getBuffer()
Get the buffer
|
void |
pre() |
void |
resume()
Resumes recording object(s)
|
void |
start(int i)
Begins recording object(s)
|
void |
stop()
Stops/pauses recording object(s)
|
static String |
version() |
public static final String VERSION
public Buffer buffer
public void pre()
public void draw()
public void start(int i)
i
- Object IDpublic void stop()
public void resume()
public int get(int x, int y)
x
- X coordinatey
- Y coordinatepublic processing.core.PGraphics getBuffer()
public static String version()
Processing Library Picking by Nicolas Clavaud. (c) 2013-2016