Debian Codegraph @

doc/man/man3/ivm/draggers/SoPointLightDragger.ivm

raw
1 NAME SoPointLightDragger SoPtLtDrag "" { sun-shaped icon you can translate in 3D by dragging with the mouse }
2
3 INCLUDE draggers/SoPointLightDragger.h
4
5 DESC { \cSoPointLightDragger\.
6 is a dragger that looks like a point light source, can be translated in three
7 directions, and has a \vtranslation\. field that
8 always reflects its position in local space.
9 The point light dragger also has a special \amaterial\. part which can be
10 used to make it take on the color of a light source.
11 \p
12 \eRemember:\. This is \enot\. a light source! It just looks like one.
13 If you want to move a light with this dragger, you can either:
14 \p
15 [a] Use an \cSoPointLightManip\., which is subclassed from \cSoLight\..
16 It creates one of
17 these draggers and uses it as the interface to change the \vlocation\. of its
18 light source (see the \cSoPointLightManip\. reference page).
19 The manipulator also edits the \vmaterial\. part of this dragger to match the
20 color of light the manipulator is producing.
21 \p
22 [b] Use a field-to-field connection to connect the \vlocation\. of a light
23 source from this dragger's \vtranslation\. field.
24 \p
25 This dragger contains an \cSoDragPointDragger\., which you drag through
26 3-space using an integrated set of linear and planar draggers. (For
27 detailed information on how to use \cSoDragPointDragger\., see its
28 reference page.) The point light dragger sets the planar translation
29 parts of this dragPoint dragger with a new default that looks like a
30 shining sun emanating rays of light (okay, so use your imagination).
31 \p
32 By changing the \vmaterial\. part you can change the color of the sun shape,
33 because the default part contains no \cSoMaterial\. nodes. This fact
34 enables the \cSoPointLightManip\. (not the dragger, the manipulator) to
35 color its dragger to match the color of the light it is emanating.
36 Recall that a point light \emanip\. is
37 derived from \cSoLight\. and creates a point light \edragger\. to provide
38 an interface and geometrical presence on screen. The manipulator also has a
39 \vcolor\. field; when the light color changes, it changes the \vmaterial\.
40 part of its dragger so that they match.
41 \p
42 You can change the parts in any instance of this dragger using
43 \m\+setPart()\.\-SoDraggerSetPart()\.\..
44 \p
45 The default part geometries are defined as resources for this
46 \cSoPointLightDragger\. class. They are detailed in the
47 Dragger Resources section of the online reference page for this class.
48 You can make your program use different default resources for the parts
49 by copying the file
50 \v/usr/share/data/draggerDefaults/pointLightDragger.iv\.
51 into your own directory, editing the file, and then
52 setting the environment variable \vSO_DRAGGER_DIR\. to be a path to that directory.
53 }
54
55 METHOD "" SoPointLightDragger() {
56 Constructor.
57 }
58
59 METHOD getClassNkitCat static
60 const SoNodekitCatalog *getClassNodekitCatalog() const
61 { Returns an \cSoNodekitCatalog\. for this class }
62
63 METHOD "" static SoType getClassTypeId() {
64 Returns type identifier for this class.
65 }
66
67 FIELD translation { Position of the dragger. }
68
69 DRAGGER_RESOURCE {
70 pointLightOverallMaterial,
71 material,
72 "white. half strength emissive, half strength diffuse",
73 "sets material for the sun shape when stationary.
74 Resource for the moving sun,
75 pointLightTranslatorPlaneTranslatorActive,
76 contains a yellow material for highlighting."
77 }
78 DRAGGER_RESOURCE {
79 pointLightTranslatorPlaneTranslator,
80 translator.yzTranslator.translator
81 translator.xzTranslator.translator
82 translator.xyTranslator.translator,
83 "sun shape with no material",
84 "picking these parts initiates dragging
85 by the yz, xz, and xy planar draggers
86 respectively."
87 }
88
89 DRAGGER_RESOURCE {
90 pointLightTranslatorPlaneTranslatorActive,
91 translator.yzTranslator.translatorActive
92 translator.xzTranslator.translatorActive
93 translator.xyTranslator.translatorActive,
94 "yellow sun shape",
95 "shown during planar dragging in the yz, xz,
96 and xy planes respectively."
97 }
98
99
100 DRAGGER_RESOURCE {
101 pointLightTranslatorLineTranslator,
102 translator.xTranslator.translator
103 translator.yTranslator.translator
104 translator.zTranslator.translator,
105 "white cylinder",
106 "picking these parts initiates dragging
107 in the x, y, and z linear draggers respectively."
108 }
109
110 DRAGGER_RESOURCE {
111 pointLightTranslatorLineTranslatorActive,
112 translator.xTranslator.translatorActive
113 translator.yTranslator.translatorActive
114 translator.zTranslator.translatorActive,
115 "yellow cylinder",
116 "shown during linear dragging in the x, y,
117 and z directions respectively."
118 }
119
120 ALSO {
121 SoInteractionKit,
122 SoDragger,
123 SoCenterballDragger,
124 SoDirectionalLightDragger,
125 SoDragPointDragger,
126 SoHandleBoxDragger,
127 SoJackDragger,
128 SoRotateCylindricalDragger,
129 SoRotateDiscDragger,
130 SoRotateSphericalDragger,
131 SoScale1Dragger,
132 SoScale2Dragger,
133 SoScale2UniformDragger,
134 SoScaleUniformDragger,
135 SoSpotLightDragger,
136 SoTabBoxDragger,
137 SoTabPlaneDragger,
138 SoTrackballDragger,
139 SoTransformBoxDragger,
140 SoTransformerDragger,
141 SoTranslate1Dragger,
142 SoTranslate2Dragger
143 }