gramods
|
A renderer that draws a set of cubes, for demonstration and testing purposes. More...
#include <CubeSceneRenderer.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 | setCubeSize (float d) |
Sets the size of each cube to be drawn. More... | |
void | setCubeSetSize (float d) |
Sets the size of the set of cubes. More... | |
void | setAnimate (bool on) |
Set animation on or off. More... | |
![]() | |
void | addEye (Eye e) |
Add an eye to render to. More... | |
![]() | |
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... | |
![]() | |
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... | |
virtual void | traverse (Visitor *visitor) |
Calls the child Object's accept method, if such exist. More... | |
bool | isInitialized () |
Returns true if the Object is initialized. More... | |
Static Public Attributes | |
static gramods::gmCore::OFactory::OFactoryInformation | _gm_ofi |
![]() | |
static gramods::gmCore::OFactory::OFactoryInformation | _gm_ofi |
Additional Inherited Members | |
![]() | |
typedef std::vector< std::shared_ptr< Node > > | list |
![]() | |
std::set< Eye > | eyes |
Eyes to render. More... | |
A renderer that draws a set of cubes, for demonstration and testing purposes.
|
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::CubeSceneRenderer::setAnimate | ( | bool | on | ) |
Set animation on or off.
XML-attribute: animate
void gramods::gmGraphics::CubeSceneRenderer::setCubeSetSize | ( | float | d | ) |
Sets the size of the set of cubes.
XML-attribute: cubeSetSize
void gramods::gmGraphics::CubeSceneRenderer::setCubeSize | ( | float | d | ) |
Sets the size of each cube to be drawn.
XML-attribute: cubeSize