Namespaces | Defines | Typedefs | Functions | Variables
display.cpp File Reference
#include <iostream>
#include <sstream>
#include <map>
#include <boost/function.hpp>
#include <boost/foreach.hpp>
#include "platform.h"
#include "display.h"
#include "display_internal.h"
#include "simple_math.h"
Include dependency graph for display.cpp:

Go to the source code of this file.

Namespaces

namespace  pangolin
namespace  pangolin::process

Defines

#define foreach   BOOST_FOREACH
#define M(row, col)   m[col*4+row]

Typedefs

typedef
boost::ptr_unordered_map
< string, PangolinGl > 
pangolin::ContextMap

Functions

float pangolin::AspectAreaWithinTarget (double target, double test)
int pangolin::AttachAbs (int low, int high, Attach a)
void pangolin::BindToContext (std::string name)
 Give this OpenGL context a name or switch contexts This is required to initialise Pangolin for use with an externally defined OpenGL context. You needn't call it if you have used CreateGlutWindowAndBind() to create a GLUT window.
View & pangolin::CreateDisplay ()
 Create unnamed display managed by pangolin (automatically deleted)
View & pangolin::Display (const std::string &name)
 Create or retrieve named display managed by pangolin (automatically deleted)
View & pangolin::DisplayBase ()
 Retrieve 'base' display, corresponding to entire window.
void pangolin::DrawTextureToViewport (GLuint texid)
View * pangolin::FindChild (View &parent, int x, int y)
bool pangolin::HadInput ()
 Returns true if user has interacted with the window since this was last called.
bool pangolin::HasResized ()
 Returns true if user has resized the window.
OpenGlMatrix pangolin::IdentityMatrix ()
OpenGlMatrixSpec pangolin::IdentityMatrix (OpenGlStack type)
void pangolin::process::Keyboard (unsigned char key, int x, int y)
 Tell pangolin to process input to drive display You will need to call this manually if you haven't let Pangolin register callbacks from your windowing system.
void pangolin::process::KeyboardUp (unsigned char key, int x, int y)
OpenGlMatrix pangolin::ModelViewLookAt (double ex, double ey, double ez, double lx, double ly, double lz, double ux, double uy, double uz)
OpenGlMatrix pangolin::ModelViewLookAt (double ex, double ey, double ez, double lx, double ly, double lz, AxisDirection up)
void pangolin::process::Mouse (int button_raw, int state, int x, int y)
void pangolin::process::MouseMotion (int x, int y)
OpenGlMatrixSpec pangolin::negIdentityMatrix (OpenGlStack type)
void pangolin::process::PassiveMouseMotion (int x, int y)
OpenGlMatrixSpec pangolin::ProjectionMatrix (int w, int h, double fu, double fv, double u0, double v0, double zNear, double zFar)
 Use OpenGl's default frame RUB_BottomLeft.
OpenGlMatrixSpec pangolin::ProjectionMatrixOrthographic (double t, double b, double l, double r, double n, double f)
OpenGlMatrixSpec pangolin::ProjectionMatrixRDF_BottomLeft (int w, int h, double fu, double fv, double u0, double v0, double zNear, double zFar)
OpenGlMatrixSpec pangolin::ProjectionMatrixRDF_TopLeft (int w, int h, double fu, double fv, double u0, double v0, double zNear, double zFar)
OpenGlMatrixSpec pangolin::ProjectionMatrixRUB_BottomLeft (int w, int h, double fu, double fv, double u0, double v0, double zNear, double zFar)
void pangolin::Quit ()
 Request that the program exit.
void pangolin::RegisterKeyPressCallback (int key, boost::function< void(void)> func)
 Request to be notified via functor when key is pressed. Functor may take one parameter which will equal the key pressed.
void pangolin::RenderViews ()
 Renders any views with default draw methods.
void pangolin::process::Resize (int width, int height)
 Tell pangolin base window size has changed You will need to call this manually if you haven't let Pangolin register callbacks from your windowing system.
void pangolin::process::Scroll (float x, float y)
bool pangolin::ShouldQuit ()
 Returns true if user has requested to close OpenGL window.
void pangolin::process::SpecialFunc (int key, int x, int y)
void pangolin::process::SpecialFuncUp (int key, int x, int y)
void pangolin::process::Zoom (float m)

Variables

static const GLdouble pangolin::AxisDirectionVector [][3]
__thread PangolinGl * pangolin::context = 0
ContextMap pangolin::contexts
unsigned int pangolin::process::last_x
unsigned int pangolin::process::last_y
const int pangolin::panal_v_margin = 6

Define Documentation

#define foreach   BOOST_FOREACH

Definition at line 34 of file display.cpp.

#define M (   row,
  col 
)    m[col*4+row]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


pangolin_wrapper
Author(s): Todor Stoyanov
autogenerated on Wed Feb 13 2013 14:03:25