gramods
|
A renderer that renders an OpenSceneGraph scenegraph. More...
#include <OsgRenderer.hh>
Classes | |
struct | Impl |
Public Member Functions | |
void | setFrameNumber (unsigned int n) |
Sets the current frame number. More... | |
void | render (const Camera &camera, const Eigen::Affine3f &Mm) override |
Calls the scenegraph root for rendering. 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 | setSceneData (osg::Node *node) |
Sets the scenegraph. More... | |
void | update (clock::time_point time, size_t frame) override |
Called to make the object up-to-date. 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... | |
![]() | |
Updateable (int priority=0) | |
Configures the Updateable properties to the specified priority. More... | |
Additional Inherited Members | |
![]() | |
typedef std::vector< std::shared_ptr< Node > > | list |
![]() | |
typedef std::chrono::steady_clock | clock |
![]() | |
static void | updateAll (clock::time_point t=clock::now(), std::optional< size_t > frame=std::nullopt) |
Updates all currently instanciated updateable objects. More... | |
![]() | |
static gramods::gmCore::OFactory::OFactoryInformation | _gm_ofi |
![]() | |
std::set< Eye > | eyes |
Eyes to render. More... | |
A renderer that renders an OpenSceneGraph scenegraph.
|
overridevirtual |
Extracts the currently optimal near and far plane distances.
Implements gramods::gmGraphics::Renderer.
|
overridevirtual |
Calls the scenegraph root for rendering.
Implements gramods::gmGraphics::Renderer.
void gramods::gmGraphics::OsgRenderer::setFrameNumber | ( | unsigned int | n | ) |
Sets the current frame number.
This is propagated to the OSG viewer to be used for example in animation updates. This is automatically incremented if not set.
void gramods::gmGraphics::OsgRenderer::setSceneData | ( | osg::Node * | node | ) |
Sets the scenegraph.
|
overridevirtual |
Called to make the object up-to-date.
Implements gramods::gmCore::Updateable.