SbLineProjector(3IV)NAMESbLineProjector (SbLineProj) - line projector
INHERITS FROM
SbProjector > SbLineProjectorSYNOPSIS
#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)
DESCRIPTIONSbLineProjector projects a 2D point, typically the location of the
cursor, onto a 3D line.
FUNCTIONSSbLineProjector * SbLineProjCreate()
void SbLineProjDelete(SbLineProj *this)
Constructor and destructor. The default line passes through the
origin and is aligned with the Y axis.
Page 1SbLineProjector(3IV)
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
Page 2