00001 #ifndef COIN_SOMFNODE_H
00002 #define COIN_SOMFNODE_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #include <Inventor/fields/SoMField.h>
00028 #include <Inventor/fields/SoSubField.h>
00029
00030 class SoNode;
00031
00032 class COIN_DLL_API SoMFNode : public SoMField {
00033 typedef SoMField inherited;
00034
00035 SO_MFIELD_HEADER(SoMFNode, SoNode *, SoNode *);
00036
00037 public:
00038 static void initClass(void);
00039
00040 virtual void fixCopy(SbBool copyconnections);
00041 virtual SbBool referencesCopy(void) const;
00042
00043 void addNode(SoNode * node);
00044 void insertNode(SoNode * node, int idx);
00045 SoNode * getNode(int idx) const;
00046 int findNode(const SoNode * node) const;
00047 int getNumNodes(void) const;
00048 void removeNode(int index);
00049 void removeNode(SoNode * node);
00050 void removeAllNodes(void);
00051 void replaceNode(int idx, SoNode * newnode);
00052 void replaceNode(SoNode * oldnode, SoNode * newnode);
00053
00054 virtual void deleteValues(int start, int num = -1);
00055 virtual void insertSpace(int start, int num);
00056
00057 private:
00058 virtual void countWriteRefs(SoOutput * out) const;
00059 };
00060
00061 #endif // !COIN_SOMFNODE_H