Debian Codegraph @

doc/man/man3/ivm/nodekits/SoSceneKit.ivm

raw
1 NAME SoSceneKit "" "" { scene nodekit class }
2
3 INCLUDE nodekits/SoSceneKit.h
4
5 DESC {
6 This nodekit is used to organize camera, (\cSoCameraKit\.),
7 light, (\cSoLightKit\.), and object, (\cSoShapeKit\., \cSoSeparatorKit\.,
8 and \cSoWrapperKit\.) nodekits into a scene. A scene is composed
9 of a list of cameras, a list of lights, and a list of children.
10 There are three parts created by this nodekit:
11 \ecameraList\., \elightList\., and \echildList\..
12 \p
13 The \ecameraList\. part is a \elist part\. of \cSoCameraKit\. nodes.
14 The list itself is an \cSoNodeKitListPart\., and since
15 only one camera can be active at a time, the
16 \econtainer\. of the \elist part\. is an \cSoSwitch\. node. Use
17 \m\+setCameraNumber()\.\-SoSceneKitSetCameraNumber()\.\., and the
18 scene kit will set the switch to make that camera active.
19 \p
20 The \elightList\. part is a list of \cSoLightKit\. nodes.
21 The \elightList\. is used to illuminate the objects
22 contained in the \echildList\. part.
23 \p
24 The \echildList\. part contains a set of \cSoSeparatorKit\. nodes.
25 You can add any kind of \cSoSeparatorKit\. to this list,
26 including \cSoShapeKit\. and \cSoWrapperKit\.. Since each
27 \cSoSeparatorKit\. in turn contains a \echildList\., this part is used
28 to describe a hierarchical scene.
29 (See the reference page for \cSoSeparatorKit\.).
30 All members of \echildList\. are lit by the lights in
31 \elightList\. and rendered by the active camera in \ecameraList\..
32 }
33
34
35 METHOD "" SoSceneKit() { Constructor. }
36
37 METHOD getClassNkitCat static
38 const SoNodekitCatalog *getClassNodekitCatalog() const
39 { Returns an \cSoNodekitCatalog\. for the class \cSoSceneKit\.. }
40
41 METHOD getCamNum int getCameraNumber() { }
42 METHOD setCamNum void setCameraNumber(int camNum)
43 { Gets and sets current camera index. This index refers to which
44 child is active in the \ecameraList\. part (\cSoSwitch\. node). }
45
46 METHOD "" static SoType getClassTypeId() {
47 Returns type identifier for this class.
48 }
49
50
51 PART cameraList { This part is an \cSoNodeKitListPart\. It has a
52 \econtainer\. that is an \cSoSwitch\. node. The list may contain
53 only \cSoCameraKit\. nodekits. The active child of
54 the \cSoSwitch\. is the \eactive\. camera.
55 This part is \kNULL\. by default, but is automatically created
56 whenever you add a camera, as with
57 \m\+setPart("cameraList[0]", myNewCamera)\.
58 \-SoSceneKitSetPart(mySceneKit, "cameraList[0]", myNewCamera)\.\..
59 }
60
61 PART lightList { This part is an \cSoNodeKitListPart\. that uses an
62 defines an \cSoGroup\. as its \econtainer\. The list may contain only
63 \cSoLightKit\. nodekits. Add \cSoLightKits\. to this
64 list and they will light the members of the \echildList\.
65 of this \cSoSceneKit\..
66 This part is \kNULL\. by default, but is automatically created
67 when you add a light. }
68
69 PART childList { This part is an \cSoNodeKitListPart\. that uses an
70 \cSoGroup\. for its \econtainer\.. The list may contain only
71 \cSoSeparatorKit\. nodekits or nodekits derived
72 from \cSoSeparatorKit\. (e.g., \cSoShapeKit\. and \cSoWrapperKit\.).
73 These children represent the objects in the scene.
74 This part is \kNULL\. by default, but is automatically created
75 whenever you add a child to the \echildList\..
76 Also, when asked to build a member of the \echildList\., the scenekit
77 will build an \cSoShapeKit\. by default.
78 So if the \echildList\. part is NULL, and you call:
79 \m\+getPart("childList[0]", TRUE)\.
80 \-SoSceneKitGetPart(mySceneKit, "childList[0]", TRUE)\.\..
81 the scene kit will create the \echildList\. and add an \cSoShapeKit\.
82 as the new element in the list.
83 }
84
85
86 ALSO {
87 SoAppearanceKit,
88 SoBaseKit,
89 SoCameraKit,
90 SoLightKit,
91 SoNodeKit,
92 SoNodeKitDetail,
93 SoNodeKitListPart,
94 SoNodeKitPath,
95 SoNodekitCatalog,
96 SoSeparatorKit,
97 SoShapeKit,
98 SoWrapperKit }