23 #ifndef DOXYGEN_NOTFOR_DEVEL
24 #include <tulip/OpenGlConfigManager.h>
25 #include <tulip/Color.h>
26 #include <tulip/Coord.h>
27 #include <tulip/Size.h>
28 #include <tulip/Matrix.h>
29 #include <tulip/BoundingBox.h>
32 typedef Matrix<float, 4> MatrixGL;
33 TLP_GL_SCOPE
void glTest(
const std::string &message = std::string(
"(no description)"));
34 TLP_GL_SCOPE
void setColor(
const Color &c);
35 TLP_GL_SCOPE
void setColor(GLfloat *);
36 TLP_GL_SCOPE
void setMaterial(
const Color &c);
37 TLP_GL_SCOPE
bool cameraIs3D();
42 TLP_GL_SCOPE Coord projectPoint(
const Coord &obj,
44 const Vector<int, 4> &viewport);
49 TLP_GL_SCOPE Coord unprojectPoint(
const Coord &obj,
51 const tlp::Vector<int, 4> &viewport);
52 TLP_GL_SCOPE GLfloat projectSize(
const BoundingBox& bb,
53 const MatrixGL &,
const MatrixGL &,
const Vector<int, 4> &viewport);
54 TLP_GL_SCOPE GLfloat projectSize(
const Coord& position,
const Size& size,
55 const MatrixGL &,
const MatrixGL &,
const Vector<int, 4> &viewport);
56 TLP_GL_SCOPE
float calculateAABBSize(
const BoundingBox& bb,
const Coord& eye,
const Matrix<float, 4>& transformMatrix,
const Vector<int, 4>& globalViewport,
const Vector<int, 4>& currentViewport);
57 TLP_GL_SCOPE
float calculate2DLod(
const BoundingBox& bb,
const Vector<int, 4>& globalViewport,
const Vector<int, 4>& currentViewport);
60 #endif //DOXYGEN_NOTFOR_DEVEL