logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SbSphereProjector — sphere projector

Description

SbSphereProjector  is an abstract base class for projectors that use a sphere in their projection. Sphere
       projectors are typically used to write interactive 3D manipulators and viewers.

Inherits From

       SbProjector > SbSphereProjector

Methods

SbVec3fprojectAndGetRotation(constSbVec2f&point,SbRotation&rot)
          Apply the projector using the given point, returning the point in three dimensions  that  it  projects
          to.  This also returns in rot a rotation on the surface of the sphere from the last projected point to
          this one. The passed point should be normalized (i.e. lie in the range [0.0,1.0]), with (0,0)  at  the
          lower-left.

     virtualSbRotationgetRotation(constSbVec3f&point1,constSbVec3f&point2)
          Get  a  rotation given two points on this sphere projector. The rotation will be on the surface of the
          sphere.

     voidsetSphere(constSbSphere&sph)constSbSphere&getSphere()const
          Set and get the sphere on which to project points. The default sphere has radius 1.0.

     voidsetOrientToEye(SbBoolorientToEye)SbBoolisOrientToEye()const
          Set and get whether the projector should always be oriented towards the  eye.  Set  to  FALSE  if  the
          tolerance should be evaluated in working space.

     voidsetFront(SbBoolisFront)SbBoolisFront()constSbBoolisPointInFront(constSbVec3f&point)const
          Set  and  get whether the projector should intersect the half of the sphere that faces the eye. Set to
          FALSE if the projector should intersect with the rear half.

Name

       SbSphereProjector — sphere projector

See Also

SbCylinderProjector,SbCylinderPlaneProjector,SbCylinderSectionProjector,SbCylinderSheetProjector,SbLineProjector,SbPlaneProjector,SbSpherePlaneProjector,SbSphereSectionProjector,SbSphereSheetProjectorSbSphereProjector(3IV)()

Synopsis

#include<Inventor/projectors/SbSphereProjector.h>

          Methods from class SbSphereProjector:

     SbVec3fprojectAndGetRotation(constSbVec2f&point,SbRotation&rot)virtualSbRotationgetRotation(constSbVec3f&point1,constSbVec3f&point2)voidsetSphere(constSbSphere&sph)constSbSphere&getSphere()constvoidsetOrientToEye(SbBoolorientToEye)SbBoolisOrientToEye()constvoidsetFront(SbBoolisFront)SbBoolisFront()constSbBoolisPointInFront(constSbVec3f&point)const

          Methods from class SbProjector:

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

See Also