svn path=/trunk/KDE/kdeedu/kalzium/src/kalziumglwidget.h; revision=552247
virtual void getColor( OpenBabel::OBAtom &a, GLfloat &r, GLfloat &g, GLfloat &b );
+ /**
+ * @return the current molecule
+ */
+ OpenBabel::OBMol* molecule(){
+ return m_molecule;
+ }
+
public slots:
/**
* sets the molecule which will be displayed
return mol;
}
+
+QString OpenBabel2Wrapper::getFormula( OpenBabel::OBMol* molecule )
+{
+ QString formula( molecule->GetFormula().c_str() );
+ return formula;
+}
+
+QString OpenBabel2Wrapper::getPrettyFormula( OpenBabel::OBMol* molecule )
+{
+ QString formula( molecule->GetFormula().c_str() );
+ return formula;
+}
* the file couldn't be read.
*/
static OpenBabel::OBMol* readMolecule( const QString& filename );
+
+ static QString getFormula( OpenBabel::OBMol* molecule );
+
+ static QString getPrettyFormula( OpenBabel::OBMol* molecule );
};
#endif // OPENBABEL2WRAPPER_H