Debian Codegraph @

doc/man/man3/ivm/projectors/SbCylinderSectionProjector.ivm

raw
1 NAME SbCylinderSectionProjector "SbCylSectProj" "" { cylinder-section projector }
2
3 INCLUDE projectors/SbCylinderSectionProjector.h
4
5 DESC { \cSbCylinderSectionProjector\.
6 projects a window space point (usually based on the mouse location)
7 onto the section of a cylinder that has been sliced by a plane.
8 Two projected points can produce a rotation
9 along the cylinder's axis.
10 The tolerance slice can be specified as a fraction of the radius
11 of the cylinder. The projection point will not extend beyond the
12 sliced portion of the cylinder.
13 \p
14 Incremental changes (delta rotation) can be computed during
15 interactive sessions. Cylinder projectors are typically used to write
16 interactive 3D manipulators and viewers.
17 }
18
19 METHOD "" SbCylinderSectionProjector(float edgeTol = .9, SbBool orientToEye = TRUE) {}
20 METHOD "createCyl" SbCylinderSectionProjector( const SbCylinder &cyl,
21 float edgeTol = .9, SbBool orientToEye = TRUE) {
22 Constructors. The first uses a default cylinder aligned with the Y axis
23 with radius 1.0; the cylinder is supplied in the second.
24 The position of the plane which slices the cylinder into
25 a section is specified as a fraction of the cylinder radius
26 with the parameter \vedgeTol\..
27 A tolerance value of 1.0 positions the plane
28 down the center of the cylinder. A tolerance value of 0.5 defines
29 the longitudinal plane halfway between the center and the outside
30 edge of the cylinder. The default value is .9, so that almost
31 half the cylinder is in front of the plane.
32 The \vorientToEye\.
33 parameter determines whether the plane is perpendicular to the
34 eye, or perpendicular to the cylinder's Z axis. Setting that parameter to TRUE
35 (the default) specifies that the plane be perpendicular to the
36 eye, which is most often the desired behavior.
37 \p
38 The default view volume is undefined, and the working space is identity.
39 }
40
41 METHOD "" ~SbCylinderSectionProjector() { Destructor. }
42
43 METHOD "setTol" void setTolerance(float edgeTol) {}
44 METHOD "getTol" float getTolerance() const {
45 Set and get the edge tolerance as a fraction of the
46 radius of the cylinder. If this is 1.0, the projector is a
47 half cylinder. If this is .1, the projector is a slice of
48 the cylinder with radius .1*radius. Default is .9.
49 }
50
51 METHOD "isWithinTol" SbBool isWithinTolerance(const SbVec3f &point) {
52 Find whether this point on the cylinder or tolerance
53 plane is within tolerance.
54 }
55
56 ALSO {
57 SbCylinderPlaneProjector,
58 SbCylinderSheetProjector,
59 SbLineProjector, SbPlaneProjector, SbSpherePlaneProjector,
60 SbSphereProjector, SbSphereSectionProjector, SbSphereSheetProjector
61 }
62
63
64