The SbSphereProjector class is the abstract base class for mapping to spherical surfaces.
More...
#include <Inventor/projectors/SbSphereProjector.h>
The SbSphereProjector class is the abstract base class for mapping to spherical surfaces.
The sphere projectors map 2D points to various surface types based on spherical shapes.
- See also
- SbCylinderProjector
◆ SbSphereProjector() [1/2]
SbSphereProjector::SbSphereProjector |
( |
const SbBool |
orienttoeye | ) |
|
|
protected |
Default constructor sets up a sphere at the origin with radius 1.
◆ SbSphereProjector() [2/2]
SbSphereProjector::SbSphereProjector |
( |
const SbSphere & |
s, |
|
|
const SbBool |
orienttoeye |
|
) |
| |
|
protected |
Constructor taking an explicit sphere projection definition.
◆ projectAndGetRotation()
Project the 2D point to a 3D coordinate on the spherical surface, and find the rotation from the last projection to this one.
- See also
- project(), getRotation()
◆ getRotation()
◆ setSphere()
void SbSphereProjector::setSphere |
( |
const SbSphere & |
sph | ) |
|
Set sphere to project onto.
◆ getSphere()
const SbSphere & SbSphereProjector::getSphere |
( |
void |
| ) |
const |
Returns projection sphere.
◆ setOrientToEye()
void SbSphereProjector::setOrientToEye |
( |
const SbBool |
orienttoeye | ) |
|
Sets whether or not the projection surface should be oriented towards the eye of the viewer. Default is TRUE
.
◆ isOrientToEye()
SbBool SbSphereProjector::isOrientToEye |
( |
void |
| ) |
const |
Returns the state of the sphere orientation flag.
◆ setFront()
void SbSphereProjector::setFront |
( |
const SbBool |
infront | ) |
|
Set whether to intersect with the outside of the sphere (infront equal to TRUE
), or the inside.
◆ isFront()
SbBool SbSphereProjector::isFront |
( |
void |
| ) |
const |
Returns value of the flag which decides whether to intersect with the outside or inside of the sphere.
◆ isPointInFront()
SbBool SbSphereProjector::isPointInFront |
( |
const SbVec3f & |
point | ) |
const |
Check if point is on the frontside or the backside of the cylinder.
◆ setWorkingSpace()
void SbSphereProjector::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.
◆ intersectSphereFront()
SbBool SbSphereProjector::intersectSphereFront |
( |
const SbLine & |
l, |
|
|
SbVec3f & |
result |
|
) |
| |
|
protected |
Intersect line with the SbSphereProjector::sphere and place the intersection point (if any) in result. Considers setFront() settings.
Returns TRUE
if line actually hits the sphere, FALSE
if it doesn't intersect with it.
◆ intersectFront
SbSphereProjector::intersectFront |
|
protected |
Flag which says whether or not we should map to the outside or inside of the sphere surface.
◆ sphere
SbSphereProjector::sphere |
|
protected |
◆ orientToEye
SbSphereProjector::orientToEye |
|
protected |
Which direction the spherical surface is oriented.
◆ needSetup
SbSphereProjector::needSetup |
|
protected |
◆ lastPoint
SbSphereProjector::lastPoint |
|
protected |
Stores the previously projected 3D point.
The documentation for this class was generated from the following files: