OCLSLAM  0.1.0
 Hosted by GitHub
Functions | Variables
glut_viewer.cpp File Reference

Defines the functions necessary for setting up the GLUT library. More...

#include <iostream>
#include <sstream>
#include <thread>
#include <mutex>
#include <ctime>
#include <glut_viewer.hpp>
#include <ocl_processing.hpp>
Include dependency graph for glut_viewer.cpp:

Functions

void drawGLScene ()
 Display callback for the window. More...
 
void idleGLScene ()
 Idle callback for the window. More...
 
void resizeGLScene (int width, int height)
 Reshape callback for the window. More...
 
std::string setFilename (const char *type)
 Creates a filename with a timestamp suffix. More...
 
void keyPressed (unsigned char key, int x, int y)
 Keyboard callback for the window. More...
 
void arrowPressed (int key, int x, int y)
 Arrow key callback for the window. More...
 
void mouseMoved (int x, int y)
 Mouse callback for the window. More...
 
void mouseButtonPressed (int button, int state, int x, int y)
 Mouse button callback for the window. More...
 
void initGL (int argc, char **argv)
 Initializes GLUT. More...
 

Variables

const int gl_win_width = 640
 
const int gl_win_height = 480
 
int glWinId
 
int mouseX = -1
 
int mouseY = -1
 
float dx = 0.f
 
float dy = 0.f
 
float angleX = 0.f
 
float angleY = 0.f
 
float zoom = 1.0f
 
GLuint glPC4DBuffer
 
GLuint glRGBABuffer
 
const int width = 640
 
const int height = 480
 
OCLSLAM< ICP::ICPStepConfigT::POWER_METHOD, ICP::ICPStepConfigW::WEIGHTED > * slam
 
std::mutex glMtx
 
std::mutex mapMtx
 

Detailed Description

Defines the functions necessary for setting up the GLUT library.

Author
Nick Lamprianidis
Version
0.1.0
Date
2015
Copyright (c) 2015 Nick Lamprianidis
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Function Documentation

void arrowPressed ( int  key,
int  x,
int  y 
)

Arrow key callback for the window.

void drawGLScene ( )

Display callback for the window.

void idleGLScene ( )

Idle callback for the window.

void initGL ( int  argc,
char **  argv 
)

Initializes GLUT.

void keyPressed ( unsigned char  key,
int  x,
int  y 
)

Keyboard callback for the window.

void mouseButtonPressed ( int  button,
int  state,
int  x,
int  y 
)

Mouse button callback for the window.

void mouseMoved ( int  x,
int  y 
)

Mouse callback for the window.

void resizeGLScene ( int  width,
int  height 
)

Reshape callback for the window.

std::string setFilename ( const char *  type)

Creates a filename with a timestamp suffix.

The timestamp has the following format YYYYMMDDHHMMSS.

Parameters
[in]typefile type.
Returns
A complete filename with the current timestamp.

Variable Documentation

float angleX = 0.f
float angleY = 0.f
float dx = 0.f
float dy = 0.f
const int gl_win_height = 480
const int gl_win_width = 640
std::mutex glMtx
GLuint glPC4DBuffer
GLuint glRGBABuffer
int glWinId
const int height = 480
std::mutex mapMtx
int mouseX = -1
int mouseY = -1
OCLSLAM<ICP::ICPStepConfigT::POWER_METHOD, ICP::ICPStepConfigW::WEIGHTED>* slam
const int width = 640
float zoom = 1.0f