public class Picker extends Object
| Constructor and Description | 
|---|
Picker(DefaultUniverse univ)
Constructs a new Picker 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addPoint(Content c,
        int x,
        int y)
Adds a landmark point specfied by the canvas position 
 | 
void | 
addPoint(Content c,
        MouseEvent e)
Adds a landmark point specfied by the position of the MouseEvent. 
 | 
void | 
deletePoint(Content c,
           MouseEvent e)
Deletes a landmark point of the specified Content at the given mouse
 position 
 | 
Content | 
getPickedContent(int x,
                int y)
Get the Content at the specified canvas position 
 | 
int[] | 
getPickedVertexIndices(BranchGroup bg,
                      int x,
                      int y)  | 
List<Map.Entry<Point3d,Float>> | 
getPickPointColumn(Content c,
                  int x,
                  int y)  | 
Point3d | 
getPickPointGeometry(Content c,
                    int x,
                    int y)
Get the picked point, using geometry picking, for the specified canvas
 position. 
 | 
Point3d | 
getPickPointGeometry(Content c,
                    MouseEvent e)
Get the picked point, using geometry picking, for the specified canvas
 position. 
 | 
Point3d | 
getPickPointGeometry(Content c,
                    Point3d origin,
                    Vector3d dir)
Get the picked point using geometry picking. 
 | 
void | 
movePoint(Content c,
         MouseEvent e)
Moves the picked landmark point to the position specified by the
 MouseEvent. 
 | 
void | 
stopMoving()
Stop moving. 
 | 
public Picker(DefaultUniverse univ)
univ - public void deletePoint(Content c, MouseEvent e)
c - e - public void movePoint(Content c, MouseEvent e)
c - e - public void stopMoving()
public void addPoint(Content c, int x, int y)
c - x - position in the canvasy - position in the canvaspublic void addPoint(Content c, MouseEvent e)
c - e - public Point3d getPickPointGeometry(Content c, Point3d origin, Vector3d dir)
c - origin - dir - public Point3d getPickPointGeometry(Content c, MouseEvent e)
c - e - public Point3d getPickPointGeometry(Content c, int x, int y)
c - x - y - public List<Map.Entry<Point3d,Float>> getPickPointColumn(Content c, int x, int y)
public int[] getPickedVertexIndices(BranchGroup bg, int x, int y)
public Content getPickedContent(int x, int y)
x - y - Copyright © 2015–2021 Fiji. All rights reserved.