gnu.gleem
Class HitPoint

java.lang.Object
  |
  +--gnu.gleem.HitPoint

public class HitPoint
extends java.lang.Object

Defines an intersection of a ray with a piece of a manipulator


Field Summary
 IntersectionPoint intPt
          The combination of 3D point and t parameter at which the intersection occurred.
 ManipPart manipPart
          The sub-piece of the manipulator which was actually intersected
 Manip manipulator
          The manipulator which was intersected
 Vec3f rayDirection
          Direction of the ray which was cast.
 Vec3f rayStart
          Start of the ray which was cast.
 boolean shiftDown
          Was the shift key down while this HitPoint was computed?
 java.lang.Object userData
          Arbitrary user data for extended functionality
 
Constructor Summary
HitPoint()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

shiftDown

public boolean shiftDown
Was the shift key down while this HitPoint was computed?


manipulator

public Manip manipulator
The manipulator which was intersected


manipPart

public ManipPart manipPart
The sub-piece of the manipulator which was actually intersected


rayStart

public Vec3f rayStart
Start of the ray which was cast. The manipulator part must set this when an intersection is detected.


rayDirection

public Vec3f rayDirection
Direction of the ray which was cast. The manipulator part must set this when an intersection is detected.


intPt

public IntersectionPoint intPt
The combination of 3D point and t parameter at which the intersection occurred. It's important to supply the t parameter because the ManipManager needs it to disambiguate between intersections with multiple manipulators.


userData

public java.lang.Object userData
Arbitrary user data for extended functionality

Constructor Detail

HitPoint

public HitPoint()