| 1 |
NAME SbPlaneProjector "SbPlnProj" "" { plane projector } |
| 2 |
|
| 3 |
INCLUDE projectors/SbPlaneProjector.h |
| 4 |
|
| 5 |
DESC { \cSbPlaneProjector\. |
| 6 |
projects the mouse onto a plane. |
| 7 |
This is typically used to write |
| 8 |
interactive 3D manipulators and viewers. |
| 9 |
} |
| 10 |
|
| 11 |
METHOD "" SbPlaneProjector(SbBool orient = FALSE) { |
| 12 |
Constructor. The default plane passes through the origin and is |
| 13 |
oriented perpendicular to the Z axis. |
| 14 |
} |
| 15 |
|
| 16 |
METHOD "createPln" SbPlaneProjector(const SbPlane &plane, |
| 17 |
SbBool orient = FALSE) { |
| 18 |
Constructor which is passed a plane. If orient to eye is TRUE, |
| 19 |
the plane will be reoriented to the eye. |
| 20 |
} |
| 21 |
|
| 22 |
METHOD "" ~SbPlaneProjector() { Destructor. } |
| 23 |
|
| 24 |
METHOD "setPln" void setPlane(const SbPlane &plane) {} |
| 25 |
METHOD "getPln" const SbPlane & getPlane() const { |
| 26 |
Set and get the plane to use. |
| 27 |
} |
| 28 |
|
| 29 |
METHOD "" void setOrientToEye(SbBool orientToEye) {} |
| 30 |
METHOD "" SbBool isOrientToEye() const { |
| 31 |
Set and get whether the projector should be oriented towards the eye. |
| 32 |
If \vorientToEye\. is set to TRUE, the given plane's direction |
| 33 |
is ignored, and the plane will be oriented to the eye. |
| 34 |
It will pass through the same point from the origin defined |
| 35 |
by the original dir * dist. |
| 36 |
Set to FALSE if the plane's direction should remain in working space. |
| 37 |
} |
| 38 |
|
| 39 |
METHOD "getVecMouse2" virtual SbVec3f getVector(const SbVec2f &mousePosition1, |
| 40 |
const SbVec2f &mousePosition2) { |
| 41 |
Get a vector on this plane given two normalized mouse positions. |
| 42 |
} |
| 43 |
|
| 44 |
METHOD "getVecMouse1" virtual SbVec3f getVector(const SbVec2f &mousePosition) { |
| 45 |
Get a vector given the current mouse point. |
| 46 |
Uses the last point on this projector from the previous |
| 47 |
call to |
| 48 |
\+\mgetVector()\. or \msetStartPostion()\..\. |
| 49 |
\-\mSbPlnProjGetVecMouse1()\., \mSbPlnProjSetStartPosMouse()\., |
| 50 |
or \mSbPlnProjSetStartPosPt()\..\. |
| 51 |
Do not use this |
| 52 |
if the working space transform is changing since |
| 53 |
the new point will be in a different space than |
| 54 |
the old one. |
| 55 |
} |
| 56 |
|
| 57 |
METHOD "setStartPosMouse" void setStartPosition(const SbVec2f &mousePosition) { |
| 58 |
Set the initial mouse position. |
| 59 |
} |
| 60 |
|
| 61 |
METHOD "setStartPosPt" void setStartPosition(const SbVec3f &point) { |
| 62 |
Set the initial position from a point on the projector. |
| 63 |
} |
| 64 |
|
| 65 |
ALSO { |
| 66 |
SbCylinderProjector, |
| 67 |
SbCylinderPlaneProjector, |
| 68 |
SbCylinderSectionProjector, |
| 69 |
SbCylinderSheetProjector, |
| 70 |
SbLineProjector, SbSpherePlaneProjector, |
| 71 |
SbSphereProjector, SbSphereSectionProjector, SbSphereSheetProjector |
| 72 |
} |
| 73 |
|
| 74 |
|
| 75 |
|