Molecular Vis
Improving perception of molecular visualization
MoleculeModel Class Reference

Class representing the molecule as geometric model. More...

#include <MoleculeModel.h>

Inheritance diagram for MoleculeModel:
Geometry

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

- Protected Attributes inherited from Geometry
glm::mat4 modelMatrix
 

Detailed Description

Class representing the molecule as geometric model.

The atoms will be represented by balls with radius proportional to the van der Waals radius.

Constructor & Destructor Documentation

◆ MoleculeModel()

MoleculeModel::MoleculeModel ( glm::mat4  modelMatrix,
std::shared_ptr< Material material,
Molecule molecule 
)

Constructs the geometric model of a given molecule.

Parameters
modelMatrixModelmatrix, gives transformation from object space to world space.
materialThe material that should be used for drawing.
moleculeThe molecule for which a model should be constructed.

Member Function Documentation

◆ draw()

void MoleculeModel::draw ( glm::mat4  matrix = glm::mat4(1.0f))
virtual

Draws the model.

Parameters
matrixDefines a transformation from word space to word space. Gets left-multiplied with the model matrix.

Implements Geometry.


The documentation for this class was generated from the following files: