main.C File Reference

A molecule viewer for 3-D Console. More...

#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <time.h>
#include <sys/time.h>
#include <cfloat>
#include <archon/util/ref.H>
#include <archon/util/time.H>
#include <archon/util/thread.H>
#include <archon/util/color.H>
#include <archon/util/options.H>
#include <archon/util/text.H>
#include <archon/x3d/proxy/exception.H>
#include <archon/x3d/proxy/proxy.H>

Include dependency graph for main.C:

Go to the source code of this file.

Namespaces

namespace  Archon
namespace  Archon::SaiTestApps
namespace  Archon::SaiTestApps::Molecule

Classes

struct  Archon::AtomKind
struct  Archon::molecule_atom
struct  Archon::molecule_bond
struct  Archon::molecule
struct  Archon::ParseException
struct  Archon::atom_and_count

Defines

#define countof(x)   (sizeof((x))/sizeof((*x)))

Functions

Rotation3 Archon::rotate_cylinder (Vector3 p1, Vector3 p2)
void Archon::tube (double fx, double fy, double fz, double tx, double ty, double tz, double thickness, Vector3 &color)
void Archon::init_molecule (string file)
int Archon::SaiTestApps::Molecule::main (int argc, const char *argv[])
int main (int argc, const char *argv[]) throw ()

Variables

const char * Archon::progname
Ref< ApplicationArchon::application
Ref< GroupArchon::rootGroup


Detailed Description

A molecule viewer for 3-D Console.

This is a proof-of-concept test application for 3-D Console. It will take a molecule definition file as argument and build a model of that molecule.

Molecule defition files need to be in the PDB-format.

See also:
http://www.rcsb.org/pdb/
The filebrowser test application works nicely with this molecule viewer. When a PDB file is indicated, the filebrowser will lauch this molecule viewer with the indicated PDB file as argument.

See also:
sai_test_apps/filebrowser/main.C
This source code in this file is based on the molecule screensaver in the Xscreenserver suite of screensavers. All the code relating to the use of Xscreensaver library, OpenGL and X has been removed and substituted by calls to 3-D Console.

The change was made by Brian Kristiansen, as part of a special course in Computer Graphics Application on DTU (Technical University of Denmark.

Additional eye-candy by Kristian Spangsege.

Definition in file main.C.


Generated on Sun Jul 30 22:55:53 2006 for Archon by  doxygen 1.4.4