56#ifndef _SB_LINE_PROJECTOR_
57#define _SB_LINE_PROJECTOR_
103 const SbVec2f &mousePosition2);
116 { lastPoint =
project(mousePosition); }
120 { lastPoint = point; }
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
virtual SbVec3f getVector(const SbVec2f &mousePosition1, const SbVec2f &mousePosition2)
Get a vector on this line given two normalized mouse points.
void setLine(const SbLine &line)
Set and get the line on which to project 2D points.
virtual SbVec3f getVector(const SbVec2f &mousePosition)
Get a vector given the current mouse point.
~SbLineProjector()
Constructor and destructor.
virtual SbVec3f project(const SbVec2f &point)
Apply the projector using the given point, returning the point in three dimensions that it projects t...
const SbLine & getLine() const
Set and get the line on which to project 2D points.
void setStartPosition(const SbVec2f &mousePosition)
Set the initial position from a mouse position.
void setStartPosition(const SbVec3f &point)
Set the initial position from a point on the projector.
virtual SbProjector * copy() const
Returns an instance that is a copy of this instance.
SbLineProjector()
Constructor and 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...