GPU-Accelerated Coverage
0.1.0
Compute coverage tours for known environment with articulated objects on GPU
|
Abstract superclass for all renderers. More...
#include <AbstractRenderer.h>
Public Member Functions | |
AbstractRenderer (const Scene *const scene, const std::string &name) | |
Constructor. More... | |
virtual | ~AbstractRenderer () |
Destructor. | |
virtual void | display ()=0 |
Renders the scene. More... | |
virtual const GLuint & | getTexture () const =0 |
Returns the OpenGL texture ID of the result texture. More... | |
virtual const int & | getTextureWidth () const =0 |
Width of the result texture. More... | |
virtual const int & | getTextureHeight () const =0 |
Height of the result texture. More... | |
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 Attributes | |
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(). | |
Abstract superclass for all renderers.
Subclasses must implement the following methods:
gpu_coverage::AbstractRenderer::AbstractRenderer | ( | const Scene *const | scene, |
const std::string & | name | ||
) |
Constructor.
[in] | scene | Scene to be rendered. |
[in] | name | Human-readable name for this renderer, used for logging. |
|
pure virtual |
Renders the scene.
This method does the main work of the renderer.
Implemented in gpu_coverage::VisibilityRenderer, gpu_coverage::Renderer, gpu_coverage::PanoEvalRenderer, gpu_coverage::PanoRenderer, gpu_coverage::BellmanFordRenderer, gpu_coverage::CostMapRenderer, and gpu_coverage::BellmanFordXfbRenderer.
|
inline |
Returns the name of the renderer for logging purposes.
|
pure virtual |
Returns the OpenGL texture ID of the result texture.
Implemented in gpu_coverage::VisibilityRenderer, gpu_coverage::Renderer, gpu_coverage::PanoEvalRenderer, gpu_coverage::PanoRenderer, gpu_coverage::BellmanFordRenderer, gpu_coverage::CostMapRenderer, and gpu_coverage::BellmanFordXfbRenderer.
|
pure virtual |
Height of the result texture.
Implemented in gpu_coverage::VisibilityRenderer, gpu_coverage::Renderer, gpu_coverage::PanoRenderer, gpu_coverage::BellmanFordRenderer, gpu_coverage::CostMapRenderer, gpu_coverage::BellmanFordXfbRenderer, and gpu_coverage::PanoEvalRenderer.
|
pure virtual |
Width of the result texture.
Implemented in gpu_coverage::VisibilityRenderer, gpu_coverage::Renderer, gpu_coverage::PanoRenderer, gpu_coverage::BellmanFordRenderer, gpu_coverage::CostMapRenderer, gpu_coverage::BellmanFordXfbRenderer, and gpu_coverage::PanoEvalRenderer.
|
inline |
Returns true if the renderer has been initialized correctly.