logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

SbLineProjector — line projector

Description

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

Inherits From

       SbProjector > SbLineProjector

Methods

SbLineProjector()~SbLineProjector()
          Constructor and destructor. The default line passes through the origin and is aligned with the Y axis.

     voidsetLine(constSbLine&line)constSbLine&getLine()const
          Set and get the line on which to project 2D points.

     virtualSbVec3fgetVector(constSbVec2f&mousePosition1,constSbVec2f&mousePosition2)
          Get a vector on this line given two normalized mouse points.

     virtualSbVec3fgetVector(constSbVec2f&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.

     voidsetStartPosition(constSbVec2f&mousePosition)
          Set the initial position from a mouse position.

     voidsetStartPosition(constSbVec3f&point)
          Set the initial position from a point on the projector.

Name

       SbLineProjector — line projector

See Also

SbCylinderProjector,SbCylinderPlaneProjector,SbCylinderSectionProjector,SbCylinderSheetProjector,SbPlaneProjector,SbSpherePlaneProjector,SbSphereProjector,SbSphereSectionProjector,SbSphereSheetProjectorSbLineProjector(3IV)()

Synopsis

#include<Inventor/projectors/SbLineProjector.h>

          Methods from class SbLineProjector:

                         SbLineProjector()~SbLineProjector()voidsetLine(constSbLine&line)constSbLine&getLine()constvirtualSbVec3fgetVector(constSbVec2f&mousePosition1,constSbVec2f&mousePosition2)virtualSbVec3fgetVector(constSbVec2f&mousePosition)voidsetStartPosition(constSbVec2f&mousePosition)voidsetStartPosition(constSbVec3f&point)

          Methods from class SbProjector:

     virtualSbVec3fproject(constSbVec2f&point)virtualvoidsetViewVolume(constSbViewVolume&vol)constSbViewVolume&getViewVolume()constvirtualvoidsetWorkingSpace(constSbMatrix&space)constSbMatrix&getWorkingSpace()constvirtualSbProjector*copy()const

See Also