| 1 |
NAME SbSphereProjector "SbSphProj" "" { sphere projector } |
| 2 |
|
| 3 |
INCLUDE projectors/SbSphereProjector.h |
| 4 |
|
| 5 |
DESC { \cSbSphereProjector\. |
| 6 |
is an abstract base class for projectors that use a sphere in |
| 7 |
their projection. |
| 8 |
Sphere projectors are typically used to write |
| 9 |
interactive 3D manipulators and viewers. |
| 10 |
} |
| 11 |
|
| 12 |
METHOD "projectGetRot" SbVec3f projectAndGetRotation(const SbVec2f &point, |
| 13 |
SbRotation &rot) { |
| 14 |
Apply the projector using the given point, returning the |
| 15 |
point in three dimensions that it projects to. |
| 16 |
This also returns in \vrot\. a rotation on the surface of the sphere |
| 17 |
from the last projected point to this one. |
| 18 |
The passed \vpoint\. should be normalized (i.e. lie in the range [0.0,1.0]), |
| 19 |
with (0,0) at the lower-left. |
| 20 |
} |
| 21 |
|
| 22 |
METHOD "getRot" virtual SbRotation getRotation(const SbVec3f &point1, |
| 23 |
const SbVec3f &point2) { |
| 24 |
Get a rotation given two points on this sphere projector. |
| 25 |
The rotation will be on the surface of the sphere. |
| 26 |
} |
| 27 |
|
| 28 |
METHOD "setSph" void setSphere(const SbSphere &sph) {} |
| 29 |
METHOD "getSph" const SbSphere & getSphere() const { |
| 30 |
Set and get the sphere on which to project points. |
| 31 |
The default sphere has radius 1.0. |
| 32 |
} |
| 33 |
|
| 34 |
METHOD "" void setOrientToEye(SbBool orientToEye) {} |
| 35 |
METHOD "" SbBool isOrientToEye() const { |
| 36 |
Set and get whether the projector should always be oriented towards the eye. |
| 37 |
Set to FALSE if the tolerance should be evaluated in working space. |
| 38 |
} |
| 39 |
|
| 40 |
METHOD "" void setFront(SbBool isFront) {} |
| 41 |
METHOD "" SbBool isFront() const {} |
| 42 |
METHOD "" SbBool isPointInFront(const SbVec3f &point) const { |
| 43 |
Set and get whether the projector should intersect the half of the |
| 44 |
sphere that faces the eye. |
| 45 |
Set to FALSE if the projector should intersect with the rear half. |
| 46 |
} |
| 47 |
|
| 48 |
ALSO { |
| 49 |
SbCylinderProjector, SbCylinderPlaneProjector, |
| 50 |
SbCylinderSectionProjector, |
| 51 |
SbCylinderSheetProjector, |
| 52 |
SbLineProjector, SbPlaneProjector, SbSpherePlaneProjector, |
| 53 |
SbSphereSectionProjector, SbSphereSheetProjector |
| 54 |
} |
| 55 |
|
| 56 |
|
| 57 |
|