SbCylinderProjector(3)
π NAME π
ok so like β welcome to the SbCylinderProjector(3) page from the Library Functions Manual bestie π this is the class that's the abstract base class for mapping to cylindrical surfaces. like, the blueprint blueprint. the blueprint's blueprint. periodt β¨
π¦ SYNOPSIS π¦
#include <Inventor/projectors/SbCylinderProjector.h>
Inherits SbProjector.
Inherited by SbCylinderSectionProjector, and SbCylinderSheetProjector.
β¨ Public Member Functions β¨
virtual SbVec3f project (const SbVec2f &point)=0SbVec3f projectAndGetRotation (const SbVec2f &point, SbRotation &rot)virtual SbRotation getRotation (const SbVec3f &point1, const SbVec3f &point2)=0void setCylinder (const SbCylinder &cyl)const SbCylinder & getCylinder (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 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 πΈ
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) constfloat findVanishingDistance (void) constSbBool verifyProjection (const SbVec3f &projpt) const
π Protected Attributes π
SbBool intersectFrontSbCylinder cylinderSbBool orientToEyeSbBool needSetupSbVec3f lastPoint
π«Ά Protected Attributes inherited from SbProjector π«Ά
SbViewVolume viewVolSbMatrix worldToWorkingSbMatrix workingToWorld
π Detailed Description π
The SbCylinderProjector class is the abstract base class for mapping to cylindrical surfaces. she's the blueprint, not the final boss π
The cylinder projectors map 2D points to various surface types based on cylindrical shapes. that's literally the whole vibe check.
See also
SbSphereProjector
π§ Constructor & Destructor Documentation π§
SbCylinderProjector::SbCylinderProjector (const SbBool orienttoeye) [protected]
Default constructor, and it sets up a cylinder along the Y axis with height 1. iconic starting position fr fr β¨
SbCylinderProjector::SbCylinderProjector (const SbCylinder & cylinder, const SbBool orienttoeye) [protected]
Constructor taking an explicit cylinder projection definition. you bring your own cylinder, she brings the projection π
π Member Function Documentation π
virtual SbVec3f SbCylinderProjector::project (const SbVec2f & point) [pure virtual]
Project the 2D point from normalized viewport coordinates to a 3D point. The mapping will be done in accordance with the type of the projector. no cap, that's the whole job.
Implements SbProjector.
Implemented in SbCylinderPlaneProjector, SbCylinderSectionProjector, and SbCylinderSheetProjector.
SbVec3f SbCylinderProjector::projectAndGetRotation (const SbVec2f & point, SbRotation & rot)
Project the 2D point to a 3D coordinate on the cylindrical surface, and find the rotation from the last projection to this one. two birds, one glamorous stone π¦
See also
project(),getRotation()
virtual SbRotation SbCylinderProjector::getRotation (const SbVec3f & point1, const SbVec3f & point2) [pure virtual]
Returns rotation on the projection surface which re-orients point1 to point2. like a glow-up for points.
Implemented in SbCylinderPlaneProjector, SbCylinderSectionProjector, and SbCylinderSheetProjector.
void SbCylinderProjector::setCylinder (const SbCylinder & cylinderref)
Set cylinder to project onto. that's the one, bestie.
const SbCylinder & SbCylinderProjector::getCylinder (void ) const
Returns projection cylinder. she's right there π
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 for the surface, honestly.
SbBool SbCylinderProjector::isOrientToEye (void ) const
Returns the state of the cylinder orientation flag.
void SbCylinderProjector::setFront (const SbBool infront)
Set whether to intersect with the outside of the cylinder (isfront equal to TRUE), or the inside.
SbBool SbCylinderProjector::isFront (void ) const
Returns 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 point is on the frontside or the backside 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.
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. π either she hits or she doesn't.
π Member Data Documentation π
SbBool SbCylinderProjector::intersectFront [protected]
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 of 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. she's got a lil "recalculate me" sticky note on her forehead.
SbVec3f SbCylinderProjector::lastPoint [protected]
Stores the previously projected 3D point. the memory of the last serve, lowkey.
π Author π
Generated automatically by Doxygen for Coin from the source code.
and that's the whole page bestie, tysm for reading π«Ά
Coin β Version 3.1.3 β SbCylinderProjector(3) β slay, log off, go project something onto a cylinder π
β¨π
π¦ 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