Debian Codegraph @

doc/man/man3/ivm/nodekits/SoNodekitCatalog.ivm

raw
1 NAME SoNodekitCatalog SoNkitCat "" { nodekit catalog class }
2
3
4 INCLUDE nodekits/SoNodekitCatalog.h
5
6
7 DESC {
8 This class describes the parts and structure of a nodekit. Each class of
9 nodekit has one \cSoNodekitCatalog\. (a static variable for the class).
10 Internally, the catalog contains one entry for each "part" in the
11 nodekit's structure. Users can query the catalog for information about
12 each entry in the catalog. This information can be obtained either by
13 part name (an \cSbName\. unique for the part within the catalog) or by part
14 number (an index into an array of parts).
15 \p
16 Note that, although the catalog for a nodekit class may contain many
17 entries, each instance of that class is not initially created with all of
18 these parts intact. Rather, each instance of the class has its own
19 parts list which keeps track of which parts the user has created. The
20 nodekit uses the catalog as a guide in creating new nodes as its
21 descendants; the standard \maddChild()\., \mremoveChild()\. and other
22 \cSoGroup\. methods are protected, so that users must create descendants
23 indirectly by asking the nodekit to get and/or set the different "parts"
24 in the catalog.
25 \p
26 The first entry in any \cSoNodekitCatalog\. corresponds to the nodekit
27 itself. Its \apartName\. is "this" and its \apartNumber\. is 0. All other
28 parts in the catalog are described relative to "this."
29 }
30
31
32 METHOD "" static void initClass() { Initializes this object. }
33
34
35 METHOD "" int getNumEntries() const
36 { Returns number of entries in the catalog. }
37
38 METHOD getPartNum int getPartNumber(const SbName &theName) const {
39 Given the name of a part, returns its part number in the catalog. }
40
41 METHOD "" const SbName &getName(int thePartNumber) const {
42 Given the part number of a part, returns its name in the catalog. }
43
44 METHOD "" SoType getType(int thePartNumber) const {}
45 METHOD getTypeByName SoType getType(const SbName &theName) const {}
46 METHOD getDfltType SoType getDefaultType(int thePartNumber) const {}
47 METHOD getDfltTypeByName SoType getDefaultType(const SbName &theName) const {}
48 METHOD "" SbBool isNullByDefault(int thePartNumber) const {}
49 METHOD isNullByDefaultByName SbBool isNullByDefault(const SbName &theName) const {}
50 METHOD "" SbBool isLeaf(int thePartNumber) const {}
51 METHOD isLeafByName SbBool isLeaf(const SbName &theName) const {}
52 METHOD getParName const SbName &getParentName(int thePartNumber) const {}
53 METHOD getParNameByName
54 const SbName &getParentName(const SbName &theName) const {}
55 METHOD getParPartNum int getParentPartNumber(int thePartNumber) const {}
56 METHOD getParPartNumByName
57 int getParentPartNumber(const SbName &theName) const {}
58 METHOD getRtSibName
59 const SbName &getRightSiblingName(int thePartNumber) const {}
60 METHOD getRtSibNameByName
61 const SbName &getRightSiblingName(const SbName &theName) const {}
62 METHOD getRtSibPartNum
63 int getRightSiblingPartNumber(int thePartNumber) const {}
64 METHOD getRtSibPartNumByName
65 int getRightSiblingPartNumber(const SbName &theName) const {}
66 METHOD "" SbBool isList(int thePartNumber) const {}
67 METHOD isListByName SbBool isList(const SbName &theName) const {}
68 METHOD getLstCntnrType SoType getListContainerType(int thePartNumber) const {}
69 METHOD getLstCntnrTypeByName
70 SoType getListContainerType(const SbName &theName) const {}
71 METHOD "" const SoTypeList &getListItemTypes(int thePartNumber) const {}
72 METHOD getListItemTypesByName
73 const SoTypeList &getListItemTypes(const SbName &theName) const {}
74 METHOD "" SbBool isPublic(int thePartNumber) const {}
75 METHOD isPubByName SbBool isPublic(const SbName &theName) const {
76 A full set of methods for finding out all parameters in the catalog, given
77 either the part name or the part number.
78 }
79
80 DEFINE { SO_CATALOG_NAME_NOT_FOUND -1 }
81 DEFINE { SO_CATALOG_THIS_PART_NUM 0 }
82
83
84 ALSO {
85 SoAppearanceKit,
86 SoBaseKit,
87 SoCameraKit,
88 SoLightKit,
89 SoNodeKit,
90 SoNodeKitDetail,
91 SoNodeKitListPart,
92 SoNodeKitPath,
93 SoSceneKit,
94 SoSeparatorKit,
95 SoShapeKit,
96 SoWrapperKit }
97
98