Class Avogadro::Rendering::VRMLVisitor#

class Avogadro::Rendering::VRMLVisitor : public Visitor#

Visitor that visits scene elements and creates a VRML input file.

This visitor will render elements in the scene to a text file that contains elements that can be rendered as VRML.

Public Functions

VRMLVisitor(const Camera &camera)#
~VRMLVisitor() override#
void begin()#
std::string end()#
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#
inline virtual void visit(CurveGeometry&) override#
virtual void visit(CylinderGeometry&) override#
virtual void visit(MeshGeometry&) override#
inline virtual void visit(TextLabel2D&) override#
inline virtual void visit(TextLabel3D&) override#
virtual void visit(LineStripGeometry &geometry) override#
inline void setCamera(const Camera &c)#
inline Camera camera() const#
inline void setBackgroundColor(const Vector3ub &c)#
inline void setAmbientColor(const Vector3ub &c)#
inline void setAspectRatio(float ratio)#