00001
00002
00003 #ifndef G3DOPERATORS_H
00004 #define G3DOPERATORS_H
00005
00006 #include <G3D/G3DAll.h>
00007
00008 namespace VRG3D {
00009
00010 Array<std::string> splitStringIntoArray(const std::string &in);
00011
00020 std::string decygifyPath(const std::string &in);
00021
00022
00028 std::string replaceEnvVars(const std::string &in);
00029
00030
00031 void growAABox(AABox &box, const Vector3 &point);
00032 void growAABox(AABox &box, const AABox &box2);
00033
00034 Color3 Color3FromUints(G3D::uint8 r, G3D::uint8 g, G3D::uint8 b);
00035
00036 unsigned int hashCode(const double d);
00037
00038
00039 std::ostream & operator<< ( std::ostream &os, const Vector2 &vec2);
00040 std::istream & operator>> ( std::istream &is, Vector2 &vec2);
00041
00042
00043 std::istream & operator>> ( std::istream &is, Vector3 &vec3);
00044
00045 std::ostream & operator<< ( std::ostream &os, const Matrix3 &m);
00046 std::istream & operator>> ( std::istream &is, Matrix3 &m);
00047
00048 std::ostream & operator<< ( std::ostream &os, const Matrix4 &m);
00049 std::istream & operator>> ( std::istream &is, Matrix4 &m);
00050
00051
00052
00053 std::istream & operator>> ( std::istream &is, CoordinateFrame &m);
00054
00055 std::ostream & operator<< ( std::ostream &os, const Color3 &c);
00056 std::istream & operator>> ( std::istream &is, Color3 &c);
00057
00058 std::ostream & operator<< ( std::ostream &os, const Color4 &c);
00059 std::istream & operator>> ( std::istream &is, Color4 &c);
00060
00061
00062
00063
00064 std::string matrix4ToString(Matrix4 m);
00065 std::string coordinateFrameToString(CoordinateFrame cf);
00066
00067 std::string intToString(int i);
00068 int stringToInt(const std::string &in);
00069
00070 std::string realToString(double r);
00071 double stringToReal(const std::string &in);
00072
00073
00074
00075 }
00076
00077 #endif