public class DTrackMeaTool
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
DTrackMeaTool(int id)
Constructor for not tracked Measurement Tool, without tip radius and covariance.
|
protected |
DTrackMeaTool(int id,
double quality,
double tipradius,
int[] button,
double[] loc,
double[][] rot,
double[][] cov)
Constructor for tracked and not tracked Measurement Tool, with tip radius and covariance.
|
protected |
DTrackMeaTool(int id,
double quality,
int[] button,
double[] loc,
double[][] rot)
Constructor for tracked and not tracked Measurement Tool, without tip radius and covariance.
|
Modifier and Type | Method and Description |
---|---|
int[] |
getButton()
Returns state of buttons.
|
double[][] |
getCov()
Returns covariance of tip.
|
int |
getId()
Returns ID number.
|
double[] |
getLoc()
Returns location.
|
int |
getNumButton()
Returns number of buttons.
|
double |
getQuality()
Returns quality.
|
double[][] |
getRot()
Returns orientation.
|
double |
getTipRadius()
Returns radius of tip.
|
boolean |
isTracked()
Returns if Measurement tool is currently tracked.
|
protected void |
setNotTracked()
Set to 'not tracked'.
|
protected DTrackMeaTool(int id)
id
- ID number (starting with 0)protected DTrackMeaTool(int id, double quality, double tipradius, int[] button, double[] loc, double[][] rot, double[][] cov)
id
- ID number (starting with 0)quality
- Quality (0 ≤ qu ≤ 1, no tracking if -1)tipradius
- Radius of tip if applicable (in [mm])button
- Button state (0, 1)loc
- Location (in [mm])rot
- Rotation matrix (3x3-dimensional)cov
- Covariance of location (3x3-dimensional; in [mm²])protected DTrackMeaTool(int id, double quality, int[] button, double[] loc, double[][] rot)
id
- ID number (starting with 0)quality
- Quality (0 ≤ qu ≤ 1, no tracking if -1)button
- Button state (0, 1)loc
- Location (in [mm])rot
- Rotation matrix (3x3-dimensional)public int getId()
public boolean isTracked()
public double getQuality()
public double getTipRadius()
public int getNumButton()
public int[] getButton()
public double[] getLoc()
public double[][] getRot()
public double[][] getCov()
protected void setNotTracked()