Coin Logo Coin3D is Free Software,
published under the BSD 3-clause license.
https://bitbucket.org/Coin3D/
http://www.kongsberg.com/kogt/
SoActionP.h
1 #ifndef COIN_SOACTIONP_H
2 #define COIN_SOACTIONP_H
3 
4 /**************************************************************************\
5  * Copyright (c) Kongsberg Oil & Gas Technologies AS
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions are
10  * met:
11  *
12  * Redistributions of source code must retain the above copyright notice,
13  * this list of conditions and the following disclaimer.
14  *
15  * Redistributions in binary form must reproduce the above copyright
16  * notice, this list of conditions and the following disclaimer in the
17  * documentation and/or other materials provided with the distribution.
18  *
19  * Neither the name of the copyright holder nor the names of its
20  * contributors may be used to endorse or promote products derived from
21  * this software without specific prior written permission.
22  *
23  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
26  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
27  * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
28  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
29  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
30  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 \**************************************************************************/
35 
36 #ifndef COIN_INTERNAL
37 #error this is a private header file
38 #endif /* !COIN_INTERNAL */
39 
40 #ifdef HAVE_CONFIG_H
41 #include "config.h"
42 #endif // HAVE_CONFIG_H
43 
44 #include "misc/SoCompactPathList.h"
45 
46 #include <Inventor/annex/Profiler/nodes/SoProfilerStats.h>
47 #include <Inventor/actions/SoAction.h>
48 
49 #ifdef HAVE_NODEKITS
50 #include <Inventor/annex/Profiler/nodekits/SoProfilerOverlayKit.h>
51 #else
52 class SoProfilerOverlayKit;
53 #endif // !HAVE_NODEKITS
54 
55 class SoActionP {
56 public:
57  SoAction::AppliedCode appliedcode;
58  int returnindex;
59  union AppliedData {
60  SoNode * node;
61  SoPath * path;
62  struct {
63  const SoPathList * pathlist;
64  const SoPathList * origpathlist;
65  SoCompactPathList * compactlist;
66  } pathlistdata;
67  } applieddata;
68  SbBool terminated;
69  SbList <SbList<int> *> pathcodearray;
70  int prevenabledelementscounter;
71 
72  static SoNode * getProfilerOverlay(void);
73  static SoProfilerStats * getProfilerStatsNode(void);
74 }; // SoActionP
75 
76 #endif // !COIN_SOACTIONP_H
The SoCompactPathList class is used to optimize SoPathList traversal.
Definition: SoCompactPathList.h:51
The SbList class is a template container class for lists.SbList is an extension of the Coin library v...
Definition: SbList.h:70
The SoPathList class is a container for pointers to SoPath objects.As this class inherits SoBaseList...
Definition: SoPathList.h:40
The SoNode class is the base class for nodes used in scene graphs.Coin is a retained mode 3D visualiz...
Definition: SoNode.h:56
The SoProfilerStats class is a node for exposing profiling results gathered by SoProfilerElement.
Definition: SoProfilerStats.h:47
The SoPath class is a container class for traversal path descriptions.SoPath objects contain a list o...
Definition: SoPath.h:52
AppliedCode
Definition: SoAction.h:82