Molecular Vis
Improving perception of molecular visualization
SESSurface Class Reference

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 ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SESSurface()

SESSurface::SESSurface ( const Molecule molecule,
float  probeRadius 
)

Constructs SES of a given molecule and probe radius.

Parameters
moleculeData of molecule.
probeRadiusprobe radius used to define the SES.

Member Function Documentation

◆ bindToUnit()

void SESSurface::bindToUnit ( int  unit)

Binds the signed distance field as a texture to the given texture-unit at target GL_TEXTURE_3D.

Parameters
unitTexture-unit to bind to.

◆ getTexMax()

glm::vec3 SESSurface::getTexMax ( )

Gets maximal bounding box corner.

Returns
maximal bounding box corner. All atoms of molecule have all components smaller then this value.

◆ getTexMin()

glm::vec3 SESSurface::getTexMin ( )

Gets minimal bounding box corner.

Returns
minimal bounding box corner. All atoms of molecule have all components larger then this value.

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