51#ifndef _SB_PLANE_PROJECTOR_
52#define _SB_PLANE_PROJECTOR_
146 const SbVec2f &mousePosition2);
160 { lastPoint =
project(mousePosition); }
166 { lastPoint = point; }
#define FALSE
Possible value of SbBool.
void setStartPosition(const SbVec3f &point)
Sets the initial position from a point on the projector.
SbPlaneProjector(const SbPlane &plane, SbBool orient=FALSE)
Constructor which is passed a plane.
virtual SbVec3f getVector(const SbVec2f &mousePosition)
Gets a vector given the current mouse point.
virtual SbVec3f intersect(const SbLine &line)
Applies the projector using the given line in world coordinates, returning the point in three dimensi...
SbBool isOrientToEye() const
Gets whether the projector should be oriented towards the eye.
virtual ~SbPlaneProjector()
Destructor.
virtual SbVec3f project(const SbVec2f &point)
Applies the projector using the given point, returning the point in three dimensions that it projects...
virtual SbVec3f getVector(const SbVec2f &mousePosition1, const SbVec2f &mousePosition2)
Gets a vector on this plane given two normalized mouse positions.
void setPlane(const SbPlane &plane)
Sets the plane to use.
const SbPlane & getPlane() const
Gets the plane to use.
void setOrientToEye(SbBool orientToEye)
Sets whether the projector should be oriented towards the eye.
void setStartPosition(const SbVec2f &mousePosition)
Sets the initial mouse position.
virtual SbProjector * copy() const
Returns an instance that is a copy of this instance.
SbPlaneProjector(SbBool orient=FALSE)
Constructor.
Base class for representing projectors.