49 inline Type SoQtAbs(Type Val) {
50 return (Val < 0) ? -Val : Val;
54 inline Type SoQtMin(Type a, Type b) {
55 return (b < a) ? b : a;
59 inline Type SoQtMax(Type a, Type b) {
60 return (b > a) ? b : a;
64 inline Type SoQtClamp(Type val, Type min, Type max) {
65 return SoQtMax(min, SoQtMin(max, val));
69 inline void SoQtSwap(Type & a, Type & b) {
70 Type t = a; a = b; b = t;
77 #if ! defined(SOQT_MAJOR_VERSION)
78 #define SOQT_MAJOR_VERSION 1
80 #if ! defined(SOQT_MINOR_VERSION)
81 #define SOQT_MINOR_VERSION 6
83 #if ! defined(SOQT_MICRO_VERSION)
84 #define SOQT_MICRO_VERSION 0
86 #if ! defined(SOQT_BETA_VERSION)
87 #define SOQT_BETA_VERSION a
89 #if ! defined(SOQT_VERSION)
90 #define SOQT_VERSION "1.6.0a"
97 # error Leave the internal SOQT_DLL_API define alone.
129 #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
130 # ifdef SOQT_INTERNAL
131 # ifdef SOQT_MAKE_DLL
132 # define SOQT_DLL_API __declspec(dllexport)
136 # define SOQT_DLL_API __declspec(dllimport)
138 # ifndef SOQT_NOT_DLL
139 # error Define either SOQT_DLL or SOQT_NOT_DLL as appropriate for your linkage! See Inventor/Qt/SoQtBasic.h for further instructions.
147 # define SOQT_DLL_API
150 #ifndef GUI_TOOLKIT_VERSION
151 #define GUI_TOOLKIT_VERSION qVersion()
154 #endif // ! SOQT_BASIC_H