Main Page | Namespace List | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

sphere.h File Reference

#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "my_types.h"
#include "array.cpp"

Go to the source code of this file.

Compounds

class  sphere
 A template class to model spheres displayed using OpenGL. More...

class  gl_sphere
 Template class for storing spheres with distance values. More...


Typedefs

typedef sphere< short, bytesphere_s
 A sphere with short int coordinates.

typedef sphere< float, float > sphere_f
 A sphere with float coordinates.

typedef gl_sphere< short,
byte
gl_sphere_s
 A sphere with short int coordinates and a distance value.

typedef gl_sphere< float,
float > 
gl_sphere_f
 A sphere with float coordinates and a distance value.


Functions

template<class T, class S> ostream & operator<< (ostream &out, sphere< T, S > &s)
 Output operator to print a sphere for debugging.

template<class T, class S> istream & operator>> (istream &in, sphere< T, S > &s)
 Input operator to read a sphere for debugging.


Typedef Documentation

typedef sphere<short,byte> sphere_s
 

A sphere with short int coordinates.

This type is an 8 byte sphere. It is well-suited for simulations performed on discrete lattices. Typically the lattice size is limited to a few hundreds in x, y and z which results in millions of grid cells. Memory limits and time constraints will result in this type being useful for years.

typedef sphere<float,float> sphere_f
 

A sphere with float coordinates.

This type is a 20 byte sphere. It was introduced to allow more accurate display of molecules. Atomic coordinates are retrieved from PDB files which allow up to 7 digits.

typedef gl_sphere<short,byte> gl_sphere_s
 

A sphere with short int coordinates and a distance value.

typedef gl_sphere<float,float> gl_sphere_f
 

A sphere with float coordinates and a distance value.


Function Documentation

template<class T, class S>
ostream& operator<< ostream &  out,
sphere< T, S > &  s
 

Output operator to print a sphere for debugging.

template<class T, class S>
istream& operator>> istream &  in,
sphere< T, S > &  s
 

Input operator to read a sphere for debugging.


Generated on Thu Nov 27 08:17:11 2003 for Animp - Animated Particles by doxygen 1.3.2