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

SbProjector — base class for representing projectors

Description

SbProjector  is  the  base  class  for  all projector classes. Projector classes are used to convert from
       window space (usually based on the mouse location) into a 3D point. This is done by projecting the window
       coordinate as a 3D vector onto a geometric function in 3-space, and  computing  the  intersection  point.
       Most projectors actually compute incremental changes and produce incremental rotations and translation as
       needed.  Projectors are used to write 3D interactive manipulators and viewers.

Inherits From

       SbProjector

Methods

virtualSbVec3fproject(constSbVec2f&point)
          Apply  the  projector  using the given point, returning the point in three dimensions that it projects
          to. The point should be normalized (lie in the range [0.0,1.0]), with (0,0) at the lower-left.

     virtualvoidsetViewVolume(constSbViewVolume&vol)constSbViewVolume&getViewVolume()const
          Set  and  get  the  view  volume  to  use  for  the  projection.  This  is  typically  supplied   from
          SoCamera::getViewVolume().

     virtualvoidsetWorkingSpace(constSbMatrix&space)constSbMatrix&getWorkingSpace()const
          Set  and  get  the  transform space to work in. This matrix should transform working space coordinates
          into world space. The default matrix is identity, meaning that the  default  working  space  is  world
          space.

     virtualSbProjector*copy()const
          Creates and returns an exact copy of the projector.

Name

       SbProjector — base class for representing projectors

See Also

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

Synopsis

#include<Inventor/projectors/SbProjector.h>

          Methods from class SbProjector:

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

See Also