Molecular Vis
Improving perception of molecular visualization
|
Class for the surface representation of a Molecule. More...
#include <SESSurface.h>
Public Member Functions | |
SESSurface (const Molecule &molecule, float probeRadius) | |
void | bindToUnit (int unit) |
glm::vec3 | getTexMin () |
glm::vec3 | getTexMax () |
Class for the surface representation of a Molecule.
The surface is defined as the solvent excluded surface (SES) and is represented by a signed distance field.
SESSurface::SESSurface | ( | const Molecule & | molecule, |
float | probeRadius | ||
) |
Constructs SES of a given molecule and probe radius.
molecule | Data of molecule. |
probeRadius | probe radius used to define the SES. |
void SESSurface::bindToUnit | ( | int | unit | ) |
Binds the signed distance field as a texture to the given texture-unit at target GL_TEXTURE_3D.
unit | Texture-unit to bind to. |
glm::vec3 SESSurface::getTexMax | ( | ) |
Gets maximal bounding box corner.
glm::vec3 SESSurface::getTexMin | ( | ) |
Gets minimal bounding box corner.