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

density.h

00001 //
00002 // density.h
00003 //
00004 // Copyright (C) 1996 Limit Point Systems, Inc.
00005 //
00006 // Author: Curtis Janssen <cljanss@limitpt.com>
00007 // Maintainer: LPS
00008 //
00009 // This file is part of the SC Toolkit.
00010 //
00011 // The SC Toolkit is free software; you can redistribute it and/or modify
00012 // it under the terms of the GNU Library General Public License as published by
00013 // the Free Software Foundation; either version 2, or (at your option)
00014 // any later version.
00015 //
00016 // The SC Toolkit is distributed in the hope that it will be useful,
00017 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00018 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019 // GNU Library General Public License for more details.
00020 //
00021 // You should have received a copy of the GNU Library General Public License
00022 // along with the SC Toolkit; see the file COPYING.LIB.  If not, write to
00023 // the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
00024 //
00025 // The U.S. Government is granted a limited license as per AL 91-7.
00026 //
00027 
00028 #ifndef _chemistry_qc_wfn_density_h
00029 #define _chemistry_qc_wfn_density_h
00030 
00031 #ifdef __GNUC__
00032 #pragma interface
00033 #endif
00034 
00035 #include <math/isosurf/volume.h>
00036 #include <chemistry/qc/wfn/wfn.h>
00037 #include <chemistry/molecule/molrender.h>
00038 
00039 class ElectronDensity: public Volume {
00040   protected:
00041     Ref<Wavefunction> wfn_;
00042     virtual void compute();
00043   public:
00044     ElectronDensity(const Ref<KeyVal>&);
00045     ElectronDensity(const Ref<Wavefunction>&);
00046     ~ElectronDensity();
00047     virtual void boundingbox(double valuemin,
00048                              double valuemax,
00049                              SCVector3& p1, SCVector3& p2);
00050 };
00051 
00052 class DensityColorizer: public MoleculeColorizer {
00053   protected:
00054     Ref<Wavefunction> wfn_;
00055     double scale_;
00056     double reference_;
00057     int have_scale_;
00058     int have_reference_;
00059   public:
00060     DensityColorizer(const Ref<KeyVal>&);
00061     ~DensityColorizer();
00062 
00063     void colorize(const Ref<RenderedPolygons> &);
00064 };
00065 
00066 class GradDensityColorizer: public MoleculeColorizer {
00067   protected:
00068     Ref<Wavefunction> wfn_;
00069     double scale_;
00070     double reference_;
00071     int have_scale_;
00072     int have_reference_;
00073   public:
00074     GradDensityColorizer(const Ref<KeyVal>&);
00075     ~GradDensityColorizer();
00076 
00077     void colorize(const Ref<RenderedPolygons> &);
00078 };
00079 
00080 #endif
00081 
00082 // Local Variables:
00083 // mode: c++
00084 // c-file-style: "CLJ"
00085 // End:

Generated at Thu Oct 4 18:08:43 2001 for MPQC 2.0.0 using the documentation package Doxygen 1.2.5.