|
gramods
|
A renderer that draws single textured sphere. More...
#include <SphereRenderer.hh>


Classes | |
| struct | Impl |
Public Member Functions | |
| void | render (const Camera &camera, const Eigen::Affine3f &Mm) override |
| Performs rendering of 3D objects in the scene. More... | |
| void | getNearFar (const Camera &camera, const Eigen::Affine3f &Mm, float &near, float &far) override |
| Extracts the currently optimal near and far plane distances. More... | |
| void | traverse (Visitor *visitor) override |
| Propagates the specified visitor. More... | |
| void | setRadius (float r) |
| Set the radius of the sphere. More... | |
| void | setTexture (std::shared_ptr< TextureInterface > tex) |
| Sets the Texture to apply on the sphere. More... | |
| void | setCoordinatesMapper (std::shared_ptr< CoordinatesMapper > mapper) |
| Sets the coordinates mapper that should be used to map the 2D texture onto the 3D sphere. More... | |
Public Member Functions inherited from gramods::gmGraphics::Renderer | |
| void | addEye (Eye e) |
| Add an eye to render to. More... | |
Public Member Functions inherited from gramods::gmGraphics::Node | |
| virtual std::vector< float > | getIntersections (const IntersectionLine &line) |
| Check and return intersections between the provided line and the shape represented by this node. More... | |
| virtual std::string | getDefaultKey () override |
| Returns the default key, in Configuration, for the Object. More... | |
Public Member Functions inherited from gramods::gmCore::Object | |
| Object () | |
| Initializes internal data. More... | |
| virtual | ~Object () |
| Cleaning up internal data. More... | |
| virtual void | initialize () |
| Called to initialize the Object. More... | |
| virtual void | accept (Visitor *visitor) |
| Calls the visitors apply method with this as argument. More... | |
| bool | isInitialized () |
| Returns true if the Object is initialized. More... | |
Static Public Attributes | |
| static gramods::gmCore::OFactory::OFactoryInformation | _gm_ofi |
Static Public Attributes inherited from gramods::gmGraphics::Renderer | |
| static gramods::gmCore::OFactory::OFactoryInformation | _gm_ofi |
Additional Inherited Members | |
Public Types inherited from gramods::gmGraphics::Node | |
| typedef std::vector< std::shared_ptr< Node > > | list |
Protected Attributes inherited from gramods::gmGraphics::Renderer | |
| std::set< Eye > | eyes |
| Eyes to render. More... | |
A renderer that draws single textured sphere.
Use this to map video and images into the 3D space. The mapping is defined by a CoordinatesMapper.
Typical usage:
|
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.
|
overridevirtual |
Performs rendering of 3D objects in the scene.
Implements gramods::gmGraphics::Renderer.
| void gramods::gmGraphics::SphereRenderer::setCoordinatesMapper | ( | std::shared_ptr< CoordinatesMapper > | mapper | ) |
Sets the coordinates mapper that should be used to map the 2D texture onto the 3D sphere.
| void gramods::gmGraphics::SphereRenderer::setRadius | ( | float | r | ) |
Set the radius of the sphere.
XML-attribute: radius
| void gramods::gmGraphics::SphereRenderer::setTexture | ( | std::shared_ptr< TextureInterface > | tex | ) |
|
overridevirtual |
Propagates the specified visitor.
Reimplemented from gramods::gmCore::Object.