1SbProjector(3IV)() SbProjector(3IV)()
2
3
4
6 SbProjector — base class for representing projectors
7
9 SbProjector
10
12 #include <Inventor/projectors/SbProjector.h>
13
14 Methods from class SbProjector:
15
16 virtual SbVec3f project(const SbVec2f &point)
17 virtual void setViewVolume(const SbViewVolume &vol)
18 const SbViewVolume & getViewVolume() const
19 virtual void setWorkingSpace(const SbMatrix &space)
20 const SbMatrix & getWorkingSpace() const
21 virtual SbProjector * copy() const
22
23
25 SbProjector is the base class for all projector classes. Projector
26 classes are used to convert from window space (usually based on the
27 mouse location) into a 3D point. This is done by projecting the window
28 coordinate as a 3D vector onto a geometric function in 3-space, and
29 computing the intersection point. Most projectors actually compute
30 incremental changes and produce incremental rotations and translation
31 as needed. Projectors are used to write 3D interactive manipulators
32 and viewers.
33
35 virtual SbVec3f project(const SbVec2f &point)
36 Apply the projector using the given point, returning the point in
37 three dimensions that it projects to. The point should be normalized
38 (lie in the range [0.0,1.0]), with (0,0) at the lower-left.
39
40 virtual void setViewVolume(const SbViewVolume &vol)
41 const SbViewVolume & getViewVolume() const
42 Set and get the view volume to use for the projection. This is typi‐
43 cally supplied from SoCamera::getViewVolume().
44
45 virtual void setWorkingSpace(const SbMatrix &space)
46 const SbMatrix & getWorkingSpace() const
47 Set and get the transform space to work in. This matrix should
48 transform working space coordinates into world space. The default
49 matrix is identity, meaning that the default working space is world
50 space.
51
52 virtual SbProjector * copy() const
53 Creates and returns an exact copy of the projector.
54
55
57 SbCylinderProjector, SbCylinderPlaneProjector, SbCylinderSectionProjec‐
58 tor, SbCylinderSheetProjector, SbLineProjector, SbPlaneProjector,
59 SbSpherePlaneProjector, SbSphereProjector, SbSphereSectionProjector,
60 SbSphereSheetProjector
61
62
63
64
65 SbProjector(3IV)()