SBPROJECTOR(3iv)

✨ NAME ✨

SbProjector β€” bestie, this is the base class for representing projectors πŸ’…


🧬 INHERITS FROM 🧬

SbProjector

(yes, it inherits from itself, it's giving main character energy, it is the blueprint πŸ‘‘)


πŸ“œ SYNOPSIS πŸ“œ

#include <Inventor/projectors/SbProjector.h>

Methods from class SbProjector:

virtual SbVec3f        project(const SbVec2f &point)
virtual void           setViewVolume(const SbViewVolume &vol)
const SbViewVolume &   getViewVolume() const
virtual void           setWorkingSpace(const SbMatrix &space)
const SbMatrix &       getWorkingSpace() const
virtual SbProjector *  copy() const

🌸 DESCRIPTION 🌸

okay so. SbProjector is the base class for all the projector classes, no cap. Projector classes exist to convert from window space (usually based on where the mouse is, you know the vibe πŸ–±οΈ) into a 3D point. The way that works is: you project the window coordinate as a 3D vector onto a geometric function in 3-space, and then you compute the intersection point. slay.

Most projectors actually compute incremental changes and produce incremental rotations and translation as needed. fr fr.

Projectors are used to write 3D interactive manipulators and viewers. periodt. πŸ’–


πŸ› οΈ METHODS πŸ› οΈ

  • virtual SbVec3f project(const SbVec2f &point) β€” Apply the projector using the given point, and it returns the point in three dimensions that it projects to. heads up bestie: the point should be normalized (so it lies in the range [0.0,1.0]), with (0,0) at the lower-left. don't forget or it's giving chaos 😭
  • virtual void setViewVolume(const SbViewVolume &vol) const SbViewVolume & getViewVolume() const β€” Set and get the view volume to use for the projection. This is typically supplied from SoCamera::getViewVolume(). πŸŽ€
  • virtual void setWorkingSpace(const SbMatrix &space) const SbMatrix & 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, which means the default working space is world space. iconic default behavior honestly ✨
  • virtual SbProjector * copy() const β€” Creates and returns an exact copy of the projector. a little clone, a little twin, we love a duplicate πŸ¦‹

πŸ‘€ SEE ALSO πŸ‘€

SbCylinderProjector, SbCylinderPlaneProjector, SbCylinderSectionProjector, SbCylinderSheetProjector, SbLineProjector, SbPlaneProjector, SbSpherePlaneProjector, SbSphereProjector, SbSphereSectionProjector, SbSphereSheetProjector

(the whole projector friend group, go say hi πŸ’œ)


and that's the whole page bestie!! 🫢 this was the SbProjector page, manual section (3IV) β€” if you ever need to find it again, that's the name and section it lives under. k bye, go project something gorgeous πŸ’–βœ¨πŸŒΈ