Class Avogadro::Rendering::GeometryVisitor#

class Avogadro::Rendering::GeometryVisitor : public Visitor#

Visitor that determines the geometry of the scene.

<avogadro/rendering/geometryvisitor.h>

This visitor will attempt to determine the geometry of the scene, most notably the center and radius of the bounding sphere.

Author

Marcus D. Hanwell

Public Functions

GeometryVisitor()#
~GeometryVisitor() 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#
inline virtual void visit(CylinderGeometry&) override#
inline virtual void visit(MeshGeometry&) override#
inline virtual void visit(TextLabel2D&) override#
inline virtual void visit(TextLabel3D&) override#
virtual void visit(LineStripGeometry&) override#
void clear()#

Clear the state of the visitor.

Vector3f center()#

Get the position of the center of the scene.

float radius()#

Get the radius of the scene.