man SbLineProjector () - line projector

NAME

SbLineProjector - line projector

INHERITS FROM

SbProjector > SbLineProjector

SYNOPSIS

#include <Inventor/projectors/SbLineProjector.h> Methods from class SbLineProjector: c } c } SbLineProjector()

c } c } ~SbLineProjector()

c } c } setLine(const SbLine &line)

c } c } getLine() const

c } c } getVector(const SbVec2f &mousePosition1, const SbVec2f &mousePosition2)

c } c } getVector(const SbVec2f &mousePosition)

c } c } setStartPosition(const SbVec2f &mousePosition)

c } c } setStartPosition(const SbVec3f &point) Methods from class SbProjector: c } c } project(const SbVec2f &point)

c } c } setViewVolume(const SbViewVolume &vol)

c } c } getViewVolume() const

c } c } setWorkingSpace(const SbMatrix &space)

c } c } getWorkingSpace() const

c } c } copy() const

DESCRIPTION

SbLineProjector projects a 2D point, typically the location of the cursor, onto a 3D line.

METHODS

c } c } SbLineProjector()

c } c } ~SbLineProjector()

Constructor and destructor. The default line passes through the origin and is aligned with the Y axis. c } c } setLine(const SbLine &line)

c } c } getLine() const

Set and get the line on which to project 2D points. c } c } getVector(const SbVec2f &mousePosition1, const SbVec2f &mousePosition2)

Get a vector on this line given two normalized mouse points. c } c } getVector(const SbVec2f &mousePosition)

Get a vector given the current mouse point. Uses the last point on this projector from the previous call to getVector() or setStartPostion(). Do not use this if the working space transform is changing since the new point will be in a different space than the old one. c } c } setStartPosition(const SbVec2f &mousePosition)

Set the initial position from a mouse position. c } c } setStartPosition(const SbVec3f &point)

Set the initial position from a point on the projector.

SEE ALSO

SbCylinderProjector, SbCylinderPlaneProjector, SbCylinderSectionProjector, SbCylinderSheetProjector, SbPlaneProjector, SbSpherePlaneProjector, SbSphereProjector, SbSphereSectionProjector, SbSphereSheetProjector