Debian Codegraph @

doc/man/man3/ivm/nodekits/SoLightKit.ivm

raw
1 NAME SoLightKit SoLtKit "" { light nodekit class }
2
3 INCLUDE nodekits/SoLightKit.h
4
5 DESC { This nodekit class is used to create light nodes that have
6 a local transformation and a geometry icon to represent the light source.
7 \cSoLightKit\. adds three public parts to the basic nodekit:
8 \etransform\., \elight\., and \eicon\..
9 \p
10 \cSoLightKit\. creates an \cSoDirectionalLight\. as the \elight\. part
11 by default - all other parts are \kNULL\. at creation.
12 \p
13 You can move the light relative to the rest of the scene by creating
14 and editing the \etransform\. part.
15 \p
16 You can add a geometrical representation for the light by
17 setting the \eicon\. part to be any scene graph you like.
18 \p
19 \cSoLightKit\. also adds two private parts. An \cSoTransformSeparator\.
20 contains the effect of \etransform\. to move only the \elight\. and \eicon\.,
21 while allowing the \elight\. to illuminate the rest of the scene.
22 The second private part is an \cSoSeparator\., which keeps property nodes
23 within the \eicon\. geometry from affecting the rest of the scene.
24 It also serves to cache the \eicon\. even when the \elight\.
25 or \etransform\. is changing.
26 \p
27 \cSoLightKit\. is derived from \cSoBaseKit\. and thus also includes a
28 \ecallbackList\. part for adding callback nodes.
29 }
30
31
32 METHOD "" SoLightKit() { Constructor. }
33
34 METHOD getClassNkitCat static
35 const SoNodekitCatalog *getClassNodekitCatalog() const
36 { Returns an \cSoNodekitCatalog\. for the class \cSoLightKit\.. }
37
38
39 METHOD "" static SoType getClassTypeId() {
40 Returns type identifier for this class.
41 }
42
43 PART transform
44 { This part positions and orients the light and icon relative to the rest
45 of the scene.
46 Its effect is kept local to this nodekit
47 by a private part of type \cSoTransformSeparator\.. The \etransform\.
48 part is \kNULL\. by default. If you ask for \etransform\. using
49 \m\+getPart()\.\-SoKitGetPart()\.\., an \cSoTransform\. will be returned.
50 But you may set the part to be any subclass of \cSoTransform\..
51 For example, set the \etransform\. to be an \cSoDragPointManip\.
52 and the \elight\. to be an \cSoPointLight\.. Then you can move the light
53 by dragging the manipulator with the mouse. }
54
55 PART light
56 { The light node for this nodekit. This can be set to any node derived
57 from \cSoLight\.. An \cSoDirectionalLight\. is created by default,
58 and it is also the type of light returned when the you request that
59 the nodekit build a light for you. }
60
61 PART icon
62 { This part is a user-supplied scene graph that represents the light
63 source. It is \kNULL\. by default \(em an \cSoCube\. is created by the
64 lightkit when a method requires it to build the part itself. }
65
66 ALSO {
67 SoAppearanceKit,
68 SoBaseKit,
69 SoCameraKit,
70 SoNodeKit,
71 SoNodeKitDetail,
72 SoNodeKitListPart,
73 SoNodeKitPath,
74 SoNodekitCatalog,
75 SoSceneKit,
76 SoSeparatorKit,
77 SoShapeKit,
78 SoWrapperKit }