Debian Codegraph @

doc/man/man3/ivm/projectors/SbSpherePlaneProjector.ivm

raw
1 NAME SbSpherePlaneProjector "SbSphPlnProj" "" { sphere-plane projector }
2
3 INCLUDE projectors/SbSpherePlaneProjector.h
4
5 DESC { \cSbSpherePlaneProjector\.
6 projects a window space point (usually based on the mouse location)
7 onto a surface defined by a sphere and plane cutting through the sphere.
8 Two projected points can produce a rotation
9 about the sphere's center.
10 When the mouse position projects onto the plane, the
11 rotations will be as if the plane is being dragged,
12 causing the sphere to roll beneath it.
13 \p
14 Incremental changes (delta rotation) can be computed during
15 interactive sessions. Sphere projectors are typically used to write
16 interactive 3D manipulators and viewers.
17 }
18
19 METHOD "" SbSpherePlaneProjector(float edgeTol = .9, SbBool orientToEye = TRUE) {}
20 METHOD "createSph" SbSpherePlaneProjector( const SbSphere &sph,
21 float edgeTol = .9, SbBool orientToEye = TRUE) {
22 Constructors. The first uses a default sphere centered at the origin
23 with radius 1.0; the sphere is supplied in the second.
24 The position of the plane is specified as a fraction of the sphere radius
25 with the parameter \vedgeTol\..
26 A tolerance value of 1.0 positions the plane
27 down the center of the sphere. A tolerance value of 0.5 defines
28 the longitudinal plane halfway between the center and the outside
29 edge of the sphere. The default value is .9, so that almost
30 half the sphere is in front of the plane.
31 The \vorientToEye\.
32 parameter determines whether the plane is perpendicular to the
33 eye, or perpendicular to the sphere's Z axis. Setting that parameter to TRUE
34 (the default) specifies that the plane be perpendicular to the
35 eye, which is most often the desired behavior.
36 \p
37 The default view volume is undefined, and the working space is identity.
38 }
39
40 METHOD "" ~SbSpherePlaneProjector() { Destructor. }
41
42 ALSO {
43 SbCylinderProjector,
44 SbCylinderPlaneProjector,
45 SbCylinderSectionProjector,
46 SbCylinderSheetProjector,
47 SbLineProjector,
48 SbPlaneProjector,
49 SbSphereSheetProjector
50 }
51
52
53