A renderer that renders a texture flat (2D) filling the view, thereby ignoring camera and view specific projection.
More...
#include <TextureRenderer.hh>
|
| void | render (const Camera &camera, const Eigen::Affine3f &Mm) override |
| | Performs rendering of 3D objects in the scene.
|
| |
| void | traverse (Visitor *visitor) override |
| | Propagates the specified visitor.
|
| |
| void | getNearFar (const Camera &camera, const Eigen::Affine3f &Mm, float &near, float &far) override |
| | Extracts the currently optimal near and far plane distances.
|
| |
| void | setTexture (std::shared_ptr< TextureInterface > tex) |
| | Sets the Texture that should be called upon calls to the render method.
|
| |
| void | setFlip (bool on) |
| | Flip the image up-down for upside-down textures.
|
| |
| void | addEye (Eye e) |
| | Add an eye to render to.
|
| |
| virtual std::vector< float > | getIntersections (const IntersectionLine &line) |
| | Check and return intersections between the provided line and the shape represented by this node.
|
| |
| virtual std::string | getDefaultKey () override |
| | Returns the default key, in Configuration, for the Object.
|
| |
| | Object () |
| | Initializes internal data.
|
| |
| virtual | ~Object () |
| | Cleaning up internal data.
|
| |
| virtual void | initialize () |
| | Called to initialize the Object.
|
| |
| virtual void | accept (Visitor *visitor) |
| | Calls the visitors apply method with this as argument.
|
| |
| bool | isInitialized () |
| | Returns true if the Object is initialized.
|
| |
|
|
typedef std::vector< std::shared_ptr< Node > > | list |
| |
| std::set< Eye > | eyes |
| | Eyes to render.
|
| |
A renderer that renders a texture flat (2D) filling the view, thereby ignoring camera and view specific projection.
◆ getNearFar()
| void gramods::gmGraphics::TextureRenderer::getNearFar |
( |
const Camera & |
camera, |
|
|
const Eigen::Affine3f & |
Mm, |
|
|
float & |
near, |
|
|
float & |
far |
|
) |
| |
|
overridevirtual |
Extracts the currently optimal near and far plane distances.
This is typically used by a View if there are multiple renderers that need to be rendered with the same near and far planes for correct depth testing.
Implements gramods::gmGraphics::Renderer.
◆ render()
| void gramods::gmGraphics::TextureRenderer::render |
( |
const Camera & |
camera, |
|
|
const Eigen::Affine3f & |
Mm |
|
) |
| |
|
overridevirtual |
◆ setFlip()
| void gramods::gmGraphics::TextureRenderer::setFlip |
( |
bool |
on | ) |
|
Flip the image up-down for upside-down textures.
XML-attribute: flip
◆ setTexture()
Sets the Texture that should be called upon calls to the render method.
XML-attribute: texture
◆ traverse()
| void gramods::gmGraphics::TextureRenderer::traverse |
( |
Visitor * |
visitor | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files:
- /home/karlu/private/program/gramods/modules/gmGraphics/include/gmGraphics/TextureRenderer.hh
- /home/karlu/private/program/gramods/modules/gmGraphics/src/TextureRenderer.cpp