SbLineProjector(3IV)
SbLineProjector (SbLineProj) - line projector
Showing IRIX 6.5.30 (default release). Added in IRIX 6.5.22.
NAME SbLineProjector (SbLineProj) - line projector INHERITS FROM SbProjector > SbLineProjector SYNOPSIS #include <Inventor_c/projectors/SbLineProjector.h> typedef SbLineProjector SbLineProj Functions from class SbLineProjector: SbLineProjector * SbLineProjCreate() void SbLineProjDelete(SbLineProj *this) void SbLineProjSetLine(SbLineProj *this, const SbLine *line) const SbLine * SbLineProjGetLine(const SbLineProj *this) SbVec3f SbLineProjGetVecMouse2(SbLineProj *this, const SbVec2f *mousePosition1, const SbVec2f *mousePosition2) SbVec3f SbLineProjGetVecMouse1(SbLineProj *this, const SbVec2f *mousePosition) void SbLineProjSetStartPosMouse(SbLineProj *this, const SbVec2f *mousePosition) void SbLineProjSetStartPosPt(SbLineProj *this, const SbVec3f *point) Functions from class SbProjector: SbVec3f SbLineProjProject(SbLineProj *this, const SbVec2f *point) void SbLineProjSetViewVol(SbLineProj *this, const SbViewVolume *vol) const SbViewVolume * SbLineProjGetViewVol(const SbLineProj *this) void SbLineProjSetWorkSpace(SbLineProj *this, const SbMatrix *space) const SbMatrix * SbLineProjGetWorkSpace(const SbLineProj *this) SbProjector * SbLineProjCopy(const SbLineProj *this) DESCRIPTION SbLineProjector projects a 2D point, typically the location of the cursor, onto a 3D line. FUNCTIONS SbLineProjector * SbLineProjCreate() void SbLineProjDelete(SbLineProj *this) Constructor and destructor. The default line passes through the origin and is aligned with the Y axis. void SbLineProjSetLine(SbLineProj *this, const SbLine *line) const SbLine * SbLineProjGetLine(const SbLineProj *this) Set and get the line on which to project 2D points. SbVec3f SbLineProjGetVecMouse2(SbLineProj *this, const SbVec2f *mousePosition1, const SbVec2f *mousePosition2) Get a vector on this line given two normalized mouse points. SbVec3f SbLineProjGetVecMouse1(SbLineProj *this, const SbVec2f *mousePosition) Get a vector given the current mouse point. Uses the last point on this projector from the previous call to SbLineProjGetVecMouse1(), SbLineProjSetStartPosMouse(), or SbLineProjSetStartPosPt(). 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. void SbLineProjSetStartPosMouse(SbLineProj *this, const SbVec2f *mousePosition) Set the initial position from a mouse position. void SbLineProjSetStartPosPt(SbLineProj *this, const SbVec3f *point) Set the initial position from a point on the projector. FILE FORMAT/DEFAULTS LineProjector { } SEE ALSO SbCylinderProjector, SbCylinderPlaneProjector, SbCylinderSectionProjector, SbCylinderSheetProjector, SbPlaneProjector, SbSpherePlaneProjector, SbSphereProjector, SbSphereSectionProjector, SbSphereSheetProjector