1SbSphereProjector(3IV)()                              SbSphereProjector(3IV)()
2
3
4

NAME

6       SbSphereProjector — sphere projector
7

INHERITS FROM

9       SbProjector > SbSphereProjector
10

SYNOPSIS

12       #include <Inventor/projectors/SbSphereProjector.h>
13
14          Methods from class SbSphereProjector:
15
16     SbVec3f             projectAndGetRotation(const  SbVec2f  &point, SbRota‐
17                              tion &rot)
18     virtual  SbRotation  getRotation(const  SbVec3f  &point1,  const  SbVec3f
19                              &point2)
20     void                setSphere(const SbSphere &sph)
21     const SbSphere &    getSphere() const
22     void                setOrientToEye(SbBool orientToEye)
23     SbBool              isOrientToEye() const
24     void                setFront(SbBool isFront)
25     SbBool              isFront() const
26     SbBool              isPointInFront(const SbVec3f &point) const
27
28          Methods from class SbProjector:
29
30     virtual SbVec3f        project(const SbVec2f &point)
31     virtual void           setViewVolume(const SbViewVolume &vol)
32     const SbViewVolume &   getViewVolume() const
33     virtual void           setWorkingSpace(const SbMatrix &space)
34     const SbMatrix &       getWorkingSpace() const
35     virtual SbProjector *  copy() const
36
37

DESCRIPTION

39       SbSphereProjector  is  an abstract base class for projectors that use a
40       sphere in their projection. Sphere projectors  are  typically  used  to
41       write interactive 3D manipulators and viewers.
42

METHODS

44     SbVec3f             projectAndGetRotation(const  SbVec2f  &point, SbRota‐
45                              tion &rot)
46          Apply the projector using the given point, returning  the  point  in
47          three  dimensions  that  it  projects to. This also returns in rot a
48          rotation on the surface of the sphere from the last projected  point
49          to  this one. The passed point should be normalized (i.e. lie in the
50          range [0.0,1.0]), with (0,0) at the lower-left.
51
52     virtual  SbRotation  getRotation(const  SbVec3f  &point1,  const  SbVec3f
53                              &point2)
54          Get  a rotation given two points on this sphere projector. The rota‐
55          tion will be on the surface of the sphere.
56
57     void                setSphere(const SbSphere &sph)
58     const SbSphere &    getSphere() const
59          Set and get the sphere on  which  to  project  points.  The  default
60          sphere has radius 1.0.
61
62     void                setOrientToEye(SbBool orientToEye)
63     SbBool              isOrientToEye() const
64          Set  and get whether the projector should always be oriented towards
65          the eye. Set to FALSE if the tolerance should be evaluated in  work‐
66          ing space.
67
68     void                setFront(SbBool isFront)
69     SbBool              isFront() const
70     SbBool              isPointInFront(const SbVec3f &point) const
71          Set  and  get whether the projector should intersect the half of the
72          sphere that faces the eye. Set to  FALSE  if  the  projector  should
73          intersect with the rear half.
74
75

SEE ALSO

77       SbCylinderProjector, SbCylinderPlaneProjector, SbCylinderSectionProjec‐
78       tor,   SbCylinderSheetProjector,   SbLineProjector,   SbPlaneProjector,
79       SbSpherePlaneProjector,  SbSphereSectionProjector, SbSphereSheetProjec‐
80       tor
81
82
83
84
85                                                      SbSphereProjector(3IV)()
Impressum