SbCylinderProjector(3)

πŸ“¦
version 4.0.10 Β· 4 versions
, in fedora 43, fedora 44

πŸŽ€ SbCylinderProjector(3) πŸŽ€

hi bestie!! welcome to the Coin man page for SbCylinderProjector β€” this is section 3 of the manual, and yes it's giving abstract base class energy. let's get into it πŸ¦‹


πŸ’– NAME πŸ’–

SbCylinderProjector β€” the abstract base class for mapping to cylindrical surfaces. that's it, that's the whole job description ✨


🌈 SYNOPSIS 🌈

#include <Inventor/projectors/SbCylinderProjector.h>

Inherits SbProjector.

Inherited by SbCylinderSectionProjector, and SbCylinderSheetProjector.

⭐ Public Member Functions

virtual SbVec3f project (const SbVec2f &point)=0
SbVec3f projectAndGetRotation (const SbVec2f &point, SbRotation &rot)
virtual SbRotation getRotation (const SbVec3f &point1, const SbVec3f &point2)=0
void setCylinder (const SbCylinder &cyl)
const SbCylinder & getCylinder (void) const
void setOrientToEye (const SbBool orienttoeye)
SbBool isOrientToEye (void) const
void setFront (const SbBool infront)
SbBool isFront (void) const
SbBool isPointInFront (const SbVec3f &point) const
virtual void setWorkingSpace (const SbMatrix &space)

πŸ‘‘ Public Member Functions inherited from SbProjector

virtual void setViewVolume (const SbViewVolume &vol)
const SbViewVolume & getViewVolume (void) const
const SbMatrix & getWorkingSpace (void) const
virtual SbProjector * copy (void) const =0
virtual SbBool tryProject (const SbVec2f &point, const float epsilon,
    SbVec3f &result)

🌸 Protected Member Functions

SbCylinderProjector (const SbBool orienttoeye)
SbCylinderProjector (const SbCylinder &cylinder, const SbBool
    orienttoeye)
SbBool intersectCylinderFront (const SbLine &line, SbVec3f &result)

🧚 Protected Member Functions inherited from SbProjector

SbProjector (void)
virtual ~SbProjector ()
SbLine getWorkingLine (const SbVec2f &point) const
float findVanishingDistance (void) const
SbBool verifyProjection (const SbVec3f &projpt) const

πŸ“ Protected Attributes

SbBool intersectFront
SbCylinder cylinder
SbBool orientToEye
SbBool needSetup
SbVec3f lastPoint

πŸ’œ Protected Attributes inherited from SbProjector

SbViewVolume viewVol
SbMatrix worldToWorking
SbMatrix workingToWorld

πŸ¦‹ DETAILED DESCRIPTION πŸ¦‹

so the SbCylinderProjector class is the abstract base class for mapping to cylindrical surfaces. periodt.

the cylinder projectors map 2D points to various surface types based on cylindrical shapes. iconic behaviour tbh πŸ’…

See also

  • SbSphereProjector

✨ CONSTRUCTOR & DESTRUCTOR DOCUMENTATION ✨

SbCylinderProjector::SbCylinderProjector (const SbBool orienttoeye)

[protected]

the default constructor, and it sets up a cylinder along the Y-axis with height 1. cute, standard, love that for us πŸŽ€

SbCylinderProjector::SbCylinderProjector (const SbCylinder & cylinder, const SbBool orienttoeye)

[protected]

a constructor that takes an explicit cylinder projection definition β€” you bring your own cylinder, bestie 🫢


πŸ’« MEMBER FUNCTION DOCUMENTATION πŸ’«

virtual SbVec3f SbCylinderProjector::project (const SbVec2f & point)

[pure virtual]

projects the 2D point from normalized viewport coordinates to a 3D point. the mapping gets done in accordance with the type of the projector β€” so like, it depends on the vibe of the projector you picked ✨

Implements SbProjector.

Implemented in SbCylinderPlaneProjector, SbCylinderSectionProjector, and SbCylinderSheetProjector.

SbVec3f SbCylinderProjector::projectAndGetRotation (const SbVec2f & point, SbRotation & rot)

projects the 2D point to a 3D coordinate on the cylindrical surface, and finds the rotation from the last projection to this one. two birds, one function call, slay πŸ¦‹

See also

  • project(), getRotation()

virtual SbRotation SbCylinderProjector::getRotation (const SbVec3f & point1, const SbVec3f & point2)

[pure virtual]

returns the rotation on the projection surface which reorients point1 to point2. glow-up for points, fr fr πŸ’…

Implemented in SbCylinderPlaneProjector, SbCylinderSectionProjector, and SbCylinderSheetProjector.

void SbCylinderProjector::setCylinder (const SbCylinder & cylinderref)

set the cylinder to project onto. your canvas, your rules 🎨

const SbCylinder & SbCylinderProjector::getCylinder (void ) const

returns the projection cylinder. no cap πŸ“¦

void SbCylinderProjector::setOrientToEye (const SbBool orienttoeye)

sets whether or not the projection surface should be oriented towards the eye of the viewer. main character energy only πŸ‘€πŸ‘‘

SbBool SbCylinderProjector::isOrientToEye (void ) const

returns the state of the cylinder orientation flag. just checking in on it πŸ’–

void SbCylinderProjector::setFront (const SbBool infront)

set whether to intersect with the outside of the cylinder (isfront equal to TRUE), or the inside. pick a side bestie, you can't do both 😭

SbBool SbCylinderProjector::isFront (void ) const

returns the value of the flag which decides whether to intersect with the outside or inside of the cylinder.

SbBool SbCylinderProjector::isPointInFront (const SbVec3f & point) const

check if the point is on the front side or the back side of the cylinder πŸ”

void SbCylinderProjector::setWorkingSpace (const SbMatrix & space)

[virtual]

sets the matrix used for converting from the projector's coordinate system to the world coordinate system. very much the passport between two universes 🌍✨

Reimplemented from SbProjector.

SbBool SbCylinderProjector::intersectCylinderFront (const SbLine & line, SbVec3f & result)

[protected]

intersect line with the SbCylinderProjector::cylinder and place the intersection point (if any) in result. considers setFront() settings.

returns TRUE if line actually hits the cylinder, FALSE if it doesn't intersect with it. it's giving yes-or-no, no in-between πŸ’€


πŸŽ€ MEMBER DATA DOCUMENTATION πŸŽ€

SbBool SbCylinderProjector::intersectFront

[protected]

a flag which says whether or not we should map to the outside or inside of the cylinder surface.

SbCylinder SbCylinderProjector::cylinder

[protected]

specification of the projection cylinder. the blueprint πŸ“

SbBool SbCylinderProjector::orientToEye

[protected]

which direction the cylindrical surface is oriented 🧭

SbBool SbCylinderProjector::needSetup

[protected]

set to TRUE whenever the projection surface needs to be recalculated according to the setting of the SbCylinderProjector::orientToEye flag. it's basically a lil "bestie we need to talk" notification πŸ””

SbVec3f SbCylinderProjector::lastPoint

[protected]

stores the previously projected 3D point. the receipts from last time 🧾


🌟 AUTHOR 🌟

generated automatically by Doxygen for Coin from the source code. not me getting auto-generated 😭✨


okay that's the whole page bestie!! this was Version 4.0.10, dated Thu Jun 25 2026 00:00:00, and it's the SbCylinderProjector(3) manual page β€” you ate that, go project something onto a cylinder πŸ’…πŸ¦‹πŸ’–

πŸ“¦ where this page comes from