| 1 |
NAME SbProjector "SbProj" "" { base class for representing projectors } |
| 2 |
|
| 3 |
INCLUDE projectors/SbProjector.h |
| 4 |
|
| 5 |
DESC { \cSbProjector\. is the base class for all projector classes. |
| 6 |
Projector classes |
| 7 |
are used to convert from window space (usually based on the mouse location) |
| 8 |
into a 3D point. This is done by projecting the window coordinate as a |
| 9 |
3D vector onto a geometric function in 3-space, and computing the |
| 10 |
intersection point. Most projectors actually compute incremental |
| 11 |
changes and produce incremental rotations and translation as needed. |
| 12 |
Projectors are used to write 3D interactive manipulators and viewers. |
| 13 |
} |
| 14 |
|
| 15 |
METHOD "" virtual SbVec3f project(const SbVec2f &point) { |
| 16 |
Apply the projector using the given point, returning the |
| 17 |
point in three dimensions that it projects to. |
| 18 |
The point should be normalized (lie in the range [0.0,1.0]), with (0,0) at |
| 19 |
the lower-left. |
| 20 |
} |
| 21 |
|
| 22 |
METHOD "setViewVol" virtual void setViewVolume(const SbViewVolume &vol) {} |
| 23 |
METHOD "getViewVol" const SbViewVolume & getViewVolume() const { |
| 24 |
Set and get the view volume to use for the projection. |
| 25 |
This is typically supplied from |
| 26 |
\+\mSoCamera::getViewVolume()\.\.\-\mSoCamGetViewVol()\.\.. |
| 27 |
} |
| 28 |
|
| 29 |
METHOD "setWorkSpace" virtual void setWorkingSpace(const SbMatrix &space) {} |
| 30 |
METHOD "getWorkSpace" const SbMatrix & getWorkingSpace() const { |
| 31 |
Set and get the transform space to work in. This matrix should transform |
| 32 |
working space coordinates into world space. |
| 33 |
The default matrix is identity, meaning that the default working |
| 34 |
space is world space. |
| 35 |
} |
| 36 |
|
| 37 |
METHOD "" virtual SbProjector * copy() const { |
| 38 |
Creates and returns an exact copy of the projector. |
| 39 |
} |
| 40 |
|
| 41 |
ALSO { |
| 42 |
SbCylinderProjector, SbCylinderPlaneProjector, |
| 43 |
SbCylinderSectionProjector, SbCylinderSheetProjector, |
| 44 |
SbLineProjector, SbPlaneProjector, SbSpherePlaneProjector, |
| 45 |
SbSphereProjector, SbSphereSectionProjector, SbSphereSheetProjector |
| 46 |
} |
| 47 |
|
| 48 |
|
| 49 |
|