gcu::Chem3dDoc Class Reference
#include <gcu/chem3ddoc.h>
List of all members.
Detailed Description
Document class for a molecule. Embeds an OpenBabel::OBMol object.
Definition at line 61 of file chem3ddoc.h.
Constructor & Destructor Documentation
gcu::Chem3dDoc::Chem3dDoc |
( |
|
) |
|
- Parameters:
-
| App | the application. |
| View,: | an optional already existing GLView instance. |
virtual gcu::Chem3dDoc::~Chem3dDoc |
( |
|
) |
[virtual] |
Member Function Documentation
void gcu::Chem3dDoc::Draw |
( |
Matrix const & |
m |
) |
const [virtual] |
- Parameters:
-
| m | the Matrix giving the current model orientation |
Displays the molecule using OpenGL.
Implements gcu::GLDocument.
const char* gcu::Chem3dDoc::GetTitle |
( |
|
) |
[inline] |
bool gcu::Chem3dDoc::IsEmpty |
( |
|
) |
[inline] |
- Returns:
- true if the molecule have no atom, false otherwise.
Definition at line 88 of file chem3ddoc.h.
void gcu::Chem3dDoc::Load |
( |
char const * |
uri, |
|
|
char const * |
mime_type | |
|
) |
| | |
- Parameters:
-
| 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 | |
|
) |
| | |
- Parameters:
-
| 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 |
) |
|
- Parameters:
-
| filename | the name of the vrml file to which the data should be written. |
Exports the embedded molecule as a vrml scene.
The documentation for this class was generated from the following file: