57#ifndef _SB_SPHERE_PROJECTOR_
58#define _SB_SPHERE_PROJECTOR_
122 bool isFront()
const {
return intersectFront; }
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
Base class for representing projectors.
Class for representing a rotation.
virtual SbVec3f project(const SbVec2f &point)=0
Apply the projector using the given point, returning the point in three dimensions that it projects t...
void setFront(bool inFront)
Set whether the projector should intersect the half of the sphere that faces the eye.
void setOrientToEye(bool orientToEye)
Set and get whether the projector should always be oriented towards the eye.
virtual void setWorkingSpace(const SbMatrix &space)
Set the transform space to work in.
SbSphereProjector(bool orientToEye)
Constructors The default sphere to use has a radius of 1.0 and is centered at (0,0,...
bool isOrientToEye() const
Set and get whether the projector should always be oriented towards the eye.
bool orientToEye
TRUE if always oriented to eye.
virtual SbRotation getRotation(const SbVec3f &point1, const SbVec3f &point2)=0
Get a rotation given two points on this sphere projector.
const SbSphere & getSphere() const
Set and get the sphere on which to project points.
SbSphereProjector(const SbSphere &s, bool orientToEye)
bool isFront() const
Get whether the projector should intersect the half of the sphere that faces the eye.
bool isPointInFront(const SbVec3f &point) const
Get whether the projector should intersect the half of the sphere that faces the eye.
~SbSphereProjector()
Destructor.
SbVec3f projectAndGetRotation(const SbVec2f &point, SbRotation &rot)
Apply the projector using the given point, returning the point in three dimensions that it projects t...
void setSphere(const SbSphere &sph)
Set and get the sphere on which to project points.
SbVec3f lastPoint
cached last point on this projector
bool intersectFront
Are intersections done on the front half (if not, they're done on the back half) of the sphere?
SbSphere sphere
The sphere being used.
bool needSetup
Set TRUE whenever sphere, work space or orientation changes.
Class for representing a sphere.