GPU-Accelerated Coverage  0.1.0
Compute coverage tours for known environment with articulated objects on GPU
Public Member Functions | Protected Attributes | List of all members
gpu_coverage::AbstractRenderer Class Referenceabstract

Abstract superclass for all renderers. More...

#include <AbstractRenderer.h>

Inheritance diagram for gpu_coverage::AbstractRenderer:
Inheritance graph
[legend]

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().
 

Detailed Description

Abstract superclass for all renderers.

Subclasses must implement the following methods:

Constructor & Destructor Documentation

gpu_coverage::AbstractRenderer::AbstractRenderer ( const Scene *const  scene,
const std::string &  name 
)

Constructor.

Parameters
[in]sceneScene to be rendered.
[in]nameHuman-readable name for this renderer, used for logging.

Member Function Documentation

virtual void gpu_coverage::AbstractRenderer::display ( )
pure virtual
const std::string& gpu_coverage::AbstractRenderer::getName ( ) const
inline

Returns the name of the renderer for logging purposes.

Returns
Name of the renderer.
virtual const GLuint& gpu_coverage::AbstractRenderer::getTexture ( ) const
pure virtual
virtual const int& gpu_coverage::AbstractRenderer::getTextureHeight ( ) const
pure virtual
virtual const int& gpu_coverage::AbstractRenderer::getTextureWidth ( ) const
pure virtual
const bool& gpu_coverage::AbstractRenderer::isReady ( ) const
inline

Returns true if the renderer has been initialized correctly.

Returns
True if renderer is ready.

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