.TH "SoNodekitCatalog" 3 "Tue Dec 26 2023 17:59:22" "Version 4.0.2" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME SoNodekitCatalog \- The \fBSoNodekitCatalog\fP class is a container for nodekit layouts\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBSoNodekitCatalog\fP (\fBvoid\fP)" .br .ti -1c .RI "\fB~SoNodekitCatalog\fP ()" .br .ti -1c .RI "int \fBgetNumEntries\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "int \fBgetPartNumber\fP (\fBconst\fP \fBSbName\fP &name) \fBconst\fP" .br .ti -1c .RI "\fBconst\fP \fBSbName\fP & \fBgetName\fP (int part) \fBconst\fP" .br .ti -1c .RI "\fBSoType\fP \fBgetType\fP (int part) \fBconst\fP" .br .ti -1c .RI "\fBSoType\fP \fBgetType\fP (\fBconst\fP \fBSbName\fP &name) \fBconst\fP" .br .ti -1c .RI "\fBSoType\fP \fBgetDefaultType\fP (int part) \fBconst\fP" .br .ti -1c .RI "\fBSoType\fP \fBgetDefaultType\fP (\fBconst\fP \fBSbName\fP &name) \fBconst\fP" .br .ti -1c .RI "SbBool \fBisNullByDefault\fP (int part) \fBconst\fP" .br .ti -1c .RI "SbBool \fBisNullByDefault\fP (\fBconst\fP \fBSbName\fP &name) \fBconst\fP" .br .ti -1c .RI "SbBool \fBisLeaf\fP (int part) \fBconst\fP" .br .ti -1c .RI "SbBool \fBisLeaf\fP (\fBconst\fP \fBSbName\fP &name) \fBconst\fP" .br .ti -1c .RI "\fBconst\fP \fBSbName\fP & \fBgetParentName\fP (int part) \fBconst\fP" .br .ti -1c .RI "\fBconst\fP \fBSbName\fP & \fBgetParentName\fP (\fBconst\fP \fBSbName\fP &name) \fBconst\fP" .br .ti -1c .RI "int \fBgetParentPartNumber\fP (int part) \fBconst\fP" .br .ti -1c .RI "int \fBgetParentPartNumber\fP (\fBconst\fP \fBSbName\fP &name) \fBconst\fP" .br .ti -1c .RI "\fBconst\fP \fBSbName\fP & \fBgetRightSiblingName\fP (int part) \fBconst\fP" .br .ti -1c .RI "\fBconst\fP \fBSbName\fP & \fBgetRightSiblingName\fP (\fBconst\fP \fBSbName\fP &name) \fBconst\fP" .br .ti -1c .RI "int \fBgetRightSiblingPartNumber\fP (int part) \fBconst\fP" .br .ti -1c .RI "int \fBgetRightSiblingPartNumber\fP (\fBconst\fP \fBSbName\fP &name) \fBconst\fP" .br .ti -1c .RI "SbBool \fBisList\fP (int part) \fBconst\fP" .br .ti -1c .RI "SbBool \fBisList\fP (\fBconst\fP \fBSbName\fP &name) \fBconst\fP" .br .ti -1c .RI "\fBSoType\fP \fBgetListContainerType\fP (int part) \fBconst\fP" .br .ti -1c .RI "\fBSoType\fP \fBgetListContainerType\fP (\fBconst\fP \fBSbName\fP &name) \fBconst\fP" .br .ti -1c .RI "\fBconst\fP \fBSoTypeList\fP & \fBgetListItemTypes\fP (int part) \fBconst\fP" .br .ti -1c .RI "\fBconst\fP \fBSoTypeList\fP & \fBgetListItemTypes\fP (\fBconst\fP \fBSbName\fP &name) \fBconst\fP" .br .ti -1c .RI "SbBool \fBisPublic\fP (int part) \fBconst\fP" .br .ti -1c .RI "SbBool \fBisPublic\fP (\fBconst\fP \fBSbName\fP &name) \fBconst\fP" .br .ti -1c .RI "\fBSoNodekitCatalog\fP * \fBclone\fP (\fBSoType\fP type) \fBconst\fP" .br .ti -1c .RI "SbBool \fBaddEntry\fP (\fBconst\fP \fBSbName\fP &name, \fBSoType\fP type, \fBSoType\fP defaulttype, SbBool isdefaultnull, \fBconst\fP \fBSbName\fP &parent, \fBconst\fP \fBSbName\fP &\fBrightsibling\fP, SbBool islist, \fBSoType\fP \fBlistcontainertype\fP, \fBSoType\fP \fBlistitemtype\fP, SbBool ispublic)" .br .ti -1c .RI "\fBvoid\fP \fBaddListItemType\fP (int part, \fBSoType\fP type)" .br .ti -1c .RI "\fBvoid\fP \fBaddListItemType\fP (\fBconst\fP \fBSbName\fP &name, \fBSoType\fP type)" .br .ti -1c .RI "\fBvoid\fP \fBnarrowTypes\fP (\fBconst\fP \fBSbName\fP &name, \fBSoType\fP \fBnewtype\fP, \fBSoType\fP \fBnewdefaulttype\fP)" .br .ti -1c .RI "\fBvoid\fP \fBsetNullByDefault\fP (\fBconst\fP \fBSbName\fP &name, SbBool \fBnullbydefault\fP)" .br .ti -1c .RI "SbBool \fBrecursiveSearch\fP (int part, \fBconst\fP \fBSbName\fP &name, \fBSoTypeList\fP *\fBchecked\fP) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP \fBprintCheck\fP (\fBvoid\fP) \fBconst\fP" .br .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "\fBstatic\fP \fBvoid\fP \fBinitClass\fP (\fBvoid\fP)" .br .in -1c .SH "Detailed Description" .PP The \fBSoNodekitCatalog\fP class is a container for nodekit layouts\&. Nodekits store all their hierarchical layout information and part information in instances of this class\&. .PP \fBSee also\fP .RS 4 \fBSoNodeKit\fP, \fBSoBaseKit\fP .RE .PP .SH "Constructor & Destructor Documentation" .PP .SS "SoNodekitCatalog::SoNodekitCatalog (\fBvoid\fP)" Constructor\&. .SS "SoNodekitCatalog::~SoNodekitCatalog ()" Destructor\&. .SH "Member Function Documentation" .PP .SS "\fBvoid\fP SoNodekitCatalog::initClass (\fBvoid\fP)\fC [static]\fP" Initialization of static variables\&. .SS "int SoNodekitCatalog::getNumEntries (\fBvoid\fP) const" Returns total number of entries in the catalog\&. .SS "int SoNodekitCatalog::getPartNumber (\fBconst\fP \fBSbName\fP & name) const" Returns part number in catalog with \fIname\fP\&. If no part exists with \fIname\fP, returns \fCSO_CATALOG_NAME_NOT_FOUND\fP\&. .SS "\fBconst\fP \fBSbName\fP & SoNodekitCatalog::getName (int part) const" Given the \fIpart\fP number, return name of that part\&. .SS "\fBSoType\fP SoNodekitCatalog::getType (int part) const" Given the \fIpart\fP number, return type\&. .SS "\fBSoType\fP SoNodekitCatalog::getType (\fBconst\fP \fBSbName\fP & name) const" Given the part \fIname\fP, return type\&. .SS "\fBSoType\fP SoNodekitCatalog::getDefaultType (int part) const" Given \fIpart\fP number, return default type of part\&. .SS "\fBSoType\fP SoNodekitCatalog::getDefaultType (\fBconst\fP \fBSbName\fP & name) const" Given part \fIname\fP, return default type of part\&. .SS "SbBool SoNodekitCatalog::isNullByDefault (int part) const" Returns \fCTRUE\fP if the \fIpart\fP is empty by default, otherwise \fCFALSE\fP\&. .SS "SbBool SoNodekitCatalog::isNullByDefault (\fBconst\fP \fBSbName\fP & name) const" Returns \fCTRUE\fP if part \fIname\fP is empty by default, otherwise \fCFALSE\fP\&. .SS "SbBool SoNodekitCatalog::isLeaf (int part) const" Returns \fCTRUE\fP if the \fIpart\fP is \fInot\fP a parent for any other parts in the nodekit catalog\&. .SS "SbBool SoNodekitCatalog::isLeaf (\fBconst\fP \fBSbName\fP & name) const" Returns \fCTRUE\fP if the part \fIname\fP is \fInot\fP a parent for any other parts in the nodekit catalog\&. .SS "\fBconst\fP \fBSbName\fP & SoNodekitCatalog::getParentName (int part) const" Returns name of parent of \fIpart\fP\&. If \fIpart\fP doesn't have a parent, the empty string is returned\&. .SS "\fBconst\fP \fBSbName\fP & SoNodekitCatalog::getParentName (\fBconst\fP \fBSbName\fP & name) const" Returns name of parent of the part\&. If \fIname\fP doesn't have a parent, the empty string is returned\&. .SS "int SoNodekitCatalog::getParentPartNumber (int part) const" Returns part number of given part's parent\&. If \fIpart\fP doesn't have a parent, SO_CATALOG_NAME_NOT_FOUND is returned\&. .SS "int SoNodekitCatalog::getParentPartNumber (\fBconst\fP \fBSbName\fP & name) const" Returns part number of given part's parent\&. If \fIname\fP doesn't have a parent, SO_CATALOG_NAME_NOT_FOUND is returned\&. .SS "\fBconst\fP \fBSbName\fP & SoNodekitCatalog::getRightSiblingName (int part) const" Returns name of right sibling of \fIpart\fP\&. Returns the empty string if \fIpart\fP doesn't have a right sibling\&. .SS "\fBconst\fP \fBSbName\fP & SoNodekitCatalog::getRightSiblingName (\fBconst\fP \fBSbName\fP & name) const" Returns name of sibling of the part\&. Returns the empty string if \fIname\fP doesn't have a right sibling\&. .SS "int SoNodekitCatalog::getRightSiblingPartNumber (int part) const" Returns part number of given part's sibling\&. Returns SO_CATALOG_NAME_NOT_FOUND if \fIpart\fP doesn't have a right sibling\&. .SS "int SoNodekitCatalog::getRightSiblingPartNumber (\fBconst\fP \fBSbName\fP & name) const" Returns part number of given part's right sibling\&. Returns SO_CATALOG_NAME_NOT_FOUND if part doesn't have a right sibling\&. .SS "SbBool SoNodekitCatalog::isList (int part) const" Returns \fCTRUE\fP if the given \fIpart\fP is a list container\&. .SS "SbBool SoNodekitCatalog::isList (\fBconst\fP \fBSbName\fP & name) const" Returns \fCTRUE\fP if the given part is a list container\&. .SS "\fBSoType\fP SoNodekitCatalog::getListContainerType (int part) const" Returns type of list container (\fBSoGroup\fP, \fBSoSeparator\fP, \fBSoSwitch\fP, etc) which \fIpart\fP is\&. .SS "\fBSoType\fP SoNodekitCatalog::getListContainerType (\fBconst\fP \fBSbName\fP & name) const" Returns type of list container (\fBSoGroup\fP, \fBSoSeparator\fP, \fBSoSwitch\fP, etc) which the named part is\&. .SS "\fBconst\fP \fBSoTypeList\fP & SoNodekitCatalog::getListItemTypes (int part) const" Returns list of node types which are allowed to be children of the list container \fIpart\fP\&. .SS "\fBconst\fP \fBSoTypeList\fP & SoNodekitCatalog::getListItemTypes (\fBconst\fP \fBSbName\fP & name) const" Returns list of node types which are allowed to be children of the named list container part\&. .SS "SbBool SoNodekitCatalog::isPublic (int part) const" Returns \fCTRUE\fP if \fIpart\fP is visible and publicly available for queries and modifications, \fCFALSE\fP if \fIpart\fP is hidden\&. .SS "SbBool SoNodekitCatalog::isPublic (\fBconst\fP \fBSbName\fP & name) const" Returns \fCTRUE\fP if the part is visible and publicly available for queries and modifications, \fCFALSE\fP if it is hidden\&. .SS "\fBSoNodekitCatalog\fP * SoNodekitCatalog::clone (\fBSoType\fP type) const" Return a clone of this catalog\&. \fItype\fP will be used to set the type and default type values of the top level \fCthis\fP entry\&. .SS "SbBool SoNodekitCatalog::addEntry (\fBconst\fP \fBSbName\fP & name, \fBSoType\fP type, \fBSoType\fP defaulttype, SbBool isdefaultnull, \fBconst\fP \fBSbName\fP & parentname, \fBconst\fP \fBSbName\fP & rightsiblingname, SbBool islist, \fBSoType\fP listcontainertype, \fBSoType\fP listitemtype, SbBool ispublic)" Add a new entry to the catalog\&. Returns \fCTRUE\fP if add was OK\&. .SS "\fBvoid\fP SoNodekitCatalog::addListItemType (int part, \fBSoType\fP type)" Add another allowable type for the given \fIpart\fP\&. \fIpart\fP must of course be a list container item\&. .SS "\fBvoid\fP SoNodekitCatalog::addListItemType (\fBconst\fP \fBSbName\fP & name, \fBSoType\fP type)" Add another allowable type for the \fIname\fP part\&. The part must of course be a list container\&. .SS "\fBvoid\fP SoNodekitCatalog::narrowTypes (\fBconst\fP \fBSbName\fP & name, \fBSoType\fP newtype, \fBSoType\fP newdefaulttype)" Set the type and default type of a part to be subtypes of the old types\&. Useful for 'narrowing' the specification of a nodekit which inherits the catalog of a more generic nodekit superclass\&. .SS "\fBvoid\fP SoNodekitCatalog::setNullByDefault (\fBconst\fP \fBSbName\fP & name, SbBool nullbydefault)" Change whether or not the part with the given \fIname\fP is created by default\&. .SS "SbBool SoNodekitCatalog::recursiveSearch (int part, \fBconst\fP \fBSbName\fP & name, \fBSoTypeList\fP * checked) const" Recursively search \fIpart\fP number in catalog for the \fIname\fP part\&. .PP The \fIchecked\fP \fBSoTypeList\fP is just used as a placeholder to remember which nodekit class catalogs have already been scanned (or are being scanned) during the recursion\&. You should normally just pass in an empty list\&. .SS "\fBvoid\fP SoNodekitCatalog::printCheck (\fBvoid\fP) const" Lists all catalog parts, which is useful for debugging\&. .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.