/usr/include/Inventor/Qt/viewers/SoQtViewer.h is in libsoqt-dev-common 1.6.0~e8310f-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 | #ifndef SOQT_VIEWER_H
#define SOQT_VIEWER_H
// src/Inventor/Qt/viewers/SoQtViewer.h. Generated from SoGuiViewer.h.in by configure.
/**************************************************************************\
* Copyright (c) Kongsberg Oil & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* Neither the name of the copyright holder nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\**************************************************************************/
/**************************************************************************\
*
* A WORD OF ADVICE
*
* It is fruitless to modify the contents of the SoQtViewer.h file
* because it is autogenerated by configure from the SoAnyViewer.h.in
* file which you will find in the src/Inventor/Qt/common/ directory.
* Do your modifications to that file instead.
*
\**************************************************************************/
// Include this first, as a workaround for building on top of SGI and
// TGS Inventor on some Linux distributions. (The bug is in SGI/TGS
// Inventor.)
#include <math.h>
#include <Inventor/SbTime.h>
#include <Inventor/SoType.h>
#include <Inventor/SbLinear.h>
#include <Inventor/Qt/SoQtRenderArea.h>
#ifndef SOQT_INTERNAL
#include <Inventor/events/SoKeyboardEvent.h>
#endif // SOQT_INTERNAL
class SoCallbackList;
class SoBaseColor;
class SoCamera;
class SoComplexity;
class SoDirectionalLight;
class SoDrawStyle;
class SoGetBoundingBoxAction;
class SoGroup;
class SoLightModel;
class SoMaterialBinding;
class SoNode;
class SoPolygonOffset;
class SoSensor;
class SoSeparator;
class SoSwitch;
class SoTimerSensor;
class SoQtViewer;
typedef void SoQtViewerCB(void * data, SoQtViewer * viewer);
typedef void SoQtViewerFPSCB(float fps, void * data, SoQtViewer * viewer);
typedef SbVec2f SoQtAutoClippingCB(void * data, const SbVec2f & nearfar);
// *************************************************************************
class SOQT_DLL_API SoQtViewer : public SoQtRenderArea {
SOQT_OBJECT_ABSTRACT_HEADER(SoQtViewer, SoQtRenderArea);
public:
enum Type {
BROWSER,
EDITOR
};
enum DrawStyle {
VIEW_AS_IS,
VIEW_HIDDEN_LINE,
VIEW_NO_TEXTURE,
VIEW_LOW_COMPLEXITY,
VIEW_LINE,
VIEW_POINT,
VIEW_BBOX,
VIEW_LOW_RES_LINE,
VIEW_LOW_RES_POINT,
VIEW_SAME_AS_STILL,
VIEW_WIREFRAME_OVERLAY
};
enum DrawType {
STILL = 0,
INTERACTIVE
};
enum BufferType {
BUFFER_SINGLE,
BUFFER_DOUBLE,
BUFFER_INTERACTIVE
};
enum AutoClippingStrategy {
VARIABLE_NEAR_PLANE,
CONSTANT_NEAR_PLANE
};
virtual void setCamera(SoCamera * camera);
SoCamera * getCamera(void) const;
virtual void setCameraType(SoType type);
SoType getCameraType(void) const;
virtual void toggleCameraType(void);
virtual void viewAll(void);
virtual void saveHomePosition(void);
virtual void resetToHomePosition(void);
virtual void setHeadlight(SbBool enable);
SbBool isHeadlight(void) const;
SoDirectionalLight * getHeadlight(void) const;
virtual void setDrawStyle(SoQtViewer::DrawType type, SoQtViewer::DrawStyle style);
SoQtViewer::DrawStyle getDrawStyle(const SoQtViewer::DrawType type) const;
virtual void setBufferingType(SoQtViewer::BufferType type);
SoQtViewer::BufferType getBufferingType(void) const;
virtual void setViewing(SbBool enable);
SbBool isViewing(void) const;
virtual void setCursorEnabled(SbBool enable);
SbBool isCursorEnabled(void) const;
void setAutoClipping(SbBool enable);
SbBool isAutoClipping(void) const;
void setAutoClippingStrategy(const AutoClippingStrategy strategy,
const float value = 0.6f,
SoQtAutoClippingCB * cb = NULL,
void * cbuserdata = NULL);
virtual void setStereoViewing(SbBool enable);
SbBool isStereoViewing(void) const;
virtual void setStereoOffset(const float dist);
float getStereoOffset(void) const;
enum StereoType {
STEREO_NONE, STEREO_ANAGLYPH, STEREO_QUADBUFFER,
STEREO_INTERLEAVED_ROWS, STEREO_INTERLEAVED_COLUMNS
};
SbBool setStereoType(SoQtViewer::StereoType s);
SoQtViewer::StereoType getStereoType(void) const;
void setAnaglyphStereoColorMasks(const SbBool left[3], const SbBool right[3]);
void getAnaglyphStereoColorMasks(SbBool left[3], SbBool right[3]);
void setDetailSeek(const SbBool enable);
SbBool isDetailSeek(void) const;
void setSeekTime(const float seconds);
float getSeekTime(void) const;
void addStartCallback(SoQtViewerCB * func, void * data = NULL);
void addFinishCallback(SoQtViewerCB * func, void * data = NULL);
void removeStartCallback(SoQtViewerCB * func, void * data = NULL);
void removeFinishCallback(SoQtViewerCB * func, void * data = NULL);
void setWireframeOverlayColor(const SbColor & color);
const SbColor & getWireframeOverlayColor(void) const;
virtual void setDoubleBuffer(const SbBool enable);
virtual void setSceneGraph(SoNode * root);
virtual SoNode * getSceneGraph(void);
protected:
SoQtViewer(QWidget * parent,
const char * name,
SbBool embed,
Type type,
SbBool build);
~SoQtViewer();
virtual void sizeChanged(const SbVec2s & size);
virtual void setSeekMode(SbBool enable);
SbBool isSeekMode(void) const;
SbBool seekToPoint(const SbVec2s screenpos);
void seekToPoint(const SbVec3f & scenepos);
virtual void computeSeekFinalOrientation(void);
virtual void actualRedraw(void);
virtual SbBool processSoEvent(const SoEvent * const event);
void interactiveCountInc(void);
void interactiveCountDec(void);
int getInteractiveCount(void) const;
void setSeekDistance(const float distance);
float getSeekDistance(void) const;
void setSeekValueAsPercentage(const SbBool on);
SbBool isSeekValuePercentage(void) const;
virtual void changeCameraValues(SoCamera * camera);
void addSuperimposition(SoNode * scene);
void removeSuperimposition(SoNode * scene);
void setSuperimpositionEnabled(SoNode * scene, const SbBool enable);
SbBool getSuperimpositionEnabled(SoNode * scene) const;
private:
class SoQtViewerP * pimpl;
friend class SoQtViewerP;
friend class SoQtPlaneViewer;
};
// *************************************************************************
#endif // ! SOQT_VIEWER_H
|