SoGtk  0.1.0
Coin3D GUI toolkit binding
All Classes Functions Variables Typedefs Enumerations Enumerator Modules Pages
SoGtkFlyViewer.h
1#ifndef SOGTK_FLYVIEWER_H
2#define SOGTK_FLYVIEWER_H
3
4//
5
6/**************************************************************************\
7 * Copyright (c) Kongsberg Oil & Gas Technologies AS
8 * All rights reserved.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions are
12 * met:
13 *
14 * Redistributions of source code must retain the above copyright notice,
15 * this list of conditions and the following disclaimer.
16 *
17 * Redistributions in binary form must reproduce the above copyright
18 * notice, this list of conditions and the following disclaimer in the
19 * documentation and/or other materials provided with the distribution.
20 *
21 * Neither the name of the copyright holder nor the names of its
22 * contributors may be used to endorse or promote products derived from
23 * this software without specific prior written permission.
24 *
25 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29 * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36\**************************************************************************/
37
38#include <Inventor/Gtk/viewers/SoGtkConstrainedViewer.h>
39
40// ************************************************************************
41
42class SOGTK_DLL_API SoGtkFlyViewer : public SoGtkConstrainedViewer {
43 SOGTK_OBJECT_HEADER(SoGtkFlyViewer, SoGtkConstrainedViewer);
44
45public:
46 SoGtkFlyViewer(GtkWidget* parent = NULL,
47 const char * name = NULL,
48 SbBool embed = TRUE,
49 SoGtkFullViewer::BuildFlag flag = BUILD_ALL,
50 SoGtkViewer::Type type = BROWSER);
52
53 virtual void setViewing(SbBool enable);
54 virtual void viewAll(void);
55 virtual void resetToHomePosition(void);
56 virtual void setCamera(SoCamera * camera);
57 virtual void setCursorEnabled(SbBool enable);
58 virtual void setCameraType(SoType type);
59
60protected:
61 SoGtkFlyViewer(GtkWidget* parent,
62 const char * const name,
63 SbBool embed,
66 SbBool build);
67
68 virtual const char * getDefaultWidgetName(void) const;
69 virtual const char * getDefaultTitle(void) const;
70 virtual const char * getDefaultIconTitle(void) const;
71
72 virtual SbBool processSoEvent(const SoEvent * const event);
73 virtual void setSeekMode(SbBool enable);
74 virtual void actualRedraw(void);
75
76 virtual void rightWheelMotion(float value);
77
78 virtual void afterRealizeHook(void);
79
80private:
81 class SoGtkFlyViewerP * pimpl;
82 friend class SoGtkFlyViewerP;
83};
84
85// ************************************************************************
86
87#endif // ! SOGTK_FLYVIEWER_H
The SoGtkConstrainedViewer class is the superclass for viewers with constrains on the viewpoint.
Definition SoGtkConstrainedViewer.h:42
virtual void resetToHomePosition(void)
Definition SoGtkConstrainedViewer.cpp:185
virtual void setCamera(SoCamera *newcam)
Definition SoGtkConstrainedViewer.cpp:165
The SoGtkFlyViewer class implements controls for moving the camera in a "flying" motion.
Definition SoGtkFlyViewer.h:42
virtual void rightWheelMotion(float)
Definition SoGtkFullViewer.cpp:633
BuildFlag
Definition SoGtkFullViewer.h:48
virtual SbBool processSoEvent(const SoEvent *const event)
Definition SoGtkFullViewer.cpp:725
virtual void setViewing(SbBool on)
Definition FullViewer.cpp:532
virtual const char * getDefaultTitle(void) const
Definition SoGtkRenderArea.cpp:2118
virtual const char * getDefaultWidgetName(void) const
Definition SoGtkRenderArea.cpp:2110
virtual void afterRealizeHook(void)
Definition SoGtkRenderArea.cpp:981
virtual const char * getDefaultIconTitle(void) const
Definition SoGtkRenderArea.cpp:2126
virtual void setCursorEnabled(SbBool enable)
Definition SoGtkViewer.cpp:2199
virtual void setSeekMode(SbBool enable)
Definition SoGtkViewer.cpp:2963
virtual void actualRedraw(void)
Definition SoGtkViewer.cpp:3272
Type
Definition SoGtkViewer.h:94
virtual void viewAll(void)
Definition SoGtkViewer.cpp:1885
virtual void setCameraType(SoType type)
Definition SoGtkViewer.cpp:1773