1SbCylinderProjector(3IV)() SbCylinderProjector(3IV)()
2
3
4
6 SbCylinderProjector — cylinder projector
7
9 SbProjector > SbCylinderProjector
10
12 #include <Inventor/projectors/SbCylinderProjector.h>
13
14 Methods from class SbCylinderProjector:
15
16 ~SbCylinderProjector()
17 SbVec3f projectAndGetRotation(const SbVec2f &point, SbRota‐
18 tion &rot)
19 virtual SbRotation getRotation(const SbVec3f &point1, const SbVec3f
20 &point2)
21 void setCylinder(const SbCylinder &cyl)
22 const SbCylinder & getCylinder() const
23 void setOrientToEye(SbBool orientToEye)
24 SbBool isOrientToEye() const
25 void setFront(SbBool isFront)
26 SbBool isFront() const
27 SbBool isPointInFront(const SbVec3f &point) const
28
29 Methods from class SbProjector:
30
31 virtual SbVec3f project(const SbVec2f &point)
32 virtual void setViewVolume(const SbViewVolume &vol)
33 const SbViewVolume & getViewVolume() const
34 virtual void setWorkingSpace(const SbMatrix &space)
35 const SbMatrix & getWorkingSpace() const
36 virtual SbProjector * copy() const
37
38
40 SbCylinderProjector is an abstract base class for projectors that use a
41 cylinder in their projection. The getRotation() method for an SbCylin‐
42 derProjector will always return a rotation that is about the axis of
43 the cylinder. Cylinder projectors are typically used to write interac‐
44 tive 3D manipulators and viewers.
45
47 ~SbCylinderProjector()
48 Destructor.
49
50 SbVec3f projectAndGetRotation(const SbVec2f &point, SbRota‐
51 tion &rot)
52 Apply the projector using the given point, returning the point in
53 three dimensions that it projects to. This also returns in rot a
54 rotation about the axis of the cylinder from the last projected
55 point to this one. The passed point should be normalized (i.e. lie
56 in the range [0.0,1.0]), with (0,0) at the lower-left.
57
58 virtual SbRotation getRotation(const SbVec3f &point1, const SbVec3f
59 &point2)
60 Get a rotation given two points on this cylinder projector. The
61 rotation will be about the axis of the cylinder.
62
63 void setCylinder(const SbCylinder &cyl)
64 const SbCylinder & getCylinder() const
65 Set and get the cylinder on which to project points. The default
66 cylinder is aligned with the Y axis and has radius 1.0.
67
68 void setOrientToEye(SbBool orientToEye)
69 SbBool isOrientToEye() const
70 Set and get whether the projector should always be oriented towards
71 the eye. Set to FALSE if the tolerance should be evaluated in work‐
72 ing space.
73
74 void setFront(SbBool isFront)
75 SbBool isFront() const
76 SbBool isPointInFront(const SbVec3f &point) const
77 Set and get whether the projector should intersect the half of the
78 cylinder that faces the eye. Set to FALSE if the projector should
79 intersect with the rear half.
80
81
83 SbCylinderPlaneProjector, SbCylinderSectionProjector, SbCylinderSheet‐
84 Projector, SbLineProjector, SbPlaneProjector, SbSpherePlaneProjector,
85 SbSphereProjector, SbSphereSectionProjector, SbSphereSheetProjector
86
87
88
89
90 SbCylinderProjector(3IV)()