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
30class SoPath;
31class SoAction;
32
33class COIN_DLL_API SoChildList : public SoNodeList {
34 typedef SoNodeList inherited;
35
36public:
37 SoChildList(SoNode * const parent);
38 SoChildList(SoNode * const parent, const int size);
39 SoChildList(SoNode * const parent, const SoChildList & cl);
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
56public:
57 void addPathAuditor(SoPath * const path);
58 void removePathAuditor(SoPath * const path);
59
60private:
61 SoNode * parent;
62 SbList<SoPath *> auditors;
63};
64
65#endif // !COIN_SOCHILDLIST_H
The SbList class is a template container class for lists.
Definition SbList.h:61
The SoAction class is the base class for all traversal actions.
Definition SoAction.h:68
void copy(const SoBaseList &l)
Definition SoBaseList.cpp:171
void set(const int i, SoBase *const ptr)
Definition SoBaseList.cpp:270
void remove(const int index)
Definition SoBaseList.cpp:121
void truncate(const int length)
Definition SoBaseList.cpp:156
void insert(SoBase *ptr, const int addbefore)
Definition SoBaseList.cpp:108
The SoChildList class is a container for node children.
Definition SoChildList.h:33
The SoNodeList class is a container for pointers to SoNode objects.
Definition SoNodeList.h:31
void append(SoNode *const ptr)
Definition SoNodeList.cpp:79
The SoNode class is the base class for nodes used in scene graphs.
Definition SoNode.h:47
The SoPath class is a container class for traversal path descriptions.
Definition SoPath.h:43

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

Generated on Wed Jul 17 2024 for Coin by Doxygen 1.12.0.