C:/development/RenderTools/src/common/Util.h File Reference

#include "Types.h"

Go to the source code of this file.


Classes

struct  RenderTools::GLenumStruct
struct  RenderTools::GLbooleanStruct
struct  RenderTools::BooleanStruct
class  RenderTools::Rectangle
class  RenderTools::NAABB
class  RenderTools::AABB
struct  RenderTools::IntersectionMaskStruct

Namespaces

namespace  RenderTools
 Program is used for the matrix stack.

Typedefs

typedef Rectangle * RenderTools::RectanglePtr
typedef NAABB * RenderTools::NAABBPtr
typedef AABB * RenderTools::AABBPtr
typedef unsigned int RenderTools::IntersectionMask

Enumerations

enum  RenderTools::Intersection {
  RenderTools::UNDETERMINED = 0, RenderTools::DISJOINT = 1, RenderTools::PARALLEL = 2, RenderTools::INTERSECT = 4,
  RenderTools::COLLINEAR = 8, RenderTools::COINCIDENT = 16, RenderTools::OVERLAP = 32, RenderTools::TOUCH = 64,
  RenderTools::ADJOINT = 128, RenderTools::COPLANAR = 256
}

Functions

ostream & RenderTools::operator<< (ostream &s, const GLbooleanStruct &g)
istream & RenderTools::operator>> (istream &s, GLbooleanStruct &v)
ostream & RenderTools::operator<< (ostream &s, const BooleanStruct &g)
istream & RenderTools::operator>> (istream &s, BooleanStruct &v)
ostream & RenderTools::operator<< (ostream &s, const GLenumStruct &g)
EnumList & RenderTools::operator<< (EnumList &v, const GLenum &e)
template<class T >
const string RenderTools::getTypeName (const T &t, bool ofComponent=false)
void RenderTools::cmyk_rgb (const Vec4 &cmyk, Vec3 &rgb)
void RenderTools::rgb_cmyk (const Vec3 &rgb, Vec4 &cmyk)
void RenderTools::rgb_hsl (const Vec3 &rgb, Vec3 &hsl)
 Ken Fishkin, Pixar Inc., January 1989.
void RenderTools::hsl_rgb (const Vec3 &hsl, Vec3 &rgb)
template<typename T >
int RenderTools::findIndex (const vector< T > &v, string name)
template<typename T >
RenderTools::findPointer (const vector< T > &v, string name)
template<class T >
bool RenderTools::isInteger (const T &t)
template<class T >
bool RenderTools::isUnsigned (const T &t)
template<class T >
bool RenderTools::isReal (const T &t)
template<class T >
bool RenderTools::isBoolean (const T &t)
template<class T >
bool RenderTools::isMatrix (const T &t)
template<class T >
unsigned int RenderTools::getNumComponents (const T &t)
template<class T >
unsigned int RenderTools::getMatrixSize (const T &t)
template<class T >
bool RenderTools::isMultiComponent (const T &t)
EnumList RenderTools::getIntersectionMaskEnums (void)
ostream & RenderTools::operator<< (ostream &s, const IntersectionMaskStruct &v)
istream & RenderTools::operator>> (istream &s, IntersectionMaskStruct &v)
Vec3 RenderTools::closestPoint (int type, const Vec3 &size, const Mat4 &trans, const Vec3 &p)
Vec2 RenderTools::spherePointToCubeUV (const Vec3 &sphere, const int *plane)
bool RenderTools::pointOnPoint (const Vec2 &p1, const Vec2 &p2, float epsilon)
bool RenderTools::pointOnLine (const Vec2 &p1, const Vec2 &p2, const Vec2 &p, float epsilon)
bool RenderTools::pointOnLinesegment (const Vec2 &p1, const Vec2 &p2, const Vec2 &p, float epsilon)
float RenderTools::distanceToLine (const Vec2 &p1, const Vec2 &p2, const Vec2 &p)
float RenderTools::distanceToLinesegment (const Vec2 &p1, const Vec2 &p2, const Vec2 &p)
IntersectionMask RenderTools::intersect (const Vec2 &p1, const Vec2 &p2, const Vec2 &p3, const Vec2 &p4, Vec2 &poi, float epsilon)
IntersectionMask RenderTools::intersect (const Plane &p, const Mat4 &planeWorld, const Rendernode &node, const Mat4 &nodeWorld, Vec3List &results, float epsilon=0.00001f)
 the following intersection functions use GLenum
IntersectionMask RenderTools::intersect (const Plane &plane, const Mat4 &planeWorld, const Vec3 &worldP1, const Vec3 &worldP2, Vec3List &results, float epsilon)
bool RenderTools::convexHull (const Vec3List &points, const Vec3 &normal, Vec3List &results, vector< int > &indices)
bool RenderTools::convexHull (const Vec2List &points, Vec2List &results)
bool RenderTools::unique (const Vec3List &list, const Vec3 &p, float epsilon)
bool RenderTools::unique (const Vec2List &list, const Vec2 &p, float epsilon)
float RenderTools::getAngle (const Vec2List &list, unsigned int atIndex)
float RenderTools::rnd (float minimum, float maximum)
vector< string > RenderTools::split (const string &str, char delim)
const char * RenderTools::basename (const char *fullPath)
bool RenderTools::basename (string fullName, string &path, string &basename)
string RenderTools::findFile (string name, bool verbose)
void RenderTools::addSearchRoot (string dir)
void RenderTools::addSearchDir (string dir)
void RenderTools::erase (const string &subString, string &fromThis)
void RenderTools::replace (string &context, const string &from, const string &to)
GLint RenderTools::glGetTexParameteri (GLenum target, GLenum pname)
GLint RenderTools::glGetInteger (GLenum which)
GLvoid * RenderTools::glGetPointer (GLenum which)
GLuint RenderTools::glGetEnum (GLenum which)
GLfloat RenderTools::glGetFloat (GLenum which)
GLboolean RenderTools::glGetBoolean (GLenum which)
void RenderTools::getGLVersion (int *major, int *minor)
void RenderTools::getGLSLVersion (int *major, int *minor)
template<class T >
string RenderTools::toString (T t)
template<class T >
string RenderTools::toString (const T *t)
string RenderTools::toString (const string &t)
template<>
string RenderTools::toString (char t)
template<>
string RenderTools::toString (unsigned char t)
template<>
string RenderTools::toString (short t)
template<>
string RenderTools::toString (unsigned short t)
template<>
string RenderTools::toString (int t)
template<>
string RenderTools::toString (unsigned int t)
template<>
string RenderTools::toString (float t)
template<>
string RenderTools::toString (double t)
istream & RenderTools::operator>> (istream &s, PropertyContainerPtr v)
 TODO: implement me.
istream & RenderTools::operator>> (istream &s, NAABB &v)
istream & RenderTools::operator>> (istream &s, AABB &v)
template<typename T >
istream & RenderTools::operator>> (istream &s, vector< T > &v)
template<typename T >
istream & RenderTools::operator>> (istream &s, vector< T * > &v)
ostream & RenderTools::operator<< (ostream &s, const PropertyContainerPtr vc)
ostream & RenderTools::operator<< (ostream &s, const NAABB &vc)
ostream & RenderTools::operator<< (ostream &s, const AABB &vc)
template<typename T >
ostream & RenderTools::operator<< (ostream &s, const vector< T > &v)
template<typename T >
ostream & RenderTools::operator<< (ostream &s, const vector< T * > &v)
string RenderTools::trim (const string &src, string c=" \r\n\t")
const string RenderTools::cleanup (const string &src)
void RenderTools::split (const string fullname, string &className, string &subName)
template<class T >
string RenderTools::getGLTypeName ()
template<class T >
string RenderTools::getGLValue (T t)
template<>
string RenderTools::getGLValue (GLenum t)
template<>
string RenderTools::getGLValue (GLboolean t)
void RenderTools::drawAxes ()
void RenderTools::drawBox (GLfloat size, GLenum type)
void RenderTools::solidCube (GLfloat size)
void RenderTools::wireCube (GLfloat size)
void RenderTools::solidSphere (GLfloat radius, GLint slices, GLint stacks)
 stubbed if GLuQuadric is not defined
void RenderTools::wireSphere (GLfloat radius, GLint slices, GLint stacks)
void RenderTools::solidCone (GLfloat base, GLfloat height, GLint slices, GLint stacks)
void RenderTools::wireCone (GLfloat base, GLfloat height, GLint slices, GLint stacks)
void RenderTools::solidCylinder (GLfloat base, GLfloat top, GLfloat height, GLint slices, GLint stacks)
void RenderTools::wireCylinder (GLfloat base, GLfloat top, GLfloat height, GLint slices, GLint stacks)
istream & RenderTools::operator>> (istream &s, GLenumStruct &v)


Generated on Wed Jan 26 00:15:35 2011 for RenderTools by  doxygen 1.5.8