1#ifndef COIN_SOBASEKIT_H
2#define COIN_SOBASEKIT_H
27#include <Inventor/nodekits/SoSubKit.h>
28#include <Inventor/nodes/SoNode.h>
33#include <Inventor/SoNodeKitPath.h>
34#include <Inventor/misc/SoChildList.h>
44#define SO_GET_PART(_kit_, _name_, _classname_) \
45 ((_classname_ *)_kit_->getPart(_name_, TRUE))
47#define SO_CHECK_PART(_kit_, _name_, _classname_) \
48 (static_cast<_classname_ *>(_kit_->getPart(_name_, FALSE)))
50#define SO_GET_ANY_PART(_kit_, _name_, _classname_) \
51 (static_cast<_classname_ *>(_kit_->getAnyPart(_name_, TRUE, FALSE, FALSE)))
53#define SO_CHECK_ANY_PART(_kit_, _name_, _classname_) \
54 (static_cast<_classname_ *>(_kit_->getAnyPart(_name_, FALSE, FALSE, FALSE)))
62 SO_KIT_CATALOG_ENTRY_HEADER(callbackList);
65 static void initClass(
void);
71 virtual SoNode * getPart(
const SbName & partname, SbBool makeifneeded);
75 const SoPath * pathtoextend = NULL);
76 virtual SbBool setPart(
const SbName & partname,
SoNode * from);
77 SbBool
set(
const char * namevaluepairliststring);
78 SbBool
set(
const char * partnamestring,
const char * parameterstring);
93 void printDiagram(
void);
94 void printSubDiagram(
const SbName & rootname,
int level);
95 void printTable(
void);
98 SbBool forceChildDrivenWriteRefs(
SoOutput * out);
100 static SbBool isSearchingChildren(
void);
101 static void setSearchingChildren(
const SbBool newval);
110 SbBool copyconnections);
113 SbBool makeifneeded = TRUE);
114 virtual SoNode * getAnyPart(
const SbName & partname, SbBool makeifneeded,
115 SbBool leafcheck = FALSE,
116 SbBool publiccheck = FALSE);
119 SbBool leafcheck = FALSE,
120 SbBool publiccheck = FALSE,
121 const SoPath * pathtoextend = NULL);
122 virtual SbBool setAnyPart(
const SbName & partname,
SoNode * from,
123 SbBool anypart = TRUE);
124 void createNodekitPartsList(
void);
125 void createFieldList(
void);
126 virtual void createDefaultParts(
void);
127 const SoNodekitParts * getNodekitPartsList(
void)
const;
130 void catalogError(
void);
131 virtual SbBool setUpConnections(SbBool onoff, SbBool doitalways = FALSE);
133 virtual void setDefaultOnNonWritingFields(
void);
136 virtual SbBool setPart(
const int partNum,
SoNode * node);
144 int & partnum, SbBool & islist,
int & listidx,
145 const SbBool makeifneeded,
SoPath * path = NULL,
146 const SbBool recsearch = FALSE);
147 static void atexit_cleanupkit(
void);
149 SbBool makePart(
const int partnum);
150 int getRightSiblingIndex(
const int partnum);
151 int findNodeInThisKit(
SoNode *node,
const int parentnum = -1)
const;
155 static SbBool searchchildren;
157 class SoBaseKitP * pimpl;
158 friend class SoBaseKitP;
The SbList class is a template container class for lists.
Definition SbList.h:61
The SbName class stores strings by reference.
Definition SbName.h:31
The SbString class is a string class with convenience functions for string operations.
Definition SbString.h:42
The SoAction class is the base class for all traversal actions.
Definition SoAction.h:68
The SoBaseKit class is the toplevel superclass for nodekits.
Definition SoBaseKit.h:57
SbBool connectionsSetUp
Definition SoBaseKit.h:139
SoChildList * children
Definition SoBaseKit.h:138
The SoBase class is the top-level superclass for a number of class-hierarchies.
Definition SoBase.h:36
The SoCallbackAction class invokes callbacks at specific nodes.
Definition SoCallbackAction.h:71
The SoChildList class is a container for node children.
Definition SoChildList.h:33
The SoFieldContainer class is a base class for all classes that contain fields.
Definition SoFieldContainer.h:34
SbBool set(const char *const fielddata)
Definition SoFieldContainer.cpp:365
virtual void addWriteReference(SoOutput *out, SbBool isfromfield=FALSE)
Definition SoFieldContainer.cpp:680
The SoGLRenderAction class renders the scene graph with OpenGL calls.
Definition SoGLRenderAction.h:41
The SoGetBoundingBoxAction class calculates bounding boxes for nodes and subgraphs.
Definition SoGetBoundingBoxAction.h:36
The SoGetMatrixAction class is an action for accumulating the transformation matrix of a subgraph.
Definition SoGetMatrixAction.h:37
The SoGetPrimitiveCountAction class counts the primitives in a scene.
Definition SoGetPrimitiveCountAction.h:34
The SoGroup class is a node which managed other node instances.
Definition SoGroup.h:31
The SoHandleEventAction class distributes user events to the scene.
Definition SoHandleEventAction.h:37
The SoInteractionKit class is a base class for draggers.
Definition SoInteractionKit.h:41
The SoNodeKitPath class is a path that contains only nodekit nodes.
Definition SoNodeKitPath.h:33
The SoNode class is the base class for nodes used in scene graphs.
Definition SoNode.h:47
virtual SoChildList * getChildren(void) const
Definition SoNode.cpp:1293
virtual void getPrimitiveCount(SoGetPrimitiveCountAction *action)
Definition SoNode.cpp:870
virtual void handleEvent(SoHandleEventAction *action)
Definition SoNode.cpp:1059
virtual void getBoundingBox(SoGetBoundingBoxAction *action)
Definition SoNode.cpp:841
virtual void doAction(SoAction *action)
Definition SoNode.cpp:785
virtual void callback(SoCallbackAction *action)
Definition SoNode.cpp:1002
virtual void getMatrix(SoGetMatrixAction *action)
Definition SoNode.cpp:1029
virtual SbBool readInstance(SoInput *in, unsigned short flags)
Definition SoNode.cpp:1466
virtual SoNode * addToCopyDict(void) const
Definition SoNode.cpp:1362
virtual void rayPick(SoRayPickAction *action)
Definition SoNode.cpp:1115
virtual void copyContents(const SoFieldContainer *from, SbBool copyconnections)
Definition SoNode.cpp:1410
virtual void search(SoSearchAction *action)
Definition SoNode.cpp:1148
virtual void write(SoWriteAction *action)
Definition SoNode.cpp:1217
virtual void GLRender(SoGLRenderAction *action)
Definition SoNode.cpp:930
The SoNodekitCatalog class is a container for nodekit layouts.
Definition SoNodekitCatalog.h:36
The SoOutput class is an abstraction of an output stream.
Definition SoOutput.h:42
The SoPath class is a container class for traversal path descriptions.
Definition SoPath.h:43
The SoRayPickAction class does ray intersection with scene graphs.
Definition SoRayPickAction.h:41
The SoSearchAction class provides methods for searching through scene graphs.
Definition SoSearchAction.h:35
The SoWriteAction class writes a scene graph to file.
Definition SoWriteAction.h:33
#define SO_NODE_HEADER(classname)
Definition macros.dox:43