⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ardriver.h

📁 this is software for visual SLAM
💻 H
字号:
// -*- c++ -*-// Copyright 2008 Isis Innovation Limited// ARDriver.h// This file declares the ARDriver class//// ARDriver provides basic graphics services for drawing augmented// graphics. It manages the OpenGL setup and the camera's radial// distortion so that real and distorted virtual graphics can be// properly blended.//#ifndef __AR_Driver_H#define __AR_Driver_H#include <TooN/se3.h>#include "ATANCamera.h"#include "GLWindow2.h"#include "OpenGL.h"#include <cvd/image.h>#include <cvd/rgb.h>#include <cvd/byte.h>#include "EyeGame.h"using namespace std;using namespace CVD;class ARDriver{ public:  ARDriver(const ATANCamera &cam, ImageRef irFrameSize, GLWindow2 &glw);  void Render(Image<Rgb<byte> > &imFrame, SE3 se3CamFromWorld);  void Reset();  void Init(); protected:  ATANCamera mCamera;  GLWindow2 &mGLWindow;  void DrawFadingGrid();  void MakeFrameBuffer();  void DrawFBBackGround();  void DrawDistortedFB();  void SetFrustum();    // Texture stuff:  GLuint mnFrameBuffer;  GLuint mnFrameBufferTex;  GLuint mnFrameTex;    int mnCounter;  ImageRef mirFBSize;  ImageRef mirFrameSize;  SE3 mse3;  bool mbInitialised;  // Eyeballs:  EyeGame mGame;};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -