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

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

#include <avogadro/rendering/geometryvisitor.h>

Inheritance diagram for GeometryVisitor:
Visitor

Public Member Functions

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

Detailed Description

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 )
virtual

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 positiion 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: