Coin Logo http://www.sim.no/
http://www.coin3d.org/

SoChildList.h
1 #ifndef COIN_SOCHILDLIST_H
2 #define COIN_SOCHILDLIST_H
3 
4 /**************************************************************************\
5  *
6  * This file is part of the Coin 3D visualization library.
7  * Copyright (C) by Kongsberg Oil & Gas Technologies.
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * ("GPL") version 2 as published by the Free Software Foundation.
12  * See the file LICENSE.GPL at the root directory of this source
13  * distribution for additional information about the GNU GPL.
14  *
15  * For using Coin with software that can not be combined with the GNU
16  * GPL, and for taking advantage of the additional benefits of our
17  * support services, please contact Kongsberg Oil & Gas Technologies
18  * about acquiring a Coin Professional Edition License.
19  *
20  * See http://www.coin3d.org/ for more information.
21  *
22  * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.
23  * http://www.sim.no/ sales@sim.no coin-support@coin3d.org
24  *
25 \**************************************************************************/
26 
27 #include <Inventor/lists/SoNodeList.h>
28 #include <Inventor/lists/SbList.h>
29 
30 class SoPath;
31 class SoAction;
32 
33 class COIN_DLL_API SoChildList : public SoNodeList {
34  typedef SoNodeList inherited;
35 
36 public:
37  SoChildList(SoNode * const parent);
38  SoChildList(SoNode * const parent, const int size);
39  SoChildList(SoNode * const parent, const SoChildList & cl);
40  ~SoChildList();
41 
42  void append(SoNode * const node);
43  void insert(SoNode * const ptr, const int addbefore);
44  void remove(const int index);
45  void truncate(const int length);
46  void copy(const SoChildList & cl);
47  void set(const int index, SoNode * const node);
48 
49  void traverseInPath(SoAction * const action, const int numindices,
50  const int * indices);
51  void traverse(SoAction * const action);
52  void traverse(SoAction * const action, const int index);
53  void traverse(SoAction * const action, SoNode * node);
54  void traverse(SoAction * const action, const int first, const int last);
55 
56 public:
57  void addPathAuditor(SoPath * const path);
58  void removePathAuditor(SoPath * const path);
59 
60 private:
61  SoNode * parent;
62  SbList<SoPath *> auditors;
63 };
64 
65 #endif // !COIN_SOCHILDLIST_H
The SoBaseList class is a container for pointers to SoBase derived objects.The additional capability ...
Definition: SoBaseList.h:32
The SbList class is a template container class for lists.SbList is an extension of the Coin library v...
Definition: SoType.h:46
void truncate(const int length)
Definition: SoBaseList.cpp:156
The SoNode class is the base class for nodes used in scene graphs.Coin is a retained mode 3D visualiz...
Definition: SoNode.h:47
The SoChildList class is a container for node children.This class does automatic notification on the ...
Definition: SoChildList.h:33
The SoPath class is a container class for traversal path descriptions.SoPath objects contain a list o...
Definition: SoPath.h:43
The SoAction class is the base class for all traversal actions.Applying actions is the basic mechanis...
Definition: SoAction.h:68
void append(SoNode *const ptr)
Definition: SoNodeList.cpp:79
The SoNodeList class is a container for pointers to SoNode objects.
Definition: SoNodeList.h:31
void copy(const SoBaseList &l)
Definition: SoBaseList.cpp:171
void insert(SoBase *ptr, const int addbefore)
Definition: SoBaseList.cpp:108

Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.

Generated for Coin by Doxygen 1.8.14.