51#ifndef _SB_LINE_PROJECTOR_
52#define _SB_LINE_PROJECTOR_
129 const SbVec2f &mousePosition2);
143 { lastPoint =
project(mousePosition); }
149 { lastPoint = point; }
virtual SbVec3f getVector(const SbVec2f &mousePosition1, const SbVec2f &mousePosition2)
Gets a vector on this line given two normalized mouse points.
virtual ~SbLineProjector()
Destructor.
virtual SbBool project(const SbVec2f &point, SbVec3f &projectedPoint)
Applies the projector using the given point, returning the point in three dimensions that it projects...
void setLine(const SbLine &line)
Sets the line on which to project 2D points.
virtual SbVec3f getVector(const SbVec2f &mousePosition)
Gets a vector given the current mouse point.
virtual SbVec3f project(const SbVec2f &point)
Applies the projector using the given point, returning the point in three dimensions that it projects...
const SbLine & getLine() const
Gets the line on which to project 2D points.
void setStartPosition(const SbVec2f &mousePosition)
Sets the initial position from a mouse position.
void setStartPosition(const SbVec3f &point)
Sets the initial position from a point on the projector.
virtual SbProjector * copy() const
Returns an instance that is a copy of this instance.
virtual SbVec3f intersect(const SbLine &line)
Applies the projector using the given line in world coordinates, returning the point in three dimensi...
SbLineProjector()
Constructor.
Base class for representing projectors.