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) 1998-2007 by Systems in Motion. All rights reserved.
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 Systems in Motion about acquiring
18  * a Coin Professional Edition License.
19  *
20  * See http://www.coin3d.org/ for more information.
21  *
22  * Systems in Motion, Postboks 1283, Pirsenteret, 7462 Trondheim, 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

Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.

Generated on Thu Aug 15 2013 for Coin by Doxygen. 1.8.4