|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.picking.PickResult
public class PickResult
Result of a picking action.
| Field Summary | |
|---|---|
protected org.openmali.vecmath2.Tuple3f |
tmpPos
|
| Constructor Summary | |
|---|---|
PickResult(Leaf node,
float dist)
Creates a new instance of PickResult. |
|
PickResult(Leaf node,
float minDist,
float maxDist,
float medDist)
Creates a new instance of PickResult. |
|
PickResult(Leaf node,
int faceIndex,
float minDist,
float maxDist,
float medDist)
Creates a new instance of PickResult. |
|
| Method Summary | |
|---|---|
int |
compareTo(PickResult pr)
Compares two PickResults according to their distances. |
boolean |
equals(java.lang.Object o)
|
org.jagatoo.input.devices.components.MouseButton |
getButton()
|
int |
getFaceIndex()
|
Geometry |
getGeometry()
|
float |
getMaximumDistance()
|
float |
getMedialDistance()
|
float |
getMinimumDistance()
|
Leaf |
getNode()
|
Node |
getPickHost()
|
Node |
getPickHostOrNode()
|
org.openmali.vecmath2.Tuple3f |
getPos()
|
Transform3D |
getTransform()
|
void |
setFaceIndex(int faceIndex)
|
void |
setMaximumDistance(float dist)
Sets the maximum distance to the intersection |
void |
setMedialDistance(float dist)
Sets the medial distance to the intersection |
void |
setMinimumDistance(float dist)
Sets the minimum distance to the intersection |
void |
setPos(org.openmali.vecmath2.Tuple3f pos)
|
java.lang.String |
toString()
|
void |
transform(org.openmali.vecmath2.Point3f p)
Transforms a point in global-space to local space of this Shape3D. |
void |
transform(org.openmali.vecmath2.Ray3f ray)
Transforms a Ray3f in global-space to local space of this Shape3D. |
void |
transform(org.openmali.vecmath2.Vector3f v)
Transforms a vector in global-space to local space of this Shape3D. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected org.openmali.vecmath2.Tuple3f tmpPos
| Constructor Detail |
|---|
public PickResult(Leaf node,
float minDist,
float maxDist,
float medDist)
public PickResult(Leaf node,
int faceIndex,
float minDist,
float maxDist,
float medDist)
public PickResult(Leaf node,
float dist)
| Method Detail |
|---|
public Leaf getNode()
public Node getPickHost()
public Node getPickHostOrNode()
public Geometry getGeometry()
getNode()public void setFaceIndex(int faceIndex)
public int getFaceIndex()
getNode(),
getGeometry()public void transform(org.openmali.vecmath2.Vector3f v)
v - the vector to transformpublic void transform(org.openmali.vecmath2.Point3f p)
p - the point to transformpublic void transform(org.openmali.vecmath2.Ray3f ray)
ray - the ray to transformpublic void setPos(org.openmali.vecmath2.Tuple3f pos)
public org.openmali.vecmath2.Tuple3f getPos()
public void setMinimumDistance(float dist)
dist - the distancepublic float getMinimumDistance()
public void setMaximumDistance(float dist)
dist - the distancepublic float getMaximumDistance()
public void setMedialDistance(float dist)
dist - the distancepublic float getMedialDistance()
public final org.jagatoo.input.devices.components.MouseButton getButton()
public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(PickResult pr)
compareTo in interface java.lang.Comparable<PickResult>pr - the PickResult to compare topublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic Transform3D getTransform()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||