#include <Inventor/projectors/SbSphereProjector.h>
Inheritance diagram for SbSphereProjector::
Public Methods | |
SbVec3f | projectAndGetRotation (const SbVec2f &point, SbRotation &rot) |
virtual SbRotation | getRotation (const SbVec3f &point1, const SbVec3f &point2)=0 |
void | setSphere (const SbSphere &sph) |
const SbSphere & | getSphere (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 Methods | |
SbSphereProjector (const SbBool orienttoeye) | |
SbSphereProjector (const SbSphere &s, const SbBool orienttoeye) | |
SbBool | intersectSphereFront (const SbLine &l, SbVec3f &result) |
Protected Attributes | |
SbBool | intersectFront |
SbSphere | sphere |
SbBool | orientToEye |
SbBool | needSetup |
SbVec3f | lastPoint |
The sphere projectors map 2D points to various surface types based on spherical shapes.
|
Default constructor sets up a sphere at the origin with radius 1. |
|
Constructor taking an explicit sphere projection definition. |
|
Project the 2D point to a 3D coordinate on the spherical surface, and find the rotation from the last projection to this one.
|
|
Returns rotation on the projection surface which re-orients point1 to point2. Reimplemented in SbSphereSheetProjector, SbSphereSectionProjector, and SbSpherePlaneProjector. |
|
Set sphere to project onto. |
|
Returns projection sphere. |
|
Sets whether or not the projection surface should be oriented towards the eye of the viewer. |
|
Returns the state of the sphere orientation flag. |
|
Set whether to intersect with the outside of the sphere (infront equal to |
|
Returns value of the flag which decides whether to intersect with the outside or inside of the sphere. |
|
Check if point is on the frontside or the backside of the cylinder. |
|
Overloaded from parent to set needSetup to Reimplemented from SbProjector. |
|
Intersect line with the SbSphereProjector::sphere and place the intersection point (if any) in result. Considers setFront() settings.
Returns |
|
Flag which says whether or not we should map to the outside or inside of the sphere surface. |
|
Projection sphere. |
|
Which direction the spherical surface is oriented. |
|
Set to |
|
Stores the previously projected 3D point. |