H3DUtil Namespace Reference

H3DUtil namespace. More...


Namespaces

namespace  ArithmeticTypes
 DO NOT USE THIS NAMESPACE DIRECTLY.
namespace  Constants
 Namespace containing various useful constants.

Classes

class  AutoPtrVector
 This class is similar to the auto_ptr class in the vector elements are Node * or pointers to subclasses of Node. More...
class  AutoRef
 The AutoRef class is similar to the auto_ptr class, but it requires that the pointer to Node or a subclass of Node. More...
class  AutoRefVector
 This class is similar to the AutoRef class in the vector elements are Node * or pointers to subclasses of Node. More...
class  basic_debugbuf
 A string buffer class that stores different messages depending on internal parameters and sends this to an output stream. More...
class  basic_dostream
 Output stream used to print debug information. More...
struct  DynamicLibrary
 This struct provides a couple of static functions used for loading and unloading dynamic libraries at runtime. More...
class  DownhillSimplexMethod
 This algorithm tries to minimize a function and is called downhill simplex method. More...
class  FreeImageImage
 This Image class is an encapsulation of a FreeImage FIBITMAP *, providing all nesessary Image functions to use it in e.g. More...
class  Image
 Virtual base class for all images containing virtual functions that all Image classes must define. More...
struct  RGB
 Structure for RGB values. More...
struct  RGBA
 Structure for RGBA values. More...
struct  RawImageInfo
 Contains information needed by the loadRawImage function to correctly load the raw file. More...
class  PixelImage
 An Image which is defined by pixels. More...
class  RefCountedClass
 Base class for all classes that should be reference counted. More...
class  MutexLock
 Mutual exclusion lock class for synchronisation between threads. More...
class  ConditionLock
 The ConditionLock is a little more advanced version of MutexLock in that it can wait for an arbitrary action in the other thread. More...
class  ThreadBase
 The abstract base class for threads. More...
class  PeriodicThreadBase
 The abstract base class for threads that have a main loop and that allow you to add callback functions to be run in that loop. More...
class  HapticThreadBase
 The interface base class for all threads that are used for haptics devices. More...
class  SimpleThread
 The SimpleThread class creates a new thread to run a function. More...
class  PeriodicThread
 The PeriodicThread class is used to create new threads and provides an interface to add callback functions to be executed in the new thread that can be used by other threads. More...
class  HapticThread
 HapticThread is a thread class that should be used by haptics devices when creating threads. More...
struct  TimeStamp
 This struct stores time and contains routines to get system time. More...

Typedefs

typedef float H3DFloat
 The floating point type.
typedef double H3DDouble
 Used for floating point values when specified as high-precision in the X3D specification.
typedef int H3DInt32
 The 32 bit integer type.
typedef double H3DTime
 The type for time values.

Functions

bool isPowerOfTwo (unsigned int i)
 Determines if the given integer is a power of two or not.
unsigned int nextPowerOfTwo (unsigned int i)
 If i is a power of two, i is returned.
template<class F >
H3DAbs (F f)
 Returns the absolute value of f.
template<class F >
H3DSqrt (F f)
 Returns the square root of f.
template<class F >
H3DExp (F f)
 Returns the exponential function of f.
template<class F >
H3DLog (F f)
 Returns the natural logarithm of f.
template<class F >
H3DLog10 (F f)
 Returns the base 10 logarithm of f.
template<class F , class T >
H3DPow (F f, T t)
 Returns f raised to the power of t.
double H3DPow (int f, int t)
 Returns f raised to the power of t.
template<class A >
H3DMax (const A &a, const A &b)
 Returns the maximum value of a and b.
template<class A >
H3DMin (const A &a, const A &b)
 Returns the minimum value of a and b.
template<class F >
H3DCos (F d)
 Returns the cosine of d.
template<class F >
H3DCosh (F d)
 Returns the hyperbolic cosine of d.
template<class F >
H3DAcos (F d)
 Returns the arccosine of d.
template<class F >
H3DSin (F d)
 Returns the sine of d.
template<class F >
H3DSinh (F d)
 Returns the hyperbolic sine of d.
template<class F >
H3DAsin (F d)
 Returns the arcsine of d.
template<class F >
H3DTan (F d)
 Returns the tangent of d.
template<class F >
H3DTanh (F d)
 Returns the hyperbolic tangent of d.
template<class F >
H3DAtan (F d)
 Returns the arctangent of d in the range -pi/2 to pi/2 radians.
template<class F >
H3DAtan2 (F y, F x)
 Returns the arctangent of y/x in the range -pi to pi radians.
template<class F >
H3DFloor (F f)
 Returns the largest integer that is not greater than f.
template<class F >
H3DCeil (F f)
 Returns the smallest integer greater than or equal to f.
void initializeH3DUtil ()
 Initialize H3DUtil(only needed if using H3DUtil as a static library)?
void deinitializeH3DUtil ()
 Deinitialize H3DUtil(only needed if using H3DUtil as a static library)?
double H3DUTIL_API getH3DUtilVersion ()
 Will return the version of H3DUtil as a double on the form H3DUTIL_MAJOR_VERSION.H3DUTIL_MINOR_VERSION.
ostream & operator<< (ostream &os, const RGB &r)
 Function for printing a RGB to an ostream.
ostream & operator<< (ostream &os, const RGBA &r)
 Function for printing a Rotation to an ostream.
bool operator== (const RGB &r1, const RGB &r2)
 Test two RGB instances for equality.
bool operator== (const RGBA &r1, const RGBA &r2)
 Test two RGBA instances for equality.
bool operator!= (const RGB &r1, const RGB &r2)
 Test two RGB instances for inequality.
bool operator!= (const RGBA &r1, const RGBA &r2)
 Test two RGBA instances for inequality.
RGB operator* (const RGB &v, const float &f)
 Multiply a RGB with a float.
RGB operator* (const RGB &v, const double &d)
 Multiply a RGB with a double.
RGB operator* (const float &a, const RGB &b)
 Multiplication with float.
RGB operator* (const double &a, const RGB &b)
 Multiplication with double.
RGB operator+ (const RGB &v1, const RGB &v2)
 Addition between two RGB.
RGBA operator* (const RGBA &v, const float &f)
 Multiply a RGBA with a float.
RGBA operator* (const RGBA &v, const double &d)
 Multiply a RGBA with a double.
RGBA operator* (const float &a, const RGBA &b)
 Multiplication with float.
RGBA operator* (const double &a, const RGBA &b)
 Multiplication with double.
RGBA operator+ (const RGBA &v1, const RGBA &v2)
 Addition between two RGBA.
H3DUTIL_API ImageloadFreeImage (const string &url)
 Loads an image using FreeImage.
H3DUTIL_API ImageloadRawImage (const string &url, RawImageInfo &raw_image_info)
 Read the data from the file pointed to by the parameter url and creates and returns a PixelImage containing this data.


Detailed Description

H3DUtil namespace.


Typedef Documentation

typedef double H3DUtil::H3DDouble

Used for floating point values when specified as high-precision in the X3D specification.


Function Documentation

void H3DUtil::deinitializeH3DUtil (  ) 

Deinitialize H3DUtil(only needed if using H3DUtil as a static library)?

Deinitialize H3DUtil(only needed if using H3DUtil as a static library).


Generated on Fri Nov 7 10:23:44 2008 for H3DUtil by  doxygen 1.5.7