zMol
A viewer for molecular data using OpenGL and ambient occlusion
Public Member Functions
zmol::radii Class Reference

#include <radii.hpp>

List of all members.

Public Member Functions

 radii ()
float get_radius (std::string const &p_name) const
float get_covalent_radius (std::string const &p_name) const

Detailed Description

Utility class to get a radius for a given element name.


Constructor & Destructor Documentation

zmol::radii::radii ( )

Constructor. Initializes internal radius tables.


Member Function Documentation

float zmol::radii::get_covalent_radius ( std::string const &  p_name) const

Returns a covalent radius for the given element name.

Parameters:
p_nameElement name
Returns:
Associated covalent radius, or 1.0 if no such radius was found.
float zmol::radii::get_radius ( std::string const &  p_name) const

Returns a radius for the given element name.

Parameters:
p_nameElement name
Returns:
Associated radius, or 1.0 if no such radius was found.