Asy-Atoms
An asymptote package for rendering atomic structures
Public Member Functions | Data Fields | Static Public Attributes
Atom Struct Reference

Structure with the atomic information needed to render an atom. More...

Collaboration diagram for Atom:
Collaboration graph
[legend]

Public Member Functions

triple getCartesian ()
 
Atom setBasis (Basis b)
 
Basis getBasis ()
 
void operator init (string element, triple coordinates, Basis basis=CARTESIAN)
 Constructor of the Basis structure. More...
 
Atom setColor (pen c)
 
Atom setCoordinates (triple c)
 
triple getCoordinates ()
 
real getRadius ()
 
Atom scaleRadius (real r)
 
Atom setLabel (Label l)
 
Atom setLabelPosition (triple pos)
 
Atom resetLabelPosition ()
 
Atom setRadius (real r)
 
Atom draw (bool draw_label=false, real radius_scale=1.0, light l=currentlight)
 Draw the atom. More...
 

Data Fields

int id
 
triple coordinates
 
real radius
 
string element
 
Label label_name
 
triple label_position
 
pen color
 
Basis basis
 
AtomInfo info
 

Static Public Attributes

static Atom[] ALL_ATOMS_LIST
 

Detailed Description

Structure with the atomic information needed to render an atom.

Member Function Documentation

Atom Atom::draw ( bool  draw_label = false,
real  radius_scale = 1.0,
light  l = currentlight 
)
inline

Draw the atom.

Old versions of asymptote are not able to print labels.

Parameters
draw_labelWheter or not to draw the label
radius_scaleScaling factor for the radius
lLight to be used in the scene for the Atom
void Atom::operator init ( string  element,
triple  coordinates,
Basis  basis = CARTESIAN 
)
inline

Constructor of the Basis structure.

Parameters
elementSymbol for the Atom (e.g. C, N .. )
coordinateCoordinate in respect to the basis "basis"
basisBasis for the coordinates of the atom

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