2#ifndef GRAMODS_GRAPHICS_SPHERERENDERER
3#define GRAMODS_GRAPHICS_SPHERERENDERER
5#include <gmGraphics/Renderer.hh>
6#include <gmGraphics/TextureInterface.hh>
7#include <gmGraphics/CoordinatesMapper.hh>
9#include <gmCore/io_eigen.hh>
10#include <gmCore/OFactory.hh>
12BEGIN_NAMESPACE_GMGRAPHICS;
41 void render(
const Camera &camera,
const Eigen::Affine3f &Mm)
override;
49 void getNearFar(
const Camera &camera,
50 const Eigen::Affine3f &Mm,
59 void traverse(
Visitor *visitor)
override;
66 void setRadius(
float r);
73 void setTexture(std::shared_ptr<TextureInterface> tex);
79 void setCoordinatesMapper(std::shared_ptr<CoordinatesMapper> mapper);
86 std::unique_ptr<Impl> _impl;
90END_NAMESPACE_GMGRAPHICS;
The base of graphics Camera implementations.
Definition Camera.hh:19
The base of graphics Renderer implementations.
Definition Renderer.hh:17
A renderer that draws single textured sphere.
Definition SphereRenderer.hh:32
The visitor of a design pattern for automatic traversal.
Definition Object.hh:75
Definition SphereRenderer.cpp:22