Debian Codegraph @

doc/man/man3/ivm/draggers/SoRotateCylindricalDragger.ivm

raw
1 NAME SoRotateCylindricalDragger SoRotCylDrag "" { object you rotate along a cylindrical surface by dragging with the mouse }
2
3 INCLUDE draggers/SoRotateCylindricalDragger.h
4
5 DESC { \cSoRotateCylindricalDragger\.
6 is a simple dragger that rotates about the y axis of its local space.
7 The feel of the rotation is as if you were spinning a cylinder about
8 its axis of rotation. The local space is determined by its location in the
9 scene graph. Transformation nodes placed before it will affect both the
10 dragger and the direction of motion.
11 \p
12 This node has a \vrotation\. field which always reflects its orientation
13 in local space. If you set the field, the dragger will rotate
14 accordingly. You can also connect fields of other nodes or engines from
15 this one to make them follow the dragger's orientation.
16 \p
17 This dragger contains four parts, \erotator\., \erotatorActive\.,
18 \efeedback\., and \efeedbackActive\..
19 \p
20 Each of these is set by default from a resource described in the Dragger
21 Resources section of the online reference page for this class. You can
22 change the parts in any instance of this dragger using
23 \m\+setPart()\.\-SoDraggerSetPart()\.\..
24 \p
25 You can make your program use different default resources for the parts
26 by copying the file
27 \v/usr/share/data/draggerDefaults/rotateCylindricalDragger.iv\.
28 into your own directory, editing the file, and then setting the
29 environment variable \vSO_DRAGGER_DIR\. to be a path to that directory.
30 }
31
32 METHOD "" SoRotateCylindricalDragger() {
33 Constructor.
34 }
35
36 FIELD rotation { Orientation of the dragger. }
37
38 METHOD "setProj" void setProjector(SbCylinderProjector *p) {}
39 METHOD "getProj" const SbCylinderProjector *getProjector() const {
40 Set and get a different cylinder projector. See the \cSbCylinderProjector\.
41 man pages to find out how each kind affects the feel of your dragger's motion.
42 The default uses an \cSbCylinderPlaneProjector\..
43 \p
44 Passing in NULL will cause this default type of projector to be used.
45 Any projector you pass in will be deleted by this dragger when
46 this dragger is deleted.
47 Note that the axis and radius of the cylinder are determined by the
48 dragger, based on the \vy-axis\. in local space and how far the initial mouse
49 click occured from the center of rotation.
50 }
51
52 METHOD getClassNkitCat static
53 const SoNodekitCatalog *getClassNodekitCatalog() const
54 { Returns an \cSoNodekitCatalog\. for this class }
55
56 METHOD "" static SoType getClassTypeId() {
57 Returns type identifier for this class.
58 }
59
60 DRAGGER_RESOURCE {
61 rotateCylindricalRotator,
62 rotator,
63 "white cylinder (with vertical axis) made of lines",
64 "picking this initiates rotation"
65 }
66
67 DRAGGER_RESOURCE {
68 rotateCylindricalRotatorActive,
69 rotatorActive,
70 "yellow version of rotator",
71 "displayed while in motion instead of the rotator"
72 }
73
74 DRAGGER_RESOURCE {
75 rotateCylindricalFeedback,
76 feedback,
77 "thin purple line along local y-axis",
78 "shows center of rotation when not moving"
79 }
80
81 DRAGGER_RESOURCE {
82 rotateCylindricalFeedbackActive,
83 feedbackActive,
84 "thin, slightly brighter purple line along local y-axis",
85 "shows center of rotation when moving"
86 }
87
88 ALSO {
89 SoInteractionKit,
90 SoDragger,
91 SoCenterballDragger,
92 SoDirectionalLightDragger,
93 SoDragPointDragger,
94 SoHandleBoxDragger,
95 SoJackDragger,
96 SoPointLightDragger,
97 SoRotateDiscDragger,
98 SoRotateSphericalDragger,
99 SoScale1Dragger,
100 SoScale2Dragger,
101 SoScale2UniformDragger,
102 SoScaleUniformDragger,
103 SoSpotLightDragger,
104 SoTabBoxDragger,
105 SoTabPlaneDragger,
106 SoTrackballDragger,
107 SoTransformBoxDragger,
108 SoTransformerDragger,
109 SoTranslate1Dragger,
110 SoTranslate2Dragger
111 }
112