Molecular Vis
Improving perception of molecular visualization
|
Class representing the molecule as geometric model. More...
#include <MoleculeModel.h>
Public Member Functions | |
MoleculeModel (glm::mat4 modelMatrix, std::shared_ptr< Material > material, Molecule &molecule) | |
virtual void | draw (glm::mat4 matrix=glm::mat4(1.0f)) |
Additional Inherited Members | |
![]() | |
glm::mat4 | modelMatrix |
Class representing the molecule as geometric model.
The atoms will be represented by balls with radius proportional to the van der Waals radius.
MoleculeModel::MoleculeModel | ( | glm::mat4 | modelMatrix, |
std::shared_ptr< Material > | material, | ||
Molecule & | molecule | ||
) |
Constructs the geometric model of a given molecule.
modelMatrix | Modelmatrix, gives transformation from object space to world space. |
material | The material that should be used for drawing. |
molecule | The molecule for which a model should be constructed. |
|
virtual |
Draws the model.
matrix | Defines a transformation from word space to word space. Gets left-multiplied with the model matrix. |
Implements Geometry.