/usr/include/Inventor/Qt/SoQtBasic.h is in libsoqt-dev-common 1.5.0-2.
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 | /* src/Inventor/Qt/SoQtBasic.h. Generated from - by configure. */
#ifndef SOQT_BASIC_H
#define SOQT_BASIC_H
// NB: this is not a pure configure-input file, it's also a config header...
/**************************************************************************\
*
* This file is part of the Coin 3D visualization library.
* Copyright (C) by Kongsberg Oil & Gas Technologies.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* ("GPL") version 2 as published by the Free Software Foundation.
* See the file LICENSE.GPL at the root directory of this source
* distribution for additional information about the GNU GPL.
*
* For using Coin with software that can not be combined with the GNU
* GPL, and for taking advantage of the additional benefits of our
* support services, please contact Kongsberg Oil & Gas Technologies
* about acquiring a Coin Professional Edition License.
*
* See http://www.coin3d.org/ for more information.
*
* Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.
* http://www.sim.no/ sales@sim.no coin-support@coin3d.org
*
\**************************************************************************/
// *************************************************************************
/* Some useful inline template functions:
* SoQtMin(Val1, Val2) - returns minimum value
* SoQtMax(Val1, Val2) - returns maximum value
* SoQtClamp(Val, Min, Max) - returns clamped value
* SoQtSwap(Val1, Val2) - swaps the two values (no return value)
*/
template <class Type>
inline Type SoQtAbs(Type Val) {
return (Val < 0) ? -Val : Val;
}
template <class Type>
inline Type SoQtMin(Type a, Type b) {
return (b < a) ? b : a;
}
template <class Type>
inline Type SoQtMax(Type a, Type b) {
return (b > a) ? b : a;
}
template <class Type>
inline Type SoQtClamp(Type val, Type min, Type max) {
return SoQtMax(min, SoQtMin(max, val));
}
template <class Type>
inline void SoQtSwap(Type & a, Type & b) {
Type t = a; a = b; b = t;
}
// *************************************************************************
#define __COIN_SOQT__
#if ! defined(SOQT_MAJOR_VERSION)
#define SOQT_MAJOR_VERSION 1
#endif /* ! SOQT_MAJOR_VERSION */
#if ! defined(SOQT_MINOR_VERSION)
#define SOQT_MINOR_VERSION 5
#endif /* ! SOQT_MINOR_VERSION */
#if ! defined(SOQT_MICRO_VERSION)
#define SOQT_MICRO_VERSION 0
#endif /* ! SOQT_MICRO_VERSION */
#if ! defined(SOQT_BETA_VERSION)
/* #undef SOQT_BETA_VERSION */
#endif /* ! SOQT_BETA_VERSION */
#if ! defined(SOQT_VERSION)
#define SOQT_VERSION "1.5.0"
#endif /* ! SOQT_VERSION */
// *************************************************************************
/* Precaution to avoid an error easily made by the application programmer. */
#ifdef SOQT_DLL_API
# error Leave the internal SOQT_DLL_API define alone.
#endif /* SOQT_DLL_API */
/*
On MSWindows platforms, one of these defines must always be set when
building application programs:
- "SOQT_DLL", when the application programmer is using the
library in the form of a dynamic link library (DLL)
- "SOQT_NOT_DLL", when the application programmer is using the
library in the form of a static object library (LIB)
Note that either SOQT_DLL or SOQT_NOT_DLL _must_ be defined by
the application programmer on MSWindows platforms, or else the
#error statement will hit. Set up one or the other of these two
defines in your compiler environment according to how the library
was built -- as a DLL (use "SOQT_DLL") or as a LIB (use
"SOQT_NOT_DLL").
(Setting up defines for the compiler is typically done by either
adding something like "/DSOQT_DLL" to the compiler's argument
line (for command-line build processes), or by adding the define to
the list of preprocessor symbols in your IDE GUI (in the MSVC IDE,
this is done from the "Project"->"Settings" menu, choose the "C/C++"
tab, then "Preprocessor" from the dropdown box and add the
appropriate define)).
It is extremely important that the application programmer uses the
correct define, as using "SOQT_NOT_DLL" when "SOQT_DLL" is
correct is likely to cause mysterious crashes.
*/
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
# ifdef SOQT_INTERNAL
# ifdef SOQT_MAKE_DLL
# define SOQT_DLL_API __declspec(dllexport)
# endif /* SOQT_MAKE_DLL */
# else /* !SOQT_INTERNAL */
# ifdef SOQT_DLL
# define SOQT_DLL_API __declspec(dllimport)
# else /* !SOQT_DLL */
# ifndef SOQT_NOT_DLL
# error Define either SOQT_DLL or SOQT_NOT_DLL as appropriate for your linkage! See Inventor/Qt/SoQtBasic.h for further instructions.
# endif /* SOQT_NOT_DLL */
# endif /* !SOQT_DLL */
# endif /* !SOQT_MAKE_DLL */
#endif /* Microsoft Windows */
/* Empty define to avoid errors when _not_ compiling an MSWindows DLL. */
#ifndef SOQT_DLL_API
# define SOQT_DLL_API
#endif /* !SOQT_DLL_API */
#ifndef GUI_TOOLKIT_VERSION
#define GUI_TOOLKIT_VERSION "474"
#endif /* GUI_TOOLKIT_VERSION */
#endif // ! SOQT_BASIC_H
|