Class Avogadro::Rendering::GLRenderVisitor#

class Avogadro::Rendering::GLRenderVisitor : public Visitor#

Visitor that takes care of rendering the scene.

<avogadro/rendering/glrendervisitor.h>

This visitor will render elements in the scene.

Author

Marcus D. Hanwell

Unnamed Group

inline void setRenderPass(RenderPass pass)#

The current stage of a multipass rendering.

See also

Rendering::RenderPass

inline RenderPass renderPass() const#

The current stage of a multipass rendering.

See also

Rendering::RenderPass

Unnamed Group

inline void setTextRenderStrategy(TextRenderStrategy *trs)#

A TextRenderStrategy implementation used to render text for annotations. If nullptr, no text will be produced.

inline const TextRenderStrategy *textRenderStrategy() const#

A TextRenderStrategy implementation used to render text for annotations. If nullptr, no text will be produced.

Public Functions

explicit GLRenderVisitor(const Camera &camera = Camera(), const TextRenderStrategy *trs = nullptr)#
~GLRenderVisitor() override#
inline virtual void visit(Node&) override#

The overloaded visit functions, the base versions of which do nothing.

inline virtual void visit(GroupNode&) override#
inline virtual void visit(GeometryNode&) override#
virtual void visit(Drawable&) override#
virtual void visit(SphereGeometry&) override#
virtual void visit(AmbientOcclusionSphereGeometry&) override#
virtual void visit(CurveGeometry&) override#
virtual void visit(CylinderGeometry&) override#
virtual void visit(MeshGeometry&) override#
virtual void visit(TextLabel2D &geometry) override#
virtual void visit(TextLabel3D &geometry) override#
virtual void visit(LineStripGeometry &geometry) override#
inline void setCamera(const Camera &camera_)#
inline Camera camera() const#