AvogadroLibs  1.96.0
Public Member Functions | List of all members
GeometryVisitor Class Reference

Visitor that determines the geometry of the scene. More...

#include <geometryvisitor.h>

Inheritance diagram for GeometryVisitor:
Visitor

Public Member Functions

void visit (Node &) override
 
void visit (GroupNode &) override
 
void visit (GeometryNode &) override
 
void visit (Drawable &) override
 
void visit (SphereGeometry &) override
 
void visit (AmbientOcclusionSphereGeometry &) override
 
void visit (CurveGeometry &) override
 
void visit (CylinderGeometry &) override
 
void visit (MeshGeometry &) override
 
void visit (TextLabel2D &) override
 
void visit (TextLabel3D &) override
 
void visit (LineStripGeometry &) override
 
void clear ()
 
Vector3f center ()
 
float radius ()
 

Detailed Description

<avogadro/rendering/geometryvisitor.h>

Author
Marcus D. Hanwell

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

Member Function Documentation

◆ visit()

void visit ( Node )
overridevirtual

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

Reimplemented from Visitor.

◆ clear()

void clear ( )

Clear the state of the visitor.

◆ center()

Vector3f center ( )

Get the position of the center of the scene.

◆ radius()

float radius ( )

Get the radius of the scene.


The documentation for this class was generated from the following file: