Provided by: libcoin80-doc_3.1.4~abc9f50-4ubuntu2_all

**NAME**

SbSphereSectionProjector - TheSbSphereSectionProjectorprojects 2D points to a sliced sphere. The projection sphere for this class is sliced by a clipping plane. Projections will be mapped to the remaining sphere part.

**SYNOPSIS**

#include <Inventor/projectors/SbSphereSectionProjector.h> InheritsSbSphereProjector. Inherited bySbSpherePlaneProjector.PublicMemberFunctionsSbSphereSectionProjector(const float edgetol=0.9f, const SbBool orienttoeye=TRUE)SbSphereSectionProjector(constSbSphere&sph, const float edgetol=0.9f, const SbBool orienttoeye=TRUE) virtualSbProjector*copy(void) const virtualSbVec3fproject(constSbVec2f&point) virtualSbRotationgetRotation(constSbVec3f&point1, constSbVec3f&point2) voidsetTolerance(const float edgetol) floatgetTolerance(void) const voidsetRadialFactor(const float rad=0.0f) floatgetRadialFactor(void) const SbBoolisWithinTolerance(constSbVec3f&point)ProtectedMemberFunctionsvirtual voidsetupTolerance(void)ProtectedAttributesfloattolerancefloattolDistfloatradialFactorSbVec3fplanePointSbVec3fplaneDirfloatplaneDistSbPlanetolPlane

**Detailed** **Description**

TheSbSphereSectionProjectorprojects 2D points to a sliced sphere. The projection sphere for this class is sliced by a clipping plane. Projections will be mapped to the remaining sphere part.SeeAlso:SbCylinderSectionProjector

**Constructor** **&** **Destructor** **Documentation**

SbSphereSectionProjector::SbSphereSectionProjector(constfloatedgetol=0.9f,constSbBoolorienttoeye=TRUE)Default constructor. SeeSbSphereProjector::SbSphereProjector(). Theedgetolvalue should be within <0, 1], and specifies how much of the sphere is used as a projection surface. 1.0 means the full front half is used.SbSphereSectionProjector::SbSphereSectionProjector(constSbSphere&sph,constfloatedgetol=0.9f,constSbBoolorienttoeye=TRUE)Constructor with explicit setting of the projection sphere.

**Member** **Function** **Documentation**

SbProjector*SbSphereSectionProjector::copy(void)const[virtual]Construct and return a copy of this projector. The caller is responsible for destructing the new instance.NotethatiftheCoinlibraryhasbeenbuiltasaDLLunderMicrosoftWindowsandyouusethismethodfromapplicationcode,youmustmakesurethatboththeCoinDLLandtheapplicationexecutableisusingthesameinstanceofaCRun-Time(CRT)library.Otherwise,youwillgetmemoryheapcorruptionupondeallocatingthereturnedinstances,eventuallyleadingtomysteriouscrashes.ImplementsSbProjector. Reimplemented inSbSpherePlaneProjector.SbVec3fSbSphereSectionProjector::project(constSbVec2f&point)[virtual]Project the 2Dpointfrom normalized viewport coordinates to a 3D point. The mapping will be done in accordance with the type of the projector. ImplementsSbProjector. Reimplemented inSbSpherePlaneProjector.SbRotationSbSphereSectionProjector::getRotation(constSbVec3f&point1,constSbVec3f&point2)[virtual]Returns rotation on the projection surface which re-orientspoint1topoint2. ImplementsSbSphereProjector. Reimplemented inSbSpherePlaneProjector.voidSbSphereSectionProjector::setTolerance(constfloatedgetol)Theedgetolvalue decides how much of the surface of the sphere is used for projection. 1.0 means the full sphere half is used.floatSbSphereSectionProjector::getTolerance(void)constReturns edge tolerance for the sphere half.voidSbSphereSectionProjector::setRadialFactor(constfloatrad=0.0f)Set up the controlling value for how the rotation calculation will be done 'outside' the sphere. A radialFactor equal to 0.0 will make the rotations be done like if they were done by dragging the sphere, while a value of 1.0 will make the rotation be around the axis from the viewpoint towards the sphere.floatSbSphereSectionProjector::getRadialFactor(void)constReturns value of radialFactor.SeeAlso:setRadialFactor()SbBoolSbSphereSectionProjector::isWithinTolerance(constSbVec3f&point)Check ifpointis within the part of the sphere used for projections.voidSbSphereSectionProjector::setupTolerance(void)[protected],[virtual]Recalculate the internal projection surface settings. Needs to be done if any of the parameters influencing the projection surface have been changed from subclasses without using the access methods.

**Member** **Data** **Documentation**

SbSphereSectionProjector::tolerance[protected]Tolerance value, deciding how much of the half-sphere to do projections against.SbSphereSectionProjector::tolDist[protected]Tolerance value multiplied with the sphere radius.SbSphereSectionProjector::radialFactor[protected]The radialfactor value decides how to calculate rotations outside of the sphere.SeeAlso:setRadialFactor()SbSphereSectionProjector::planePoint[protected]A point in the plane where the center of the sphere is.SbSphereSectionProjector::planeDir[protected]Direction of cutting plane.SbSphereSectionProjector::planeDist[protected]Distance from plane to sphere center.SbSphereSectionProjector::tolPlane[protected]Defines the plane cutting the sphere into a projection part.

**Author**

Generated automatically by Doxygen for Coin from the source code.