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);
95 m_ViewMatrix = transformation;
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]);
115 bool InitExtension();
120 GLUquadric *m_pQuadric;
123 bool m_bMatrixOnStack;
void SetProjectionMatrix(const CCalibration *pCalibration)
void DrawObject(const CFloatMatrix *pMatrix, const Transformation3d &transformation)
static const float blue[3]
bool InitByCalibration(const CCalibration *pCalibration, bool bActivateShading=true)
void DrawCylinder(const Vec3d &point1, const Vec3d &point2, float radius1, float radius2, const float color[3])
static void CalculateOpenGLProjectionMatrix(const Mat3d &K, int width, int height, float gnear, float gfar, float *m)
static const float green[3]
static const float yellow[3]
void SetViewMatrix(const Transformation3d &transformation)
Data structure for the representation of a matrix of values of the data type float.
void ActivateShading(bool bActivateShading)
void DrawPoints(Vec3dList &points, const float *pColor=0)
Data structure for the representation of a 3D vector.
bool GetImage(CByteImage *pDestinationImage)
Camera model parameters and functions for a single camera.
static const float red[3]
void DrawPoint(float x, float y, float z, const float *pColor=0)
bool Init(int width=640, int height=480, bool bActivateShading=true)
std::vector< Vec3d > Vec3dList
void DrawSphere(const Vec3d &point, float radius, const float *pColor=0)
Data structure for the representation of a 3x3 matrix.
Data structure for the representation of 8-bit grayscale images and 24-bit RGB (or HSV) color images ...
bool GetDepthMatrix(CFloatMatrix *pDestinationMatrix)
static void CalculateOpenGLProjectionMatrixDefaultPrincipalPoint(const Mat3d &K, int width, int height, float gnear, float gfar, float *m)
static void ConvertToOpenGLMatrix(const Transformation3d &transformation, float resultMatrix[16])