1 #ifndef COIN_SONODEKITCATALOG_H
2 #define COIN_SONODEKITCATALOG_H
27 #include <Inventor/SoType.h>
28 #include <Inventor/lists/SbList.h>
33 #define SO_CATALOG_NAME_NOT_FOUND -1
38 static void initClass(
void);
43 int getNumEntries(
void)
const;
44 int getPartNumber(
const SbName & name)
const;
45 const SbName & getName(
int part)
const;
47 SoType getType(
int part)
const;
49 SoType getDefaultType(
int part)
const;
51 SbBool isNullByDefault(
int part)
const;
52 SbBool isNullByDefault(
const SbName & name)
const;
54 SbBool isLeaf(
int part)
const;
55 SbBool isLeaf(
const SbName & name)
const;
56 const SbName & getParentName(
int part)
const;
58 int getParentPartNumber(
int part)
const;
59 int getParentPartNumber(
const SbName & name)
const;
60 const SbName & getRightSiblingName(
int part)
const;
61 const SbName & getRightSiblingName(
const SbName & name)
const;
62 int getRightSiblingPartNumber(
int part)
const;
63 int getRightSiblingPartNumber(
const SbName & name)
const;
65 SbBool isList(
int part)
const;
66 SbBool isList(
const SbName & name)
const;
67 SoType getListContainerType(
int part)
const;
69 const SoTypeList & getListItemTypes(
int part)
const;
72 SbBool isPublic(
int part)
const;
73 SbBool isPublic(
const SbName & name)
const;
78 SbBool isdefaultnull,
const SbName & parent,
79 const SbName & rightsibling, SbBool islist,
82 void addListItemType(
int part,
SoType type);
86 void setNullByDefault(
const SbName & name, SbBool nullbydefault);
88 SbBool recursiveSearch(
int part,
const SbName & name,
91 void printCheck(
void)
const;
94 SbBool hasEntry(
const SbName & name)
const;
95 SbBool hasListItemType(
const SbName & name,
SoType type)
const;
96 SbBool reallyAddEntry(
class CatalogItem * newitem);
99 const SbName & name)
const;
109 #endif // !COIN_SONODEKITCATALOG_H
static SoType badType(void)
Definition: SoType.cpp:664
The SoNodekitCatalog class is a container for nodekit layouts.
Definition: SoNodekitCatalog.h:36
void addListItemType(int part, SoType type)
Definition: SoNodekitCatalog.cpp:618
The SbName class stores strings by reference.
Definition: SbName.h:31
SbBool isList(int part) const
Definition: SoNodekitCatalog.cpp:328
static void initClass(void)
Definition: SoNodekitCatalog.cpp:62
const SbName & getName(int part) const
Definition: SoNodekitCatalog.cpp:110
SbBool recursiveSearch(int part, const SbName &name, SoTypeList *checked) const
Definition: SoNodekitCatalog.cpp:702
static void post(const char *const source, const char *const format,...)
Definition: SoDebugError.cpp:314
const SbName & getRightSiblingName(int part) const
Definition: SoNodekitCatalog.cpp:277
SbBool isNullByDefault(int part) const
Definition: SoNodekitCatalog.cpp:168
void setNullByDefault(const SbName &name, SbBool nullbydefault)
Definition: SoNodekitCatalog.cpp:683
int getRightSiblingPartNumber(int part) const
Definition: SoNodekitCatalog.cpp:303
int getParentPartNumber(int part) const
Definition: SoNodekitCatalog.cpp:252
~SoNodekitCatalog()
Definition: SoNodekitCatalog.cpp:76
SoNodekitCatalog(void)
Definition: SoNodekitCatalog.cpp:69
void append(const Type item)
Definition: SbList.h:98
int find(const SoType type) const
Definition: SoTypeList.cpp:74
SoType getListContainerType(int part) const
Definition: SoNodekitCatalog.cpp:352
SbBool isDerivedFrom(const SoType type) const
Definition: SoType.cpp:687
void insert(const Type item, const int insertbefore)
Definition: SbList.h:109
void unref(void) const
Definition: SoBase.cpp:627
The SoType class is the basis for the run-time type system in Coin.
Definition: SoType.h:50
const char * getString(void) const
Definition: SbName.cpp:278
static void postInfo(const char *const source, const char *const format,...)
Definition: SoDebugError.cpp:334
const SbName & getParentName(int part) const
Definition: SoNodekitCatalog.cpp:228
int getLength(void) const
Definition: SbList.h:145
SbBool isLeaf(int part) const
Definition: SoNodekitCatalog.cpp:199
SoType getType(int part) const
Definition: SoNodekitCatalog.cpp:123
const SoTypeList & getListItemTypes(int part) const
Definition: SoNodekitCatalog.cpp:379
The SoTypeList class is a container class for arrays of SoType objects.
Definition: SoTypeList.h:30
void ref(void) const
Definition: SoBase.cpp:574
SbBool isPublic(int part) const
Definition: SoNodekitCatalog.cpp:406
void * createInstance(void) const
Definition: SoType.cpp:803
void remove(const int index)
Definition: SbList.h:129
SoType getDefaultType(int part) const
Definition: SoNodekitCatalog.cpp:145
void narrowTypes(const SbName &name, SoType newtype, SoType newdefaulttype)
Definition: SoNodekitCatalog.cpp:656
SbBool addEntry(const SbName &name, SoType type, SoType defaulttype, SbBool isdefaultnull, const SbName &parent, const SbName &rightsibling, SbBool islist, SoType listcontainertype, SoType listitemtype, SbBool ispublic)
Definition: SoNodekitCatalog.cpp:472
int getPartNumber(const SbName &name) const
Definition: SoNodekitCatalog.cpp:100
virtual const SoNodekitCatalog * getNodekitCatalog(void) const
Definition: SoBaseKit.cpp:573
int find(const Type item) const
Definition: SbList.h:103
void append(const SoType type)
Definition: SoTypeList.cpp:62
The SoBaseKit class is the toplevel superclass for nodekits.
Definition: SoBaseKit.h:57
int getNumEntries(void) const
Definition: SoNodekitCatalog.cpp:89
void printCheck(void) const
Definition: SoNodekitCatalog.cpp:739
SoNodekitCatalog * clone(SoType type) const
Definition: SoNodekitCatalog.cpp:430
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Mon Jul 27 2020 for Coin by Doxygen. 1.8.18