SbSphereProjector(3)
๐ SbSphereProjector(3) ๐
okay bestie, sit DOWN because we're doing a Coin manual page and it's literally the blueprint for mapping 2D vibes onto spherical surfaces. this is <pink>SbSphereProjector</pink> from the Coin library (that's the manual name, iykyk) and she is an abstract base class โ main character energy, does not do the work herself, just sets the whole aesthetic for her subclasses. periodt. โจ
๐ธ NAME ๐ธ
SbSphereProjector - the abstract base class for mapping to spherical surfaces. no cap.
๐ SYNOPSIS ๐
#include <Inheritor/projectors/SbSphereProjector.h>
wait, correction, bestie, it's literally this:
#include <Inventor/projectors/SbSphereProjector.h>
Inherits SbProjector.
Inherited by SbSphereSectionProjector, and SbSphereSheetProjector. she has daughters, we love a legacy. ๐
โจ Public Member Functions โจ
SbVec3f projectAndGetRotation (const SbVec2f &point, SbRotation &rot)virtual SbRotation getRotation (const SbVec3f &point1, const SbVec3f &point2)=0void setSphere (const SbSphere &sph)const SbSphere & getSphere (void) constvoid setOrientToEye (const SbBool orienttoeye)SbBool isOrientToEye (void) constvoid setFront (const SbBool infront)SbBool isFront (void) constSbBool isPointInFront (const SbVec3f &point) constvirtual void setWorkingSpace (const SbMatrix &space)
๐ Public Member Functions inherited from SbProjector ๐
virtual SbVec3f project (const SbVec2f &point)=0virtual void setViewVolume (const SbViewVolume &vol)const SbViewVolume & getViewVolume (void) constconst SbMatrix & getWorkingSpace (void) constvirtual SbProjector * copy (void) const =0virtual SbBool tryProject (const SbVec2f &point, const float epsilon, SbVec3f &result)
๐ฆ Protected Member Functions ๐ฆ
SbSphereProjector (const SbBool orienttoeye)SbSphereProjector (const SbSphere &s, const SbBool orienttoeye)SbBool intersectSphereFront (const SbLine &l, SbVec3f &result)
๐ Protected Member Functions inherited from SbProjector ๐
SbProjector (void)virtual ~SbProjector ()SbLine getWorkingLine (const SbVec2f &point) constfloat findVanishingDistance (void) constSbBool verifyProjection (const SbVec3f &projpt) const
โญ Protected Attributes โญ
SbBool intersectFrontSbSphere sphereSbBool orientToEyeSbBool needSetupSbVec3f lastPoint
๐ Protected Attributes inherited from SbProjector ๐
SbViewVolume viewVolSbMatrix worldToWorkingSbMatrix workingToWorld
๐ Detailed Description ๐
The SbSphereProjector class is the abstract base class for mapping to spherical surfaces. she's the mother of all sphere projectors, fr fr.
The sphere projectors map 2D points to various surface types based on spherical shapes. it's giving math but make it fashion. ๐ธ
See also
SbCylinderProjector
๐ง Constructor & Destructor Documentation ๐ง
SbSphereProjector::SbSphereProjector (const SbBool orienttoeye) [protected]
Default constructor sets up a sphere at the origin with radius 1. tiny queen, radius one, iconic.
SbSphereProjector::SbSphereProjector (const SbSphere & s, const SbBool orienttoeye) [protected]
Constructor taking an explicit sphere projection definition. you brought your own sphere, we respect that. ๐ซถ
๐ฅ Member Function Documentation ๐ฅ
SbVec3f SbSphereProjector::projectAndGetRotation (const SbVec2f & point, SbRotation & rot)
Project the 2D point to a 3D coordinate on the spherical surface, and find the rotation from the last projection to this one. so like, glow-up tracking: where were we, where are we now, what rotation got us here. โจ
See also
project(),getRotation()
virtual SbRotation SbSphereProjector::getRotation (const SbVec3f & point1, const SbVec3f & point2) [pure virtual]
Returns rotation on the projection surface which reorients point1 to point2. she's pure virtual bestie, she does NOT have a body, that's her subclasses' job.
Implemented in SbSpherePlaneProjector, SbSphereSectionProjector, and SbSphereSheetProjector.
void SbSphereProjector::setSphere (const SbSphere & sph)
Set sphere to project onto. pick your sphere, choose your destiny. ๐ฎ
const SbSphere & SbSphereProjector::getSphere (void ) const
Returns projection sphere.
void SbSphereProjector::setOrientToEye (const SbBool orienttoeye)
Sets whether or not the projection surface should be oriented towards the eye of the viewer. Default is TRUE. she looks at you by default, obsessed with eye contact.
SbBool SbSphereProjector::isOrientToEye (void ) const
Returns the state of the sphere orientation flag.
void SbSphereProjector::setFront (const SbBool infront)
Set whether to intersect with the outside of the sphere (infront equal to TRUE), or the inside. outside girlie vs inside girlie, your call.
SbBool SbSphereProjector::isFront (void ) const
Returns value of the flag which decides whether to intersect with the outside or inside of the sphere.
SbBool SbSphereProjector::isPointInFront (const SbVec3f & point) const
Check if point is on the front side or the back side of the cylinder. yes bestie, the docs literally say cylinder here, we do not question the lore, we report the lore. ๐
void SbSphereProjector::setWorkingSpace (const SbMatrix & space) [virtual]
Sets the matrix used for converting from the projector's coordinate system to the world coordinate system. the translator between her little world and the big world.
Reimplemented from SbProjector.
SbBool SbSphereProjector::intersectSphereFront (const SbLine & l, SbVec3f & result) [protected]
Intersect line with the SbSphereProjector::sphere and place the intersection point (if any) in result. Considers setFront() settings.
Returns TRUE if line actually hits the sphere, FALSE if it doesn't intersect with it. yes or no, no maybes. ๐
๐ Member Data Documentation ๐
SbBool SbSphereProjector::intersectFront [protected]
Flag which says whether or not we should map to the outside or inside of the sphere surface.
SbSphere SbSphereProjector::sphere [protected]
Projection sphere.
SbBool SbSphereProjector::orientToEye [protected]
Which direction the spherical surface is oriented.
SbBool SbSphereProjector::needSetup [protected]
Set to TRUE whenever the projection surface needs to be recalculated according to the setting of the SbSphereProjector::orientToEye flag.
SbVec3f SbSphereProjector::lastPoint [protected]
Stores the previously projected 3D point. the receipts, always kept. ๐งพ
๐ Author ๐
Generated automatically by Doxygen for Coin from the source code. not a human, a robot, and honestly she ate. ๐ค
okay that's the whole page bestie, and since the last line is the footer we're folding it in here: this is Version 4.0.10, dated Thu Jun 25 2026 00:00:00, and the page is SbSphereProjector(3). thanks for coming to my ted talk, go project something spherical, slay, bye ๐๐ฆโจ
๐ฆ where this page comes from
- fedora 43: Coin4-devel 4.0.10-1.fc43 ยท BSD-3-Clause AND GPL-3.0-or-later
- fedora 43: Coin4-devel 4.0.10-1.fc43 ยท BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 ยท BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 ยท BSD-3-Clause AND GPL-3.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms