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

Public Member Functions

 CostMapRenderer (const Scene *const scene, const Node *const projectionPlane, const bool renderToWindow, const bool visual)
 
virtual void display ()
 Renders the scene. More...
 
const GLuint & getTexture () const
 Returns the OpenGL texture ID of the result texture. More...
 
const GLuint & getVisualTexture () const
 
const int & getTextureWidth () const
 Width of the result texture. More...
 
const int & getTextureHeight () const
 Height of the result texture. More...
 
const AbstractCameragetCamera () const
 
- 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 { SWAP1 = 0, SWAP2 = 1, OUTPUT = 2, VISUAL = 3 }
 

Protected Attributes

const bool renderToWindow
 
const bool renderVisual
 
AbstractCameracamera
 
NodecameraNode
 
NodefloorNode
 
NodefloorProjectionNode
 
NodeplaneNode
 
ProgramDistanceMapSeed progSeed
 
ProgramDistanceMapJFA progJFA
 
ProgramCostMap progCostMap
 
ProgramCostMapVisualprogCostMapVisual
 
ProgramShowTextureprogShowTexture
 
const int width
 
const int height
 
GLuint framebuffer
 
GLuint textures [4]
 
GLuint vao
 
GLuint vbo
 
- 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::CostMapRenderer::display ( )
virtual

Renders the scene.

This method does the main work of the renderer.

Implements gpu_coverage::AbstractRenderer.

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

Returns the OpenGL texture ID of the result texture.

Returns
OpenGL texture ID.

Implements gpu_coverage::AbstractRenderer.

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

Height of the result texture.

Returns
Height in pixels.

Implements gpu_coverage::AbstractRenderer.

const int& gpu_coverage::CostMapRenderer::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: