NutsnBolts  0.1.0
An extension library for Coin
Loading...
Searching...
No Matches
NbSceneManagerP.h
1#ifndef NB_SCENEMANAGERP_H
2#define NB_SCENEMANAGERP_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
37#include <Inventor/SbBasic.h>
38#include <Inventor/SbColor.h>
39#include <Inventor/SbMatrix.h>
40#include <Inventor/actions/SoSearchAction.h>
41#include <Inventor/elements/SoLazyElement.h>
42
43class SoInfo;
44class SoCamera;
45class NbSceneManager;
47class SoGLRenderAction;
48class SoGetMatrixAction;
49class SoGetBoundingBoxAction;
50
51class NbSceneManagerP {
52public:
53 NbSceneManagerP(NbSceneManager * api);
54 ~NbSceneManagerP(void);
55
56 void clearBuffers(SbBool color, SbBool depth);
57 SoCamera * getCamera(void);
58 void touch(void);
59 void renderSingle(SoGLRenderAction * action,
60 SbBool initmatrices,
61 SbBool clearwindow,
62 SbBool clearzbuffer);
63
64 NbNavigationSystem * searchForNavigationMode(SoNode * root,
65 NbNavigationSystem * defsys);
66
67
68
69public:
72
73 SbBool texturesenabled;
74 float stereooffset;
75 SoInfo * dummynode;
76 SoSearchAction searchaction;
77 SoCamera * camera;
78 SoColorPacker colorpacker;
79 SbColor overlaycolor;
80
81 NbSceneManager::NavigationState navigationstate;
82 NbNavigationSystem * navigationsystem;
83
84 SoGetBoundingBoxAction * getbboxaction;
85 SoGetMatrixAction * getmatrixaction;
86
87 int depthbits;
89 float nearplanevalue;
90 SoNodeSensor * autoclipsensor;
91 static void update_clipping_planes(void * cosure, SoSensor * sensor);
92
93 void setClippingPlanes(void);
94 void getCameraCoordinateSystem(SbMatrix & matrix, SbMatrix & inverse);
95
96protected:
97 NbSceneManager * master;
98
99};
100
101#endif // NB_SCENEMANAGERP_H
102
Class for managing user-based viewer navigation.
Definition NbNavigationSystem.h:92
Extends the SoSceneManager class with more high-level viewer related functionality.
Definition NbSceneManager.h:44
RenderMode
Definition NbSceneManager.h:61
NavigationState
Definition NbSceneManager.h:96
StereoMode
Definition NbSceneManager.h:73
AutoClippingStrategy
Definition NbSceneManager.h:114