SbCylinderProjector(3)
π 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
- 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