The Gnome Chemistry Utils
0.12.11
|
#include <gcu/chem3ddoc.h>
Public Member Functions | |
Chem3dDoc () | |
Chem3dDoc (Application *App, GLView *View) | |
virtual | ~Chem3dDoc () |
void | Draw (Matrix const &m) const |
bool | IsEmpty () |
void | Load (char const *uri, char const *mime_type) |
void | LoadData (char const *data, char const *mime_type) |
void | OnExportVRML (std::string const &filename) |
void | Clear () |
void | SetDisplay3D (Display3DMode val) |
Display3DMode | GetDisplay3D (void) const |
Display3DMode & | GetRefDisplay3D (void) |
Document class for a molecule. Embeds an OpenBabel::OBMol object.
Definition at line 62 of file chem3ddoc.h.
Default constructor
gcu::Chem3dDoc::Chem3dDoc | ( | Application * | App, |
GLView * | View | ||
) |
App | the application. |
View,: | an optional already existing GLView instance. |
virtual gcu::Chem3dDoc::~Chem3dDoc | ( | ) | [virtual] |
Default destructor
void gcu::Chem3dDoc::Clear | ( | ) | [virtual] |
Clears the document.
Reimplemented from gcu::Object.
void gcu::Chem3dDoc::Draw | ( | Matrix const & | m | ) | const [virtual] |
m | the Matrix giving the current model orientation |
Displays the molecule using OpenGL.
Implements gcu::GLDocument.
gcu::Chem3dDoc::GetDisplay3D | ( | void | ) | const [inline] |
Definition at line 133 of file chem3ddoc.h.
gcu::Chem3dDoc::GetRefDisplay3D | ( | void | ) | [inline] |
Definition at line 133 of file chem3ddoc.h.
bool gcu::Chem3dDoc::IsEmpty | ( | ) | [inline] |
Definition at line 89 of file chem3ddoc.h.
References gcu::Molecule::GetAtomsNumber().
void gcu::Chem3dDoc::Load | ( | char const * | uri, |
char const * | mime_type | ||
) |
uri | the uri of the molecule file. |
mime_type | the mime type of the molecule file. |
Loads a molecule from the provided uri using OpenBabel.
void gcu::Chem3dDoc::LoadData | ( | char const * | data, |
char const * | mime_type | ||
) |
data | the inline data. |
mime_type | the mime type of the data. |
Loads a molecule from the provided data using OpenBabel.
void gcu::Chem3dDoc::OnExportVRML | ( | std::string const & | filename | ) |
filename | the name of the vrml file to which the data should be written. |
Exports the embedded molecule as a vrml scene.
gcu::Chem3dDoc::SetDisplay3D | ( | Display3DMode | mode | ) | [inline] |
mode,: | the new mode. |
Sets the display mode to one of the available Display3DMode values.
Definition at line 133 of file chem3ddoc.h.