| 1 |
NAME SbSphereSheetProjector "SbSphSheetProj" "" { sphere-sheet projector } |
| 2 |
|
| 3 |
INCLUDE projectors/SbSphereSheetProjector.h |
| 4 |
|
| 5 |
DESC { \cSbSphereSheetProjector\. |
| 6 |
projects a window space point (usually based on the mouse location) |
| 7 |
onto the surface of a sphere with a hyperbolic sheet draped over it. |
| 8 |
This allows smooth transitions onto and off of the sphere. |
| 9 |
Two projected points can produce a rotation |
| 10 |
about the sphere's center. |
| 11 |
When the mouse position projects on to the sheet, the |
| 12 |
rotations will be as if the sheet is being dragged, |
| 13 |
causing the sphere to roll beneath it. |
| 14 |
\p |
| 15 |
Incremental changes (delta rotation) can be computed during |
| 16 |
interactive sessions. Sphere projectors are typically used to write |
| 17 |
interactive 3D manipulators and viewers. |
| 18 |
} |
| 19 |
|
| 20 |
METHOD "" SbSphereSheetProjector(SbBool orientToEye = TRUE) {} |
| 21 |
METHOD "createSph" SbSphereSheetProjector( const SbSphere &sph, |
| 22 |
SbBool orientToEye = TRUE) { |
| 23 |
Constructors. The first uses a default sphere centered at the origin |
| 24 |
with radius 1.0; the sphere is supplied in the second. |
| 25 |
The \vorientToEye\. |
| 26 |
parameter determines whether the sheet is perpendicular to the |
| 27 |
eye, or perpendicular to the sphere's Z axis. Setting that parameter to TRUE |
| 28 |
(the default) specifies that the sheet be perpendicular to the |
| 29 |
eye, which is most often the desired behavior. |
| 30 |
\p |
| 31 |
The default view volume is undefined, and the working space is identity. |
| 32 |
} |
| 33 |
|
| 34 |
METHOD "" ~SbSphereSheetProjector() { Destructor. } |
| 35 |
|
| 36 |
ALSO { |
| 37 |
SbCylinderProjector, |
| 38 |
SbCylinderPlaneProjector, |
| 39 |
SbCylinderSectionProjector, |
| 40 |
SbCylinderSheetProjector, |
| 41 |
SbLineProjector, |
| 42 |
SbPlaneProjector, |
| 43 |
SbSpherePlaneProjector |
| 44 |
} |
| 45 |
|
| 46 |
|
| 47 |
|