SbSphereProjector(3)
π SbSphereProjector(3) π
okay bestie, welcome to the Library Functions Manual β¨ this is the page for SbSphereProjector(3), and no cap, it's kind of a big deal β it's the abstract base class energy of the whole spherical projector situation. grab a strawberry drink π and let's get into it.
β¨ NAME β¨
SbSphereProjector β the SbSphereProjector class is the abstract base class for mapping to spherical surfaces. π«
π¦ SYNOPSIS π¦
#include <Inventor/projectors/SbSphereProjector.h>
Inherits SbProjector.
Inherited by SbSphereSectionProjector, and SbSphereSheetProjector. (so many iconic daughters π
)
π 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.
The sphere projectors map 2D points to various surface types based on spherical shapes.
See also SbCylinderProjector β yeah, its cousin, the cylinder one, go say hi π
π Constructor & Destructor Documentation π
SbSphereProjector::SbSphereProjector (const SbBool orienttoeye) [protected]
Default constructor sets up a sphere at the origin with radius 1. β tiny lil unit sphere, she's starting fresh.
SbSphereProjector::SbSphereProjector (const SbSphere & s, const SbBool orienttoeye) [protected]
Constructor taking an explicit sphere projection definition. you bring your own sphere, bestie π«Ά
π 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. the glow-up from "old point" to "new point", measured in rotation β¨
See also project(), getRotation()
virtual SbRotation SbSphereProjector::getRotation (const SbVec3f & point1, const SbVec3f & point2) [pure virtual]
Returns rotation on the projection surface which re-orients point1 to point2. it's giving "spin her around, she's a different girl now" π«
Implemented in SbSpherePlaneProjector, SbSphereSectionProjector, and SbSphereSheetProjector.
void SbSphereProjector::setSphere (const SbSphere & sph)
Set sphere to project onto. π―
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. ποΈ main character energy: always facing the camera.
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.
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 frontside or the backside of the cylinder. (yes bestie, it says cylinder. we are simply quoting the source, no notes π)
void SbSphereProjector::setWorkingSpace (const SbMatrix & space) [virtual]
Sets the matrix used for converting from the projector's coordinate system to the world coordinate system. π coordinate passport, get her one.
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. π₯ she either ate or she didn't.
π 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. π¨ girl needs a refresh, respect it.
SbVec3f SbSphereProjector::lastPoint [protected]
Stores the previously projected 3D point. π the receipts, kept.
π Author π
Generated automatically by Doxygen for Coin from the source code. (not a human, not a vibe curator β just Doxygen doing her thing π€)
okay that's the whole page, you're officially caught up bestie π«Ά go project something gorgeous πβ¨
this was brought to you by Coin, Version 3.1.3, and this iconic little page is SbSphereProjector(3) β stay spherical, stay slay ππ
π¦ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms