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