48 inline Type SoQtAbs(Type Val) {
49 return (Val < 0) ? -Val : Val;
53 inline Type SoQtMin(Type a, Type b) {
54 return (b < a) ? b : a;
58 inline Type SoQtMax(Type a, Type b) {
59 return (b > a) ? b : a;
63 inline Type SoQtClamp(Type val, Type min, Type max) {
64 return SoQtMax(min, SoQtMin(max, val));
68 inline void SoQtSwap(Type & a, Type & b) {
69 Type t = a; a = b; b = t;
76 #if ! defined(SOQT_MAJOR_VERSION) 77 #define SOQT_MAJOR_VERSION 1 79 #if ! defined(SOQT_MINOR_VERSION) 80 #define SOQT_MINOR_VERSION 6 82 #if ! defined(SOQT_MICRO_VERSION) 83 #define SOQT_MICRO_VERSION 0 85 #if ! defined(SOQT_BETA_VERSION) 86 #define SOQT_BETA_VERSION a 88 #if ! defined(SOQT_VERSION) 89 #define SOQT_VERSION "1.6.0a" 96 # error Leave the internal SOQT_DLL_API define alone. 128 #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) 129 # ifdef SOQT_INTERNAL 130 # ifdef SOQT_MAKE_DLL 131 # define SOQT_DLL_API __declspec(dllexport) 135 # define SOQT_DLL_API __declspec(dllimport) 137 # ifndef SOQT_NOT_DLL 138 # error Define either SOQT_DLL or SOQT_NOT_DLL as appropriate for your linkage! See Inventor/Qt/SoQtBasic.h for further instructions. 146 # define SOQT_DLL_API 149 #ifndef GUI_TOOLKIT_VERSION 150 #define GUI_TOOLKIT_VERSION "501" 153 #endif // ! SOQT_BASIC_H