60#ifndef _SB_CYLINDER_PROJECTOR_
61#define _SB_CYLINDER_PROJECTOR_
133 bool isFront()
const {
return intersectFront; }
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
bool needSetup
Set TRUE whenever cylinder, work space or orientation changes.
virtual SbVec3f project(const SbVec2f &point)=0
Apply the projector using the given point, returning the point in three dimensions that it projects t...
bool isFront() const
Set and get whether the projector should intersect the half of the cylinder that faces the eye.
void setFront(bool isFront)
Set and get whether the projector should intersect the half of the cylinder that faces the eye.
virtual void setWorkingSpace(const SbMatrix &space)
Set the transform space to work in.
SbCylinderProjector(bool orientToEye)
Constructors The default cylinder to is centered about the Y axis and has a radius of 1....
virtual SbRotation getRotation(const SbVec3f &point1, const SbVec3f &point2)=0
Get a rotation given two points on this cylinder projector.
~SbCylinderProjector()
Destructor.
bool orientToEye
TRUE if always oriented to eye.
const SbCylinder & getCylinder() const
Set and get the cylinder on which to project points.
void setOrientToEye(bool orientToEye)
Set and get whether the projector should always be oriented towards the eye.
bool intersectFront
Are intersections done on the front half ( if not, they're done on th e back half) of the cylinder?
bool isPointInFront(const SbVec3f &point) const
Set and get whether the projector should intersect the half of the cylinder that faces the eye.
SbVec3f projectAndGetRotation(const SbVec2f &point, SbRotation &rot)
Apply the projector using the given point, returning the point in three dimensions that it projects t...
SbVec3f lastPoint
Cached last point on this projector.
bool isOrientToEye() const
Set and get whether the projector should always be oriented towards the eye.
void setCylinder(const SbCylinder &cyl)
Set and get the cylinder on which to project points.
SbCylinder cylinder
Cylinder for this projector.
SbCylinderProjector(const SbCylinder &cyl, bool orientToEye)
Class for representing a cylinder.
Base class for representing projectors.
Class for representing a rotation.