#include <OpenGLVisualizer.h>
Public Member Functions | |
void | ActivateShading (bool bActivateShading) |
void | Clear () |
COpenGLVisualizer () | |
void | DrawCylinder (const Vec3d &point1, const Vec3d &point2, float radius1, float radius2, const float color[3]) |
void | DrawObject (const CFloatMatrix *pMatrix, const Transformation3d &transformation) |
void | DrawPoint (float x, float y, float z, const float *pColor=0) |
void | DrawPoints (Vec3dList &points, const float *pColor=0) |
void | DrawSphere (const Vec3d &point, float radius, const float *pColor=0) |
bool | GetDepthMatrix (CFloatMatrix *pDestinationMatrix) |
bool | GetImage (CByteImage *pDestinationImage) |
bool | Init (int width=640, int height=480, bool bActivateShading=true) |
bool | InitByCalibration (const CCalibration *pCalibration, bool bActivateShading=true) |
void | SetProjectionMatrix (const CCalibration *pCalibration) |
void | SetViewMatrix (const Transformation3d &transformation) |
~COpenGLVisualizer () | |
Static Public Member Functions | |
static void | CalculateOpenGLProjectionMatrix (const Mat3d &K, int width, int height, float gnear, float gfar, float *m) |
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]) |
Static Public Attributes | |
static const float | blue [3] = { 0, 0, 0.75f } |
static const float | green [3] = { 0, 0.75f, 0 } |
static const float | red [3] = { 0.75f, 0, 0 } |
static const float | yellow [3] = { 0.65f, 0.5f, 0.49f } |
Private Member Functions | |
bool | InitExtension () |
void | SetProjectionMatrix (int nWidth, int nHeight) |
Private Attributes | |
int | height |
bool | m_bMatrixOnStack |
GLUquadric * | m_pQuadric |
Transformation3d | m_ViewMatrix |
int | width |
Definition at line 70 of file OpenGLVisualizer.h.
Definition at line 102 of file OpenGLVisualizer.cpp.
Definition at line 115 of file OpenGLVisualizer.cpp.
void COpenGLVisualizer::ActivateShading | ( | bool | bActivateShading | ) |
Definition at line 194 of file OpenGLVisualizer.cpp.
void COpenGLVisualizer::CalculateOpenGLProjectionMatrix | ( | const Mat3d & | K, |
int | width, | ||
int | height, | ||
float | gnear, | ||
float | gfar, | ||
float * | m | ||
) | [static] |
Definition at line 461 of file OpenGLVisualizer.cpp.
void COpenGLVisualizer::CalculateOpenGLProjectionMatrixDefaultPrincipalPoint | ( | const Mat3d & | K, |
int | width, | ||
int | height, | ||
float | gnear, | ||
float | gfar, | ||
float * | m | ||
) | [static] |
Definition at line 482 of file OpenGLVisualizer.cpp.
Definition at line 321 of file OpenGLVisualizer.cpp.
void COpenGLVisualizer::ConvertToOpenGLMatrix | ( | const Transformation3d & | transformation, |
float | resultMatrix[16] | ||
) | [static] |
Definition at line 414 of file OpenGLVisualizer.cpp.
void COpenGLVisualizer::DrawCylinder | ( | const Vec3d & | point1, |
const Vec3d & | point2, | ||
float | radius1, | ||
float | radius2, | ||
const float | color[3] | ||
) |
Definition at line 391 of file OpenGLVisualizer.cpp.
void COpenGLVisualizer::DrawObject | ( | const CFloatMatrix * | pMatrix, |
const Transformation3d & | transformation | ||
) |
Definition at line 434 of file OpenGLVisualizer.cpp.
void COpenGLVisualizer::DrawPoint | ( | float | x, |
float | y, | ||
float | z, | ||
const float * | pColor = 0 |
||
) |
Definition at line 339 of file OpenGLVisualizer.cpp.
void COpenGLVisualizer::DrawPoints | ( | Vec3dList & | points, |
const float * | pColor = 0 |
||
) |
Definition at line 353 of file OpenGLVisualizer.cpp.
void COpenGLVisualizer::DrawSphere | ( | const Vec3d & | point, |
float | radius, | ||
const float * | pColor = 0 |
||
) |
Definition at line 380 of file OpenGLVisualizer.cpp.
bool COpenGLVisualizer::GetDepthMatrix | ( | CFloatMatrix * | pDestinationMatrix | ) |
Definition at line 308 of file OpenGLVisualizer.cpp.
bool COpenGLVisualizer::GetImage | ( | CByteImage * | pDestinationImage | ) |
Definition at line 269 of file OpenGLVisualizer.cpp.
bool COpenGLVisualizer::Init | ( | int | width = 640 , |
int | height = 480 , |
||
bool | bActivateShading = true |
||
) |
Definition at line 219 of file OpenGLVisualizer.cpp.
bool COpenGLVisualizer::InitByCalibration | ( | const CCalibration * | pCalibration, |
bool | bActivateShading = true |
||
) |
Definition at line 244 of file OpenGLVisualizer.cpp.
bool COpenGLVisualizer::InitExtension | ( | ) | [private] |
Definition at line 503 of file OpenGLVisualizer.cpp.
void COpenGLVisualizer::SetProjectionMatrix | ( | const CCalibration * | pCalibration | ) |
Definition at line 126 of file OpenGLVisualizer.cpp.
void COpenGLVisualizer::SetProjectionMatrix | ( | int | nWidth, |
int | nHeight | ||
) | [private] |
Definition at line 169 of file OpenGLVisualizer.cpp.
void COpenGLVisualizer::SetViewMatrix | ( | const Transformation3d & | transformation | ) | [inline] |
Definition at line 93 of file OpenGLVisualizer.h.
const float COpenGLVisualizer::blue = { 0, 0, 0.75f } [static] |
Definition at line 82 of file OpenGLVisualizer.h.
const float COpenGLVisualizer::green = { 0, 0.75f, 0 } [static] |
Definition at line 81 of file OpenGLVisualizer.h.
int COpenGLVisualizer::height [private] |
Definition at line 118 of file OpenGLVisualizer.h.
bool COpenGLVisualizer::m_bMatrixOnStack [private] |
Definition at line 123 of file OpenGLVisualizer.h.
GLUquadric* COpenGLVisualizer::m_pQuadric [private] |
Definition at line 120 of file OpenGLVisualizer.h.
Definition at line 124 of file OpenGLVisualizer.h.
const float COpenGLVisualizer::red = { 0.75f, 0, 0 } [static] |
Definition at line 80 of file OpenGLVisualizer.h.
int COpenGLVisualizer::width [private] |
Definition at line 118 of file OpenGLVisualizer.h.
const float COpenGLVisualizer::yellow = { 0.65f, 0.5f, 0.49f } [static] |
Definition at line 83 of file OpenGLVisualizer.h.