SbCylinderProjector - Online Linux Manual Page

Section : 3
Updated : Mon Jan 25 2021
Source : Version 2.5.0
Note : Coin

NAMESbCylinderProjector − The SbCylinderProjector class is the abstract base class for mapping to cylindrical surfaces​.

SYNOPSIS
#include <Inventor/projectors/SbCylinderProjector​.h> Inherits SbProjector​. Inherited by SbCylinderSectionProjector, and SbCylinderSheetProjector​.

Public Member Functionsvirtual 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)

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

Protected AttributesSbBool intersectFront
SbCylinder cylinder
SbBool orientToEye
SbBool needSetup
SbVec3f lastPoint

Detailed DescriptionThe SbCylinderProjector class is the abstract base class for mapping to cylindrical surfaces​. The cylinder projectors map 2D points to various surface types based on cylindrical shapes​. See also SbSphereProjector

Constructor & Destructor Documentation

SbCylinderProjector::SbCylinderProjector (const SbBool orienttoeye) [protected]Default constructor sets up a cylinder along the Y axis with height 1​.

SbCylinderProjector::SbCylinderProjector (const SbCylinder & cylinder, const SbBool orienttoeye) [protected]Constructor taking an explicit cylinder projection definition​.

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​. Implements SbProjector​. Implemented in SbCylinderSheetProjector, SbCylinderSectionProjector, and SbCylinderPlaneProjector​. Referenced by SoRotateCylindricalDragger::drag(), SoVRMLCylinderSensor::drag(), and projectAndGetRotation()​.

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​. See also project(), getRotation() References getRotation(), lastPoint, and project()​.

SbRotation SbCylinderProjector::getRotation (const SbVec3f & point1, const SbVec3f & point2) [pure virtual]Returns rotation on the projection surface which re-orients point1 to point2​. Implemented in SbCylinderSheetProjector, SbCylinderSectionProjector, and SbCylinderPlaneProjector​. Referenced by SoRotateCylindricalDragger::drag(), SoVRMLCylinderSensor::drag(), and projectAndGetRotation()​.

void SbCylinderProjector::setCylinder (const SbCylinder & cylinderref)Set cylinder to project onto​. References cylinder, and needSetup​. Referenced by SoRotateCylindricalDragger::dragStart(), and SoVRMLCylinderSensor::dragStart()​.

const SbCylinder & SbCylinderProjector::getCylinder (void) constReturns projection cylinder​. References cylinder​.

void SbCylinderProjector::setOrientToEye (const SbBool orienttoeye)Sets whether or not the projection surface should be oriented towards the eye of the viewer​. References needSetup, and orientToEye​.

SbBool SbCylinderProjector::isOrientToEye (void) constReturns the state of the cylinder orientation flag​. References orientToEye​.

void SbCylinderProjector::setFront (const SbBool infront)Set whether to intersect with the outside of the cylinder (isfront equal to TRUE), or the inside​. References intersectFront, and needSetup​. Referenced by SoRotateCylindricalDragger::dragStart()​.

SbBool SbCylinderProjector::isFront (void) constReturns value of the flag which decides whether to intersect with the outside or inside of the cylinder​. References intersectFront​. Referenced by intersectCylinderFront()​.

SbBool SbCylinderProjector::isPointInFront (const SbVec3f & point) constCheck if point is on the frontside or the backside of the cylinder​. References cylinder, SbVec3f::dot(), SbCylinder::getAxis(), SbLine::getClosestPoint(), SbViewVolume::getProjectionPoint(), SbViewVolume::getProjectionType(), SbProjector::getViewVolume(), SbMatrix::multDirMatrix(), SbMatrix::multVecMatrix(), SbViewVolume::PERSPECTIVE, SbProjector::worldToWorking, and SbViewVolume::zVector()​. Referenced by SoRotateCylindricalDragger::dragStart()​.

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​. References needSetup, and SbProjector::setWorkingSpace()​. Referenced by SoRotateCylindricalDragger::drag(), SoVRMLCylinderSensor::drag(), and SoRotateCylindricalDragger::dragStart()​.

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​. References cylinder, SbCylinder::intersect(), and isFront()​. Referenced by SbCylinderPlaneProjector::project(), SbCylinderSectionProjector::project(), and SbCylinderSheetProjector::project()​.

Member Data Documentation

SbCylinderProjector::intersectFront [protected]Flag which says whether or not we should map to the outside or inside of the cylinder surface​. Referenced by isFront(), setFront(), SbCylinderSheetProjector::setupPlane(), and SbCylinderSectionProjector::setupTolerance()​.

SbCylinderProjector::cylinder [protected]Specification of the projection cylinder​. Referenced by getCylinder(), SbCylinderPlaneProjector::getRotation(), SbCylinderSectionProjector::getRotation(), SbCylinderSheetProjector::getRotation(), intersectCylinderFront(), isPointInFront(), SbCylinderSectionProjector::project(), setCylinder(), SbCylinderSheetProjector::setupPlane(), and SbCylinderSectionProjector::setupTolerance()​.

SbCylinderProjector::orientToEye [protected]Which direction the cylindrical surface is oriented​. Referenced by isOrientToEye(), setOrientToEye(), SbCylinderSheetProjector::setupPlane(), and SbCylinderSectionProjector::setupTolerance()​.

SbCylinderProjector::needSetup [protected]Set to TRUE whenever the projection surface needs to be recalculated according to the setting of the SbCylinderProjector::orientToEye flag​. Referenced by SbCylinderSectionProjector::isWithinTolerance(), SbCylinderPlaneProjector::project(), SbCylinderSectionProjector::project(), SbCylinderSheetProjector::project(), SbCylinderSectionProjector::SbCylinderSectionProjector(), setCylinder(), setFront(), setOrientToEye(), SbCylinderSectionProjector::setTolerance(), SbCylinderSheetProjector::setupPlane(), SbCylinderSectionProjector::setupTolerance(), and setWorkingSpace()​.

SbCylinderProjector::lastPoint [protected]Stores the previously projected 3D point​. Referenced by SbCylinderPlaneProjector::project(), SbCylinderSectionProjector::project(), SbCylinderSheetProjector::project(), and projectAndGetRotation()​.

AuthorGenerated automatically by Doxygen for Coin from the source code​.
0
Johanes Gumabo
Data Size   :   36,380 byte
man-SbCylinderProjector.3coin2Build   :   2025-03-22, 13:26   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   24 / 2,084,178
Visitor ID   :     :  
Visitor IP   :   216.73.216.62   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   37.751000 x -97.822000   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :     :  
Provider Province   :   ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 25.03.22
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36


Very long time ago, I have the best tutor, Wenzel Svojanovsky. If someone knows the email address of Wenzel Svojanovsky, please send an email to johanesgumabo@gmail.com.
Help me, linux0001.com will expire on July 16, 2025. I have no money to renew it. View detail

If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.