OpenSceneGraph  3.5.1
Namespaces | Macros | Functions
BoundsChecking File Reference
#include <osg/Notify>

Namespaces

 osg
 The core osg library provides the basic scene graph classes such as Nodes, State and Drawables, and maths and general helper classes.
 

Macros

#define OSG_BOUNDSCHECKING   1
 

Functions

template<typename T >
void osg::clampGEQUAL (T &value, const T minValue, const char *valueName)
 If value is greater than or equal to minValue do nothing - legal value, Otherwise set value to minValue, and warn that valueName was clamped. More...
 
template<typename T >
void osg::clampLEQUAL (T &value, const T maxValue, const char *valueName)
 If value is less than or equal to maxValue do nothing - legal value, Otherwise set value to maxValue, and warn that valueName was clamped. More...
 
template<typename T >
void osg::clampBetweenRange (T &value, const T minValue, const T maxValue, const char *valueName)
 If value is between or equal to minValue and maxValue do nothing - legal value, Otherwise clamp value to specified range and warn that valueName was clamped. More...
 
template<typename A , typename T >
void osg::clampArrayElementGEQUAL (A &value, unsigned int i, const T minValue, const char *valueName)
 If value[i] is greater than or equal to minValue do nothing - legal value, Otherwise set value[i] to minValue, and warn that valueName[i] was clamped. More...
 
template<typename A , typename T >
void osg::clampArrayElementLEQUAL (A &value, unsigned int i, const T maxValue, const char *valueName)
 If value[i] is less than or equal to maxValue do nothing - legal value, Otherwise set value[i] to maxValue, and warn that valueName[i] was clamped. More...
 
template<typename A , typename T >
void osg::clampArrayElementBetweenRange (A &value, unsigned int i, const T minValue, const T maxValue, const char *valueName)
 If value[i] is between or equal to minValue and maxValue do nothing - legal value, Otherwise clamp value[i] to specified range and warn that valueName[i] was clamped. More...
 
template<typename A , typename T >
void osg::clampArrayElementsGEQUAL (A &value, unsigned int first, unsigned int last, const T minValue, const char *valueName)
 For each element of value[] in the range (first,last), if the element is greater than or equal to minValue do nothing - legal value, Otherwise clamp the element to minValue, and warn that valueName[i] was clamped. More...
 
template<typename A , typename T >
void osg::clampArrayElementsLEQUAL (A &value, unsigned int first, unsigned int last, const T maxValue, const char *valueName)
 For each element of value[] in the range (first,last), if the element is less than or equal to maxValue do nothing - legal value, Otherwise clamp the element to maxValue, and warn that valueName[i] was clamped. More...
 
template<typename A , typename T >
void osg::clampArrayElementsBetweenRange (A &value, unsigned int first, unsigned int last, const T minValue, const T maxValue, const char *valueName)
 For each element of value[] in the range (first,last), if the element is between or equal to minValue and maxValue do nothing - legal value, Otherwise clamp the element to the range and warn that valueName[i] was clamped. More...
 
template<typename A , typename T >
void osg::clampArray3GEQUAL (A &value, const T minValue, const char *valueName)
 For each element of the three-element array value[], if the element is greater than or equal to minValue do nothing - legal value, Otherwise clamp the element to minValue, and warn that valueName[i] was clamped. More...
 
template<typename A , typename T >
void osg::clampArray3LEQUAL (A &value, const T maxValue, const char *valueName)
 For each element of the three-element array value[], if the element is less than or equal to maxValue do nothing - legal value, Otherwise clamp the element to maxValue, and warn that valueName[i] was clamped. More...
 
template<typename A , typename T >
void osg::clampArray3BetweenRange (A &value, const T minValue, const T maxValue, const char *valueName)
 For each element of the three-element array value[], if the element is between or equal to minValue and maxValue do nothing - legal value, Otherwise clamp the element to the range and warn that valueName[i] was clamped. More...
 
template<typename A , typename T >
void osg::clampArray4GEQUAL (A &value, const T minValue, const char *valueName)
 For each element of the four-element array value[], if the element is greater than or equal to minValue do nothing - legal value, Otherwise clamp the element to minValue, and warn that valueName[i] was clamped. More...
 
template<typename A , typename T >
void osg::clampArray4LEQUAL (A &value, const T maxValue, const char *valueName)
 For each element of the four-element array value[], if the element is less than or equal to maxValue do nothing - legal value, Otherwise clamp the element to maxValue, and warn that valueName[i] was clamped. More...
 
template<typename A , typename T >
void osg::clampArray4BetweenRange (A &value, const T minValue, const T maxValue, const char *valueName)
 For each element of the four-element array value[], if the element is between or equal to minValue and maxValue do nothing - legal value, Otherwise clamp the element to the range and warn that valueName[i] was clamped. More...
 

Macro Definition Documentation

#define OSG_BOUNDSCHECKING   1

osg logo
Generated at Wed Nov 11 2015 22:14:21 for the OpenSceneGraph by doxygen 1.8.10.