Structure with the atomic information needed to render an atom.
More...
|
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...
|
|
|
int | id |
|
triple | coordinates |
|
real | radius |
|
string | element |
|
Label | label_name |
|
triple | label_position |
|
pen | color |
|
Basis | basis |
|
AtomInfo | info |
|
|
static Atom[] | ALL_ATOMS_LIST |
|
Structure with the atomic information needed to render an atom.
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_label | Wheter or not to draw the label |
radius_scale | Scaling factor for the radius |
l | Light 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
-
element | Symbol for the Atom (e.g. C, N .. ) |
coordinate | Coordinate in respect to the basis "basis" |
basis | Basis for the coordinates of the atom |
The documentation for this struct was generated from the following file: