H3D::SphereSensor::Set_SphereEvents Class Reference
The
Set_SphereEvents field takes care of sending trackPoint_changed, rotation_changed, and offset events when they should be sent.
More...
#include <H3D/SphereSensor.h>
List of all members.

Public Member Functions 
 Set_SphereEvents () 
 Constructor.

Protected Member Functions 
virtual void  update () 
 update the value of this field and set the fields mentioned above

int  intersectSegmentSphere (Vec3f a1, Vec3f a2, H3DFloat &t, Vec3f &q) 
 Intersects segment s = a1 + t(a2a1) with sphere defined by center and radius (see below), if intersecting, returns t value of intersection and intersection point q.

Protected Attributes 
bool  new_radius 
 If true a new radius will be defined.

Detailed Description
The
Set_SphereEvents field takes care of sending trackPoint_changed, rotation_changed, and offset events when they should be sent.
 routes_in[0] is the position field of a MouseSensor
 routes_in[1] is the isActive field.
Member Function Documentation
int SphereSensor::Set_SphereEvents::intersectSegmentSphere 
( 
Vec3f 
a1, 


Vec3f 
a2, 


H3DFloat & 
t, 


Vec3f & 
q  

) 
  [protected] 
Intersects segment s = a1 + t(a2a1) with sphere defined by center and radius (see below), if intersecting, returns t value of intersection and intersection point q.
References H3DSqrt().
Referenced by update().
The documentation for this class was generated from the following files: