00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef included_MPQC_Chemistry_MoleculeViewer_Impl_hh
00014 #define included_MPQC_Chemistry_MoleculeViewer_Impl_hh
00015
00016 #ifndef included_sidl_cxx_hh
00017 #include "sidl_cxx.hh"
00018 #endif
00019 #ifndef included_MPQC_Chemistry_MoleculeViewer_IOR_h
00020 #include "MPQC_Chemistry_MoleculeViewer_IOR.h"
00021 #endif
00022
00023
00024
00025 #ifndef included_Chemistry_Molecule_hh
00026 #include "Chemistry_Molecule.hh"
00027 #endif
00028 #ifndef included_MPQC_Chemistry_MoleculeViewer_hh
00029 #include "MPQC_Chemistry_MoleculeViewer.hh"
00030 #endif
00031 #ifndef included_gov_cca_CCAException_hh
00032 #include "gov_cca_CCAException.hh"
00033 #endif
00034 #ifndef included_gov_cca_Services_hh
00035 #include "gov_cca_Services.hh"
00036 #endif
00037 #ifndef included_sidl_BaseInterface_hh
00038 #include "sidl_BaseInterface.hh"
00039 #endif
00040 #ifndef included_sidl_ClassInfo_hh
00041 #include "sidl_ClassInfo.hh"
00042 #endif
00043
00044
00045
00046
00047 #define USE_SOCKET 1
00048 #if USE_SOCKET
00049 #include "socket.h"
00050 #endif // USE_SOCKET
00051
00052
00053
00054 namespace MPQC {
00055
00059 class Chemistry_MoleculeViewer_impl
00060
00061
00072
00073
00074 {
00075
00076 private:
00077
00078
00079 Chemistry_MoleculeViewer self;
00080
00081
00082
00083 gov::cca::Services services_;
00084 Chemistry::Molecule molecule_;
00085 int is_updated;
00086 #if USE_SOCKET
00087 TCPClientConnection socket_;
00088 #endif // USE_SOCKET
00089
00090
00091
00092 private:
00093
00094 Chemistry_MoleculeViewer_impl()
00095 {}
00096
00097 public:
00098
00099
00100
00101 Chemistry_MoleculeViewer_impl( struct MPQC_Chemistry_MoleculeViewer__object
00102 * s ) : self(s,true) { _ctor(); }
00103
00104
00105 void _ctor();
00106
00107
00108 virtual ~Chemistry_MoleculeViewer_impl() { _dtor(); }
00109
00110
00111 void _dtor();
00112
00113
00114 static void _load();
00115
00116 public:
00117
00121 void
00122 set_molecule (
00123 ::Chemistry::Molecule molecule
00124 )
00125 throw ()
00126 ;
00127
00131 void
00132 set_coor (
00133 const ::std::string& coords
00134 )
00135 throw ()
00136 ;
00137
00141 void
00142 run_gui() throw ()
00143 ;
00147 void
00148 draw() throw ()
00149 ;
00150
00168 void
00169 setServices (
00170 ::gov::cca::Services services
00171 )
00172 throw (
00173 ::gov::cca::CCAException
00174 );
00175
00176 };
00177
00178 }
00179
00180
00181
00182
00183
00184 #endif