57#ifndef _SB_PLANE_PROJECTOR_
58#define _SB_PLANE_PROJECTOR_
121 const SbVec2f &mousePosition2);
135 { lastPoint =
project(mousePosition); }
139 { lastPoint = point; }
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
void setOrientToEye(bool orientToEye)
Set whether the projector should be oriented towards the eye.
bool isOrientToEye() const
Get whether the projector should be oriented towards the eye.
void setStartPosition(const SbVec3f &point)
Set the initial position from a point on the projector.
SbVec3f lastPoint
Cached last point.
virtual SbVec3f getVector(const SbVec2f &mousePosition)
Get a vector given the current mouse point.
virtual SbVec3f project(const SbVec2f &point)
Apply the projector using the given point, returning the point in three dimensions that it projects t...
bool orientToEye
TRUE is plane should be oriented to eye.
virtual SbVec3f getVector(const SbVec2f &mousePosition1, const SbVec2f &mousePosition2)
Get a vector on this plane given two normalized mouse points.
void setPlane(const SbPlane &plane)
Set and get the plane to use.
const SbPlane & getPlane() const
Set and get the plane to use.
SbPlaneProjector(const SbPlane &plane, bool orient=FALSE)
Constructor that takes a plane.
SbPlane nonOrientPlane
Non-EyeOriented plane.
void setStartPosition(const SbVec2f &mousePosition)
Set the initial mouse position.
bool needSetup
Set TRUE when plane or orientToEye changes.
virtual SbProjector * copy() const
Returns an instance that is a copy of this instance.
SbPlaneProjector(bool orient=FALSE)
Constructor.
void setupPlane()
Sets up plane orientation, if necessary.
~SbPlaneProjector()
Destructor.
Base class for representing projectors.
virtual SbVec3f project(const SbVec2f &point)=0
Apply the projector using the given point, returning the point in three dimensions that it projects t...