44 #ifndef _OPENGL_VISUALIZER_SCENE_H_ 45 #define _OPENGL_VISUALIZER_SCENE_H_ 80 static const float red[3];
82 static const float blue[3];
87 bool Init(
int width = 640,
int height = 480,
bool bActivateShading =
true);
100 void DrawPoint(
float x,
float y,
float z,
const float *pColor = 0);
102 void DrawSphere(
const Vec3d &point,
float radius,
const float *pColor = 0);
103 void DrawCylinder(
const Vec3d &point1,
const Vec3d &point2,
float radius1,
float radius2,
const float color[3]);
bool GetImage(CByteImage *pDestinationImage)
void ActivateShading(bool bActivateShading)
bool GetDepthMatrix(CFloatMatrix *pDestinationMatrix)
static void ConvertToOpenGLMatrix(const Transformation3d &transformation, float resultMatrix[16])
bool InitByCalibration(const CCalibration *pCalibration, bool bActivateShading=true)
Data structure for the representation of a 3D vector.
Data structure for the representation of 8-bit grayscale images and 24-bit RGB (or HSV) color images ...
void DrawObject(const CFloatMatrix *pMatrix, const Transformation3d &transformation)
GLsizei const GLfloat * points
std::vector< Vec3d > Vec3dList
static const float yellow[3]
Data structure for the representation of a matrix of values of the data type float.
void DrawPoint(float x, float y, float z, const float *pColor=0)
void DrawPoints(Vec3dList &points, const float *pColor=0)
static const float red[3]
static void CalculateOpenGLProjectionMatrix(const Mat3d &K, int width, int height, float gnear, float gfar, float *m)
GLenum GLsizei GLsizei height
bool Init(int width=640, int height=480, bool bActivateShading=true)
void SetProjectionMatrix(const CCalibration *pCalibration)
Transformation3d m_ViewMatrix
void SetViewMatrix(const Transformation3d &transformation)
static void CalculateOpenGLProjectionMatrixDefaultPrincipalPoint(const Mat3d &K, int width, int height, float gnear, float gfar, float *m)
Data structure for the representation of a 3x3 matrix.
Camera model parameters and functions for a single camera.
void DrawCylinder(const Vec3d &point1, const Vec3d &point2, float radius1, float radius2, const float color[3])
void DrawSphere(const Vec3d &point, float radius, const float *pColor=0)