GPU-Accelerated Coverage  0.1.0
Compute coverage tours for known environment with articulated objects on GPU
Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
gpu_coverage::PanoEvalRenderer Class Reference
Inheritance diagram for gpu_coverage::PanoEvalRenderer:
Inheritance graph
[legend]

Classes

struct  PanoEdge
 

Public Member Functions

 PanoEvalRenderer (const Scene *const scene, const bool renderToWindow, const bool renderToTexture, PanoRenderer *const panoRenderer, AbstractRenderer *const bellmanFordRenderer)
 
virtual void display ()
 Renders the scene. More...
 
const GLuint & getTexture () const
 Returns the OpenGL texture ID of the result texture. More...
 
const int & getTextureWidth () const
 Width of the result texture. More...
 
const int & getTextureHeight () const
 Height of the result texture. More...
 
const GLuint & getUtilityMap () const
 
const GLuint & getUtilityMapVisual () const
 
void setBenchmark ()
 
void addCamera (CameraPanorama *const cam)
 
void addCameraPair (CameraPanorama *const first, CameraPanorama *const second)
 
- Public Member Functions inherited from gpu_coverage::AbstractRenderer
 AbstractRenderer (const Scene *const scene, const std::string &name)
 Constructor. More...
 
virtual ~AbstractRenderer ()
 Destructor.
 
const bool & isReady () const
 Returns true if the renderer has been initialized correctly. More...
 
const std::string & getName () const
 Returns the name of the renderer for logging purposes. More...
 

Protected Types

enum  TextureRole {
  EVAL, SWAP1, SWAP2, GAIN1,
  GAIN2, UTILITY_MAP_1, UTILITY_MAP_2, UTILITY_MAP_VISUAL,
  COUNTER
}
 
typedef std::pair< PanoEdge, PanoEdgePanoEdgePair
 
typedef std::list< PanoEdgePair > PanoEdgePairs
 

Protected Member Functions

bool link (const GLuint program, const char *const name) const
 

Protected Attributes

const bool renderToWindow
 
const bool renderToTexture
 
bool benchmark
 
PanoRenderer *const panoRenderer
 
ProgramVisualizeIntTextureprogVisualizeIntTexture
 
ProgramTLEdge progTLEdge
 
ProgramTLStep progTLStep
 
ProgramCounterToFB progCounterToFB
 
ProgramPanoEval progPanoEval
 
ProgramUtility1 progUtility1
 
ProgramUtility2 progUtility2
 
ProgramShowTextureprogShowTexture
 
GLuint framebuffer
 
GLuint vao
 
GLuint vbo
 
GLuint textures [9]
 
GLuint counterBuffer
 
GLuint pbo [3]
 
const size_t numPbo
 
const size_t maxIterations
 
GLuint panoTexture
 
int panoWidth
 
int panoHeight
 
GLuint bellmanFordTexture
 
GLuint bellmanFordWidth
 
GLuint bellmanFordHeight
 
enum gpu_coverage::PanoEvalRenderer::TextureRole textureToVisualize
 
enum gpu_coverage::PanoEvalRenderer::TextureRole curUtilityMap
 
PanoEdgePairs panoEdgePairs
 
NodetargetNode
 
NodeprojectionPlaneNode
 
- Protected Attributes inherited from gpu_coverage::AbstractRenderer
const Scene *const scene
 Pointer to the scene to be rendered.
 
const std::string name
 Name of the renderer, see getName().
 
bool ready
 Set to true when renderer is ready, see isReady().
 

Member Function Documentation

virtual void gpu_coverage::PanoEvalRenderer::display ( )
virtual

Renders the scene.

This method does the main work of the renderer.

Implements gpu_coverage::AbstractRenderer.

const GLuint& gpu_coverage::PanoEvalRenderer::getTexture ( ) const
inlinevirtual

Returns the OpenGL texture ID of the result texture.

Returns
OpenGL texture ID.

Implements gpu_coverage::AbstractRenderer.

const int& gpu_coverage::PanoEvalRenderer::getTextureHeight ( ) const
inlinevirtual

Height of the result texture.

Returns
Height in pixels.

Implements gpu_coverage::AbstractRenderer.

const int& gpu_coverage::PanoEvalRenderer::getTextureWidth ( ) const
inlinevirtual

Width of the result texture.

Returns
Width in pixels.

Implements gpu_coverage::AbstractRenderer.


The documentation for this class was generated from the following file: